public class JDTSnippetCompiler extends JDTBasedSpoonCompiler
SpoonModelBuilder.InputType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SNIPPET_FILENAME_PREFIX |
compilationUnitFilters, environment, factory, javaCompliance, probs, requestor, sources, templateClasspath, templates
Constructor and Description |
---|
JDTSnippetCompiler(Factory factory,
java.lang.String contents) |
Modifier and Type | Method and Description |
---|---|
boolean |
build()
Builds the program's model with this compiler's factory and stores the
result into this factory.
|
boolean |
build(JDTBuilder builder)
Builds the program's model with this compiler's factory and stores the
result into this factory.
|
protected boolean |
buildSources(JDTBuilder jdtBuilder) |
CompilationUnit |
getSnippetCompilationUnit() |
protected void |
report(Environment environment,
org.eclipse.jdt.core.compiler.CategorizedProblem problem) |
addCompilationUnitFilter, addInputSource, addInputSource, addInputSources, addTemplateSource, addTemplateSource, addTemplateSources, buildModel, buildTemplates, buildUnits, buildUnitsAndModel, compile, createBatchCompiler, createBatchCompiler, generateProcessedSourceFiles, generateProcessedSourceFiles, generateProcessedSourceFilesUsingCUs, generateProcessedSourceFilesUsingTypes, getBinaryOutputDirectory, getCompilationUnitFilter, getCompilationUnitInputStream, getEnvironment, getFactory, getInputSources, getProblems, getSource, getSourceClasspath, getSourceOutputDirectory, getTemplateClasspath, getTemplates, getTemplateSources, instantiateAndProcess, process, removeCompilationUnitFilter, reportProblem, reportProblems, reportProblemsWhenCompiling, setBinaryOutputDirectory, setEnvironment, setSourceClasspath, setTemplateClasspath, sortCompilationUnits, traverseUnitDeclaration
public JDTSnippetCompiler(Factory factory, java.lang.String contents)
public boolean build()
SpoonModelBuilder
build
in interface SpoonModelBuilder
build
in class JDTBasedSpoonCompiler
SpoonModelBuilder.getSourceClasspath()
,
SpoonModelBuilder.getTemplateClasspath()
public boolean build(JDTBuilder builder)
SpoonModelBuilder
build
in interface SpoonModelBuilder
build
in class JDTBasedSpoonCompiler
builder
- Parameters given at JDT compiler.SpoonModelBuilder.getSourceClasspath()
,
SpoonModelBuilder.getTemplateClasspath()
protected boolean buildSources(JDTBuilder jdtBuilder)
buildSources
in class JDTBasedSpoonCompiler
protected void report(Environment environment, org.eclipse.jdt.core.compiler.CategorizedProblem problem)
report
in class JDTBasedSpoonCompiler
public CompilationUnit getSnippetCompilationUnit()
Copyright © 2007–2021 Inria. All rights reserved.