public class NumberValue extends AbstractTCLNode
AND, ARRAY, ASSOC, DEFAULT, DISCRIM, DIV, DOLLAR, DOT, EOF, EQ, EXIST, FALSE, FIRST, GT, GTE, IDENTIFIER, IMPLICIT, IN, LBRACKET, LENGTH, LPAREN, LT, LTE, MAX, MIN, MINUS, MULT, NEQ, NOT, NULL_TREE_LOOKAHEAD, NUM_FLOAT, NUMBER, OR, PLUS, RANDOM, RBRACKET, REPO_ID, RPAREN, RUNTIME_VAR, STRING, SUBSTR, TRUE, TYPE, TYPE_ID, UNARY_MINUS, UNARY_PLUS, UNION_POS, WITH, WS
Constructor and Description |
---|
NumberValue(antlr.Token tok) |
Modifier and Type | Method and Description |
---|---|
void |
acceptInOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal Inorder
|
void |
acceptPostOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Postorder.
|
void |
acceptPreOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Preorder.
|
EvaluationResult |
evaluate(EvaluationContext context)
Evaluate this Node.
|
java.lang.Double |
getNumber() |
boolean |
isNumber() |
boolean |
isStatic() |
java.lang.String |
toString() |
getName, getNameForType, getType, hasNextSibling, initialize, initialize, initialize, isBoolean, isString, left, printToStringBuffer, right, setType, toStringTree
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getText, getTokenNames, removeChildren, setFirstChild, setNextSibling, setText, setVerboseStringConversion, toStringList, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
public java.lang.Double getNumber()
public EvaluationResult evaluate(EvaluationContext context)
AbstractTCLNode
evaluate
in class AbstractTCLNode
context
- an EvaluationContext
value contains all context information
necessary for the evaluationEvaluationResult
valuepublic java.lang.String toString()
toString
in interface antlr.collections.AST
toString
in class antlr.BaseAST
public boolean isStatic()
isStatic
in class AbstractTCLNode
public boolean isNumber()
isNumber
in class AbstractTCLNode
public void acceptInOrder(AbstractTCLVisitor visitor) throws VisitorException
AbstractTCLNode
acceptInOrder
in class AbstractTCLNode
VisitorException
public void acceptPostOrder(AbstractTCLVisitor visitor) throws VisitorException
AbstractTCLNode
acceptPostOrder
in class AbstractTCLNode
VisitorException
public void acceptPreOrder(AbstractTCLVisitor visitor) throws VisitorException
AbstractTCLNode
acceptPreOrder
in class AbstractTCLNode
VisitorException