public class LiteralNode extends Node implements AliasableNode
Purpose: Superclass for literals (String, Integer, Float, Character, ...)
Responsibilities:
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
literal |
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 EclipseLink ConstantExpression for this node.
|
java.lang.String |
getAsString()
INTERNAL
Return the literal
|
java.lang.Object |
getLiteral()
Insert the method's description here.
|
boolean |
isAliasableNode() |
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, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toStringDisplayName, toStringIndent, validate, validateParameter
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlias, setAlias
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
applyToQuery
in class Node
public Expression generateExpression(GenerationContext context)
generateExpression
in class Node
public java.lang.String getAsString()
getAsString
in class Node
public java.lang.Object getLiteral()
public boolean isLiteralNode()
isLiteralNode
in class Node
public void setLiteral(java.lang.Object newLiteral)
newLiteral
- java.lang.Objectpublic boolean isAliasableNode()
isAliasableNode
in class Node
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference