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, validateParameterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlias, setAliaspublic 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.Objectpublic boolean isAliasableNode()
isAliasableNode in class NodeEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference