public class Precompilation extends Object implements PrecompilationResult
Constructor and Description |
---|
Precompilation(UnifiedAst unifiedAst,
Collection<Permutation> permutations,
ArtifactSet generatedArtifacts) |
Precompilation(UnifiedAst unifiedAst,
Collection<Permutation> permutations,
int permutationBase,
ArtifactSet generatedArtifacts)
Constructs a new precompilation.
|
Modifier and Type | Method and Description |
---|---|
ArtifactSet |
getGeneratedArtifacts()
Returns the set of generated artifacts from the precompile phase.
|
Permutation |
getPermutation(int id) |
Permutation[] |
getPermutations()
Returns the set of permutations to run.
|
UnifiedAst |
getUnifiedAst()
Returns the unified AST used by
JavaToJavaScriptCompiler . |
void |
removeSourceArtifacts(TreeLogger logger)
Removes saved source code from the generated artifacts.
|
public Precompilation(UnifiedAst unifiedAst, Collection<Permutation> permutations, ArtifactSet generatedArtifacts)
public Precompilation(UnifiedAst unifiedAst, Collection<Permutation> permutations, int permutationBase, ArtifactSet generatedArtifacts)
unifiedAst
- the unified AST used by
JavaToJavaScriptCompiler
permutations
- the set of permutations that can be runpermutationBase
- the id to use for the first permutationgeneratedArtifacts
- the set of artifacts created by generatorspublic ArtifactSet getGeneratedArtifacts()
public Permutation getPermutation(int id)
public Permutation[] getPermutations()
public UnifiedAst getUnifiedAst()
JavaToJavaScriptCompiler
.public void removeSourceArtifacts(TreeLogger logger)
Copyright © 2018. All rights reserved.