public final class SyntheticAst extends java.lang.Object implements SourceAst
| Constructor and Description |
|---|
SyntheticAst(Node root) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAst()
Removes any references to root node of the AST.
|
static SyntheticAst |
emptyWithFileName(java.lang.String sourceName) |
Node |
getAstRoot(AbstractCompiler compiler)
Gets the root node of the AST for the source file this represents.
|
InputId |
getInputId() |
SourceFile |
getSourceFile()
Returns the source file the generated AST represents.
|
void |
setSourceFile(SourceFile file)
Sets the source file the generated AST represents.
|
public SyntheticAst(Node root)
public static SyntheticAst emptyWithFileName(java.lang.String sourceName)
public Node getAstRoot(AbstractCompiler compiler)
SourceAstgetAstRoot in interface SourceAstpublic void clearAst()
SourceAstpublic InputId getInputId()
getInputId in interface SourceAstpublic SourceFile getSourceFile()
SourceAstgetSourceFile in interface SourceAstpublic void setSourceFile(SourceFile file)
SourceAstsetSourceFile in interface SourceAstCopyright © 2009-2020 Google. All Rights Reserved.