Package spoon.reflect

Examples of spoon.reflect.Factory


  public CtMethod<?> getCallback(SymbolicInstance<?> instance,
      Class<?> clazz, String methodName) {
    CtTypeReference<?> type = instance.getConcreteType();
    CtMethod<?> method = null;
    if (clazz.isAssignableFrom(type.getActualClass())) {
      Factory factory = type.getFactory();
      CtSimpleType<?> simpleType = factory.Type().getFactory().Class()
          .create(type.getQualifiedName());
      method = ((CtType<?>) simpleType).getMethod(methodName, factory
          .Type().createReference(clazz));
    }
    return method;
  }
View Full Code Here


        final StandardEnvironment env = new StandardEnvironment();
        env.setVerbose(false);
        env.setDebug(false);
        env.setComplianceLevel(complianceLevel);
        final Factory factory = new Factory(new DefaultCoreFactory(), env);

        final Builder builder = factory.getBuilder();
        for (final File inputSource : inputSources) {
            getLog().info("Adding input source: " + inputSource.getPath());
            builder.addInputSource(inputSource);
        }
        builder.build();
View Full Code Here

TOP

Related Classes of spoon.reflect.Factory

Copyright © 2018 www.massapicom. 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.