spoon.reflect.factory.FactoryImpl Java Examples
The following examples show how to use
spoon.reflect.factory.FactoryImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestSpooner.java From spoon-examples with GNU General Public License v2.0 | 4 votes |
public TestSpooner() throws Exception { compiler = new TestSpoonCompiler( new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment())); }
Example #2
Source File: CodeFeatureDetectorTest.java From coming with MIT License | 4 votes |
protected Factory createFactory() { Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); factory.getEnvironment().setNoClasspath(true); factory.getEnvironment().setCommentEnabled(false); return factory; }
Example #3
Source File: MutationSupporter.java From astor with GNU General Public License v2.0 | 4 votes |
private static Factory createFactory() { Environment env = getEnvironment(); Factory factory = new FactoryImpl(new DefaultCoreFactory(), env); return factory; }
Example #4
Source File: PatchValidationTest.java From astor with GNU General Public License v2.0 | 4 votes |
public CtStatement createPatchStatementCode(String snippet) { Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); CtStatement st = (factory).Code().createCodeSnippetStatement(snippet).compile(); return st; }
Example #5
Source File: AstComparator.java From gumtree-spoon-ast-diff with Apache License 2.0 | 4 votes |
protected Factory createFactory() { Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment()); factory.getEnvironment().setNoClasspath(true); factory.getEnvironment().setCommentEnabled(includeComments); return factory; }