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()
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