public class JsonMLAst extends Object implements SourceAst
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JsonMLAst(JsonML jsonml)
public void clearAst()
SourceAstpublic Node getAstRoot(AbstractCompiler compiler)
getAstRoot in interface SourceAstSourceAst.getAstRoot(AbstractCompiler)public SourceFile getSourceFile()
SourceAstgetSourceFile in interface SourceAstpublic void setSourceFile(SourceFile file)
SourceAstsetSourceFile in interface SourceAstpublic String getSourceName()
public JsonML convertToJsonML()
public JsonML getElementPreOrder(int n)
public InputId getInputId()
getInputId in interface SourceAst