com.singularsys.jep.parser
Class ASTStart

java.lang.Object
  extended by com.singularsys.jep.parser.SimpleNode
      extended by com.singularsys.jep.parser.ASTStart
All Implemented Interfaces:
Node

public class ASTStart
extends SimpleNode

Start Node


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.singularsys.jep.parser.Node
Node.HookKey
 
Field Summary
 
Fields inherited from class com.singularsys.jep.parser.SimpleNode
children, id, keys, parent, parser, vals
 
Constructor Summary
ASTStart(int id)
           
ASTStart(Parser p, int id)
           
 
Method Summary
 java.lang.String getName()
          Return the name associated with the node (if any).
 Operator getOperator()
          Return the operator associated with a Node (if any)
 PostfixMathCommandI getPFMC()
          Return the pfmc of a node (if any)
 java.lang.Object getValue()
          Return the value associated with the node (if any).
 Variable getVar()
          Return the variable associated with a Node (if any)
 
Methods inherited from class com.singularsys.jep.parser.SimpleNode
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTStart

public ASTStart(int id)

ASTStart

public ASTStart(Parser p,
                int id)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Node
Return the name associated with the node (if any).

Returns:
the name if an ASTVarNode, ASTFunNode, ASTOpNode, null otherwise

getOperator

public Operator getOperator()
Description copied from interface: Node
Return the operator associated with a Node (if any)

Returns:
The Operator for ASTOpNodes, null otherwise

getPFMC

public PostfixMathCommandI getPFMC()
Description copied from interface: Node
Return the pfmc of a node (if any)

Returns:
the PostfixMathCommand for ASTFunNode and ASTOpNode, null otherwise

getValue

public java.lang.Object getValue()
Description copied from interface: Node
Return the value associated with the node (if any).

Returns:
the value if an ASTConstant, ASTVarNode, null otherwise

getVar

public Variable getVar()
Description copied from interface: Node
Return the variable associated with a Node (if any)

Returns:
The Variable for ASTVarNodes, null otherwise


Copyright © 2010 Singular Systems http://www.singularsys.com/jep