Class ConstructorNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.ConstructorNode
-
- All Implemented Interfaces:
AliasableNode
public class ConstructorNode extends Node implements AliasableNode
INTERNALPurpose: Represent a constructor node (NEW)
Responsibilities:
- Generate the correct expression for a constructor
-
-
Field Summary
Fields Modifier and Type Field Description List
constructorItems
The list of constructor call argument nodes-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description ConstructorNode(String className)
Return a new ConstructorNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstructorItem(Object theNode)
INTERNAL Add an Order By Item to this nodevoid
applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed queryString
getAsString()
INTERNAL Get the string representation of this node.List
getConstructorItems()
INTERNAL Get the list of constructor items of this node.boolean
isAliasableNode()
boolean
isConstructorNode()
INTERNAL Is this node a ConstructorNodevoid
setConstructorItems(List items)
INTERNAL Set the list of constructor items of this node.void
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, generateExpression, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
-
-
-
Field Detail
-
constructorItems
public List constructorItems
The list of constructor call argument nodes
-
-
Constructor Detail
-
ConstructorNode
public ConstructorNode(String className)
Return a new ConstructorNode
-
-
Method Detail
-
applyToQuery
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query- Overrides:
applyToQuery
in classNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
isConstructorNode
public boolean isConstructorNode()
INTERNAL Is this node a ConstructorNode- Overrides:
isConstructorNode
in classNode
-
addConstructorItem
public void addConstructorItem(Object theNode)
INTERNAL Add an Order By Item to this node
-
setConstructorItems
public void setConstructorItems(List items)
INTERNAL Set the list of constructor items of this node.
-
getConstructorItems
public List getConstructorItems()
INTERNAL Get the list of constructor items of this node.
-
getAsString
public String getAsString()
INTERNAL Get the string representation of this node.- Overrides:
getAsString
in classNode
-
isAliasableNode
public boolean isAliasableNode()
- Overrides:
isAliasableNode
in classNode
-
-