|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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. |
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 SourceAstpublic Node getAstRoot(AbstractCompiler compiler)
getAstRoot in interface SourceAstSourceAst.getAstRoot(AbstractCompiler)public SourceFile getSourceFile()
SourceAst
getSourceFile in interface SourceAstpublic void setSourceFile(SourceFile file)
SourceAst
setSourceFile in interface SourceAstpublic String getSourceName()
public JsonML convertToJsonML()
public JsonML getElementPreOrder(int n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||