public interface AbstractCompiler
Modifier and Type | Method and Description |
---|---|
UnifiedAst |
precompile(TreeLogger logger,
CompilerContext compilerContext,
RebindPermutationOracle rpo,
String[] declEntryPts,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics)
Performs a precompilation, returning an object that can then be used to
compile individual permutations..
|
UnifiedAst precompile(TreeLogger logger, CompilerContext compilerContext, RebindPermutationOracle rpo, String[] declEntryPts, String[] additionalRootTypes, boolean singlePermutation, PrecompilationMetricsArtifact precompilationMetrics) throws UnableToCompleteException
logger
- the logger to usecompilerContext
- shared read only compiler staterpo
- the RebindPermutationOracledeclEntryPts
- the set of entry classes declared in a GWT module;
these will be automatically reboundadditionalRootTypes
- additional classes that should serve as code
roots; will not be rebound; may be null
singlePermutation
- if true, do not pre-optimize the resulting AST or
allow serialization of the resultprecompilationMetrics
- if not null, the precompile with gather some
diagnostics for the compile.UnableToCompleteException
- if an error other than
OutOfMemoryError
occursCopyright © 2018. All rights reserved.