|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.jscomp.JsAst
public class JsAst
Generates an AST for a JavaScript source file.
Constructor Summary | |
---|---|
JsAst(SourceFile sourceFile)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsAst(SourceFile sourceFile)
Method Detail |
---|
public Node getAstRoot(AbstractCompiler compiler)
SourceAst
getAstRoot
in interface SourceAst
public void clearAst()
SourceAst
clearAst
in interface 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |