public class ASTVarNode extends SimpleNode
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, toString
public ASTVarNode(int id)
public ASTVarNode(Parser p, int id)
public Object jjtAccept(ParserVisitor visitor, Object data) throws ParseException
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
ParseException
public void setVar(Variable variable)
public Variable getVar()
public String getName()
public String toString()
toString
in class SimpleNode
Jas4pp 1.5 © Java Analysis Studio for Particle Physics