public class UnifiedAst extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedAst.AST
Encapsulates the combined programs.
|
Constructor and Description |
---|
UnifiedAst(JJSOptions options,
UnifiedAst.AST initialAst,
boolean singlePermutation,
Set<String> rebindRequests) |
Modifier and Type | Method and Description |
---|---|
PermutationResult |
compilePermutation(TreeLogger logger,
CompilerContext compilerContext,
Permutation permutation)
Compiles a particular permutation.
|
UnifiedAst.AST |
getFreshAst()
Return the current AST so that clients can explicitly walk the Java or
JavaScript parse trees.
|
ModuleMetricsArtifact |
getModuleMetrics()
Returns metrics about the module load portion of the build.
|
JJSOptions |
getOptions()
Returns the active set of JJS options associated with this compile.
|
PrecompilationMetricsArtifact |
getPrecompilationMetrics()
Returns metrics about the precompilation portion of the build.
|
SortedSet<String> |
getRebindRequests()
Returns the set of live rebind requests in the AST.
|
void |
prepare()
Internally prepares a new AST for compilation if one is not already
prepared.
|
void |
setModuleMetrics(ModuleMetricsArtifact metrics)
Save some module load metrics in the AST.
|
void |
setPrecompilationMetrics(PrecompilationMetricsArtifact metrics)
Save some precompilation metrics in the AST.
|
public UnifiedAst(JJSOptions options, UnifiedAst.AST initialAst, boolean singlePermutation, Set<String> rebindRequests)
public PermutationResult compilePermutation(TreeLogger logger, CompilerContext compilerContext, Permutation permutation) throws UnableToCompleteException
logger
- the logger to usecompilerContext
- shared read only compiler statepermutation
- the permutation to compileUnableToCompleteException
- if an error other than
OutOfMemoryError
occurspublic UnifiedAst.AST getFreshAst()
public ModuleMetricsArtifact getModuleMetrics()
public JJSOptions getOptions()
public PrecompilationMetricsArtifact getPrecompilationMetrics()
public SortedSet<String> getRebindRequests()
public void prepare()
public void setModuleMetrics(ModuleMetricsArtifact metrics)
public void setPrecompilationMetrics(PrecompilationMetricsArtifact metrics)
Copyright © 2018. All rights reserved.