public final class SyntheticAst extends java.lang.Object implements SourceAst
Modifier and Type | Field and Description |
---|---|
private InputId |
inputId |
private Node |
root |
private static long |
serialVersionUID |
private SourceFile |
sourceFile |
Constructor and Description |
---|
SyntheticAst(Node root) |
SyntheticAst(java.lang.String sourceName) |
Modifier and Type | Method and Description |
---|---|
void |
clearAst()
Removes any references to root node of the AST.
|
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.
|
private static final long serialVersionUID
private final InputId inputId
private final SourceFile sourceFile
private Node root
SyntheticAst(java.lang.String sourceName)
public SyntheticAst(Node root)
public Node getAstRoot(AbstractCompiler compiler)
SourceAst
getAstRoot
in interface SourceAst
public void clearAst()
SourceAst
public InputId getInputId()
getInputId
in interface SourceAst
public SourceFile getSourceFile()
SourceAst
getSourceFile
in interface SourceAst
public void setSourceFile(SourceFile file)
SourceAst
setSourceFile
in interface SourceAst