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 java.util.ListconstructorItemsThe 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(java.lang.String className)Return a new ConstructorNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstructorItem(java.lang.Object theNode)INTERNAL Add an Order By Item to this nodevoidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)INTERNAL Apply this node to the passed queryjava.lang.StringgetAsString()INTERNAL Get the string representation of this node.java.util.ListgetConstructorItems()INTERNAL Get the list of constructor items of this node.booleanisAliasableNode()booleanisConstructorNode()INTERNAL Is this node a ConstructorNodevoidsetConstructorItems(java.util.List items)INTERNAL Set the list of constructor items of this node.voidvalidate(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
-
-
-
-
Method Detail
-
applyToQuery
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query- Overrides:
applyToQueryin 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:
isConstructorNodein classNode
-
addConstructorItem
public void addConstructorItem(java.lang.Object theNode)
INTERNAL Add an Order By Item to this node
-
setConstructorItems
public void setConstructorItems(java.util.List items)
INTERNAL Set the list of constructor items of this node.
-
getConstructorItems
public java.util.List getConstructorItems()
INTERNAL Get the list of constructor items of this node.
-
getAsString
public java.lang.String getAsString()
INTERNAL Get the string representation of this node.- Overrides:
getAsStringin classNode
-
isAliasableNode
public boolean isAliasableNode()
- Overrides:
isAliasableNodein classNode
-
-