public class ASTFunNode extends SimpleNode
Constructor and Description |
---|
ASTFunNode(int id)
Creates a new ASTFunNode
|
ASTFunNode(Parser p,
int id)
Creates a new ASTFunNode
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the node (operator symbol or function name).
|
Operator |
getOperator()
Returns the id number of the operator if the node is an operator.
|
PostfixMathCommandI |
getPFMC()
Returns the math command class associated with this node.
|
boolean |
isOperator()
Returns true if node is an operator.
|
Object |
jjtAccept(ParserVisitor visitor,
Object data)
Accept the visitor.
|
void |
setFunction(String name_in,
PostfixMathCommandI pfmc_in)
Sets the function for a node.
|
void |
setOperator(Operator op)
Sets the opID, name and pfmc for this node by looking up the values
in the Operators class
|
String |
toString()
Returns a string containing the function name.
|
childrenAccept, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
public ASTFunNode(int id)
public ASTFunNode(Parser p, int id)
public Object jjtAccept(ParserVisitor visitor, Object data) throws ParseException
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
ParseException
public void setFunction(String name_in, PostfixMathCommandI pfmc_in)
public void setOperator(Operator op)
public String toString()
toString
in class SimpleNode
public PostfixMathCommandI getPFMC()
public String getName()
public Operator getOperator()
public boolean isOperator()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics