public class ASTVarNode extends SimpleNode
children, id, parent, parser| Constructor and Description |
|---|
ASTVarNode(int id) |
ASTVarNode(Parser p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the variable.
|
Variable |
getVar() |
Object |
jjtAccept(ParserVisitor visitor,
Object data)
Accept the visitor.
|
void |
setVar(Variable variable)
Sets the name of the variable.
|
String |
toString()
Creates a string containing the variable's name and value
|
childrenAccept, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toStringpublic ASTVarNode(int id)
public ASTVarNode(Parser p, int id)
public Object jjtAccept(ParserVisitor visitor, Object data) throws ParseException
jjtAccept in interface NodejjtAccept in class SimpleNodeParseExceptionpublic void setVar(Variable variable)
public Variable getVar()
public String getName()
public String toString()
toString in class SimpleNodeCopyright © 2018. All rights reserved.