public class SubstringNode extends StringFunctionNode
Purpose: Represent a SUBSTRING
Responsibilities:
left, right, shouldGenerateExpression
Constructor and Description |
---|
SubstringNode()
SubstringNode constructor comment.
|
Modifier and Type | Method and Description |
---|---|
Expression |
generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Node |
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL
Check the child nodes for an unqualified field access and if so,
replace them by a qualified field access.
|
void |
setStartPosition(Node newStartPosition)
Insert the method's description here.
|
void |
setStringLength(Node newStringLength)
Insert the method's description here.
|
void |
validate(ParseTreeContext context)
INTERNAL
Validate node and calculate its type.
|
addToExpression, appendExpression, applyToQuery, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
public Node qualifyAttributeAccess(ParseTreeContext context)
qualifyAttributeAccess
in class Node
public void validate(ParseTreeContext context)
public Expression generateExpression(GenerationContext context)
generateExpression
in class Node
public void setStartPosition(Node newStartPosition)
newStartPosition
- java.lang.Integerpublic void setStringLength(Node newStringLength)
newStringLength
- java.lang.IntegerCopyright © 2024. All rights reserved.