public class LiteralNode extends Node
Purpose: Superclass for literals (String, Integer, Float, Character, ...)
Responsibilities:
Modifier and Type | Field and Description |
---|---|
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.
|
String |
getAsString()
INTERNAL
Return the literal
|
Object |
getLiteral()
Insert the method's description here.
|
boolean |
isLiteralNode()
INTERNAL
Is this a literal node
|
void |
setLiteral(Object newLiteral)
Insert the method's description here.
|
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, validateParameter
public Object literal
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
applyToQuery
in class Node
public Expression generateExpression(GenerationContext context)
generateExpression
in class Node
public String getAsString()
getAsString
in class Node
public Object getLiteral()
public boolean isLiteralNode()
isLiteralNode
in class Node
public void setLiteral(Object newLiteral)
newLiteral
- java.lang.ObjectCopyright © 2021. All rights reserved.