/** * Gets the Spoon environment that encloses this factory. */ @Override public Environment getEnvironment() { if (environment == null) { environment = new StandardEnvironment(); } return environment; }
@Override public Environment createEnvironment() { return new StandardEnvironment(); }
public static Factory createFactory() { return new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); }
public TypeFactory() { this(new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment())); }
/** * Gets the Spoon environment that encloses this factory. */ @Override public Environment getEnvironment() { if (environment == null) { environment = new StandardEnvironment(); } return environment; }
@Override public Environment createEnvironment() { return new StandardEnvironment(); }
Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment());
protected Factory createFactory() { Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); factory.getEnvironment().setNoClasspath(true); factory.getEnvironment().setCommentEnabled(false); return factory; }
protected Factory createFactory() { Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); factory.getEnvironment().setNoClasspath(true); factory.getEnvironment().setCommentEnabled(false); return factory; }
public static Environment getEnvironment() { StandardEnvironment env = new StandardEnvironment(); env.setComplianceLevel(ConfigurationProperties.getPropertyInt("javacompliancelevel")); env.setVerbose(false); env.setDebug(true); env.setTabulationSize(5); env.useTabulations(true); return env; }