|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.jscomp.jsonml.JsonMLAst
public class JsonMLAst
Generates an AST from a JsonML source file. JsonML format for representation of JavaScript is specified here.
Constructor Summary | |
---|---|
JsonMLAst(JsonML jsonml)
|
Method Summary | |
---|---|
void |
clearAst()
Removes any references to root node of the AST. |
JsonML |
convertToJsonML()
|
Node |
getAstRoot(AbstractCompiler compiler)
Generates AST based on AST representation |
JsonML |
getElementPreOrder(int n)
Returns a JsonML element with the specified number from the tree in pre-order walk. |
InputId |
getInputId()
|
SourceFile |
getSourceFile()
Returns the source file the generated AST represents. |
String |
getSourceName()
|
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 JsonMLAst(JsonML jsonml)
Method Detail |
---|
public void clearAst()
SourceAst
clearAst
in interface SourceAst
public Node getAstRoot(AbstractCompiler compiler)
getAstRoot
in interface SourceAst
SourceAst.getAstRoot(AbstractCompiler)
public SourceFile getSourceFile()
SourceAst
getSourceFile
in interface SourceAst
public void setSourceFile(SourceFile file)
SourceAst
setSourceFile
in interface SourceAst
public String getSourceName()
public JsonML convertToJsonML()
public JsonML getElementPreOrder(int n)
public InputId getInputId()
getInputId
in interface SourceAst
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |