public class LiteralNode extends Node
Purpose: Superclass for literals (String, Integer, Float, Character, ...)
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
java.lang.Object |
literal |
left, right, shouldGenerateExpression| Constructor and Description |
|---|
LiteralNode()
Return a new LiteralNode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
Expression |
generateExpression(GenerationContext context)
INTERNAL
Generate the a new TopLink ConstantExpression for this node.
|
java.lang.String |
getAsString()
INTERNAL
Return the literal
|
java.lang.Object |
getLiteral()
Insert the method's description here.
|
boolean |
isLiteralNode()
INTERNAL
Is this a literal node
|
void |
setLiteral(java.lang.Object newLiteral)
Insert the method's description here.
|
java.lang.String |
toString(int indent) |
addToExpression, appendExpression, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toStringDisplayName, toStringIndent, validate, validateParameterpublic void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
applyToQuery in class Nodepublic Expression generateExpression(GenerationContext context)
generateExpression in class Nodepublic java.lang.String getAsString()
getAsString in class Nodepublic java.lang.Object getLiteral()
public boolean isLiteralNode()
isLiteralNode in class Nodepublic void setLiteral(java.lang.Object newLiteral)
newLiteral - java.lang.Object