Examples of implementsInterface()


Examples of ch.sahits.util.ClassChecker.implementsInterface()

  @Override
  public List<IBuilding> findBuildings(ICity city,Class<? extends IBuilding> buildingClass) {
    List<IBuilding> result = new ArrayList<IBuilding>();
    for (IBuilding buidlding : city.getBuildings()) {
      ClassChecker checker = new ClassChecker(buidlding.getClass());
      if (checker.extendsClass(buildingClass) || checker.implementsInterface(buildingClass)){
        result.add(buidlding);
      }
    }
    return result;
  }
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.Model.implementsInterface()

          return;
        pcClass = model.getClass(className);
        if (pcClass == null)
          return;

        if (model.implementsInterface(pcClass, "java.io.Serializable")) //NOI18N
        {
          // check readObject method
          Object readMethod = model.getMethod(className,
            "readObject", Model.READ_OBJECT_ARGS); //NOI18N
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.Model.implementsInterface()

          return;
        pcClass = model.getClass(className);
        if (pcClass == null)
          return;

        if (model.implementsInterface(pcClass, "java.io.Serializable")) //NOI18N
        {
          // check readObject method
          Object readMethod = model.getMethod(className,
            "readObject", Model.getReadObjectArgs()); //NOI18N
View Full Code Here

Examples of flex2.compiler.as3.binding.ClassInfo.implementsInterface()

            {
                // Now test that the root does not extend or implement this class before we generate a
                // warning.
                ClassInfo rootInfo = typeAnalyzer.getClassInfo(configuration.getMainDefinition());
                if (rootInfo != null &&
                    !rootInfo.implementsInterface(qName.getNamespace(), qName.getLocalPart()) &&
                    !rootInfo.extendsClass(qName.toString()))
                {
                    ThreadLocalToolkit.getLogger().log(new CompiledAsAComponent(qName.toString(),
                                                       configuration.getMainDefinition()));
                }
View Full Code Here

Examples of flex2.compiler.as3.binding.ClassInfo.implementsInterface()

      if (currentInfo != null)
      {
        ClassInfo classInfo = currentInfo.getClassInfo();

        if (!classInfo.implementsInterface(StandardDefs.PACKAGE_FLASH_EVENTS,
                           GenerativeExtension.IEVENT_DISPATCHER))
        {
          currentInfo.setNeedsToImplementIEventDispatcher(true);

          MultiName multiName = new MultiName(StandardDefs.PACKAGE_FLASH_EVENTS,
View Full Code Here

Examples of flex2.compiler.as3.binding.ClassInfo.implementsInterface()

          classInfo.addInterfaceMultiName(StandardDefs.PACKAGE_FLASH_EVENTS,
                                                    GenerativeExtension.IEVENT_DISPATCHER);
        }

        if (!classInfo.implementsInterface(standardDefs.getDataPackage(), IMANAGED))
        {
          currentInfo.setNeedsToImplementIManaged(true);

                    // Don't be tempted to check for mx.core.IUID here, because
                    // analyzeInterface() sets up the inheritance for downstream
View Full Code Here

Examples of flex2.compiler.as3.binding.ClassInfo.implementsInterface()

            {
                // Now test that the root does not extend or implement this class before we generate a
                // warning.
                ClassInfo rootInfo = typeAnalyzer.getClassInfo(configuration.getMainDefinition());
                if (rootInfo != null &&
                    !rootInfo.implementsInterface(qName.getNamespace(), qName.getLocalPart()) &&
                    !rootInfo.extendsClass(qName.toString()))
                {
                    ThreadLocalToolkit.getLogger().log(new CompiledAsAComponent(qName.toString(),
                                                       configuration.getMainDefinition()));
                }
View Full Code Here

Examples of fr.insalyon.citi.golo.runtime.adapters.AdapterDefinition.implementsInterface()

    if (configuration.containsKey("interfaces")) {
      @SuppressWarnings("unchecked")
      Iterable<String> interfaces = (Iterable<String>) configuration.get("interfaces");
      for (String iface : interfaces) {
        definition.implementsInterface(iface);
      }
    }
    if (configuration.containsKey("implements")) {
      @SuppressWarnings("unchecked")
      Map<String, MethodHandle> implementations = (Map<String, MethodHandle>) configuration.get("implements");
View Full Code Here

Examples of org.codehaus.groovy.ast.ClassNode.implementsInterface()

    private Statement createConstructorStatement(ClassNode cNode, PropertyNode pNode) {
        FieldNode fNode = pNode.getField();
        final ClassNode fieldType = fNode.getType();
        Statement statement = null;
        if (fieldType.isArray() || fieldType.implementsInterface(CLONEABLE_TYPE)) {
            statement = createConstructorStatementArrayOrCloneable(fNode);
        } else if (fieldType.isDerivedFrom(DATE_TYPE)) {
            statement = createConstructorStatementDate(fNode);
        } else if (isOrImplements(fieldType, COLLECTION_TYPE) || fieldType.isDerivedFrom(COLLECTION_TYPE) || isOrImplements(fieldType, MAP_TYPE) || fieldType.isDerivedFrom(MAP_TYPE)) {
            statement = createConstructorStatementCollection(fNode);
View Full Code Here

Examples of org.codehaus.groovy.ast.ClassNode.implementsInterface()

    private Statement createGetterBody(FieldNode fNode) {
        BlockStatement body = new BlockStatement();
        final ClassNode fieldType = fNode.getType();
        final Statement statement;
        if (fieldType.isArray() || fieldType.implementsInterface(CLONEABLE_TYPE)) {
            statement = createGetterBodyArrayOrCloneable(fNode);
        } else if (fieldType.isDerivedFrom(DATE_TYPE)) {
            statement = createGetterBodyDate(fNode);
        } else {
            statement = createGetterBodyDefault(fNode);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.