public class JsAst extends java.lang.Object implements SourceAst
| Modifier and Type | Field and Description |
|---|---|
private FeatureSet |
features |
private java.lang.String |
fileName |
private InputId |
inputId |
private Node |
root |
private static long |
serialVersionUID |
private SourceFile |
sourceFile |
| Constructor and Description |
|---|
JsAst(SourceFile sourceFile) |
| 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.
|
FeatureSet |
getFeatures(AbstractCompiler compiler) |
InputId |
getInputId() |
SourceFile |
getSourceFile()
Returns the source file the generated AST represents.
|
private void |
parse(AbstractCompiler compiler) |
void |
setSourceFile(SourceFile file)
Sets the source file the generated AST represents.
|
private static final long serialVersionUID
private transient InputId inputId
private transient SourceFile sourceFile
private java.lang.String fileName
private Node root
private FeatureSet features
public JsAst(SourceFile sourceFile)
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 SourceAstpublic FeatureSet getFeatures(AbstractCompiler compiler)
private void parse(AbstractCompiler compiler)