Examples of extendsClass()


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

  @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 flex2.compiler.as3.binding.ClassInfo.extendsClass()

                // 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.extendsClass()

                // 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
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.