Class ASTExpression
java.lang.Object
org.apache.cayenne.template.parser.SimpleNode
org.apache.cayenne.template.parser.ASTExpression
- All Implemented Interfaces:
ExpressionNode
,Node
- Direct Known Subclasses:
ASTArray
- Since:
- 4.1
-
Field Summary
Fields inherited from class org.apache.cayenne.template.parser.SimpleNode
children, id, parent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
evaluateAsBoolean
(Context context) double
evaluateAsDouble
(Context context) long
evaluateAsLong
(Context context) evaluateAsObject
(Context context) evaluateAsString
(Context context) protected ExpressionNode
getChildAsExpressionNode
(int child) Methods inherited from class org.apache.cayenne.template.parser.SimpleNode
dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, toString, toString
-
Constructor Details
-
ASTExpression
public ASTExpression(int id)
-
-
Method Details
-
getChildAsExpressionNode
-
evaluate
-
evaluateAsString
- Specified by:
evaluateAsString
in interfaceExpressionNode
-
evaluateAsObject
- Specified by:
evaluateAsObject
in interfaceExpressionNode
-
evaluateAsLong
- Specified by:
evaluateAsLong
in interfaceExpressionNode
-
evaluateAsDouble
- Specified by:
evaluateAsDouble
in interfaceExpressionNode
-
evaluateAsBoolean
- Specified by:
evaluateAsBoolean
in interfaceExpressionNode
-