public class JsAst extends java.lang.Object implements SourceAst
Modifier and Type | Class and Description |
---|---|
static class |
JsAst.ParseResult
Simple class to share parse results between compilation jobs
|
static class |
JsAst.RhinoError
Representation of Rhino parser error.
|
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.
|
void |
setSourceFile(SourceFile file)
Sets the source file the generated AST represents.
|
public JsAst(SourceFile sourceFile)
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
public FeatureSet getFeatures(AbstractCompiler compiler)
Copyright © 2009-2018 Google. All Rights Reserved.