Class ScalarNode<V>
java.lang.Object
org.apache.cayenne.template.parser.SimpleNode
org.apache.cayenne.template.parser.ScalarNode<V>
- All Implemented Interfaces:
ExpressionNode, Node
- Direct Known Subclasses:
ASTBoolScalar, ASTFloatScalar, ASTIntScalar, ASTStringScalar, ASTText
- 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) getValue()voidMethods 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
-
ScalarNode
public ScalarNode(int i)
-
-
Method Details
-
setValue
-
getValue
-
evaluate
-
evaluateAsString
- Specified by:
evaluateAsStringin interfaceExpressionNode
-
evaluateAsObject
- Specified by:
evaluateAsObjectin interfaceExpressionNode
-
evaluateAsLong
- Specified by:
evaluateAsLongin interfaceExpressionNode
-
evaluateAsDouble
- Specified by:
evaluateAsDoublein interfaceExpressionNode
-
evaluateAsBoolean
- Specified by:
evaluateAsBooleanin interfaceExpressionNode
-