Class ASTVariable
java.lang.Object
org.apache.cayenne.template.parser.SimpleNode
org.apache.cayenne.template.parser.IdentifierNode
org.apache.cayenne.template.parser.ASTVariable
- All Implemented Interfaces:
ExpressionNode, Node
- Since:
- 4.1
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanevaluateAsBoolean(Context context) doubleevaluateAsDouble(Context context) longevaluateAsLong(Context context) evaluateAsObject(Context context) evaluateAsString(Context context) Methods inherited from class IdentifierNode
getIdentifier, setIdentifierMethods inherited from class SimpleNode
dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, toString, toStringModifier and TypeMethodDescriptionvoidOverride this method if you want to customize how the node dumps out its children.voidjjtAddChild(Node n, int i) This method tells the node to add its argument to the node's list of children.jjtGetChild(int i) This method returns a child node.intReturn the number of children the node has.voidjjtSetParent(Node n) This pair of methods are used to inform the node of its parent.toString()
-
Constructor Details
-
ASTVariable
public ASTVariable(int id)
-
-
Method Details
-
evaluateAsString
- Specified by:
evaluateAsStringin interfaceExpressionNode
-
evaluateAsObject
- Specified by:
evaluateAsObjectin interfaceExpressionNode
-
evaluate
-
evaluateAsLong
- Specified by:
evaluateAsLongin interfaceExpressionNode
-
evaluateAsDouble
- Specified by:
evaluateAsDoublein interfaceExpressionNode
-
evaluateAsBoolean
- Specified by:
evaluateAsBooleanin interfaceExpressionNode
-