public class Node
extends java.lang.Object
Purpose: This is the superclass for all Nodes.
Responsibilities:
Modifier and Type | Field and Description |
---|---|
boolean |
shouldGenerateExpression |
Constructor and Description |
---|
Node()
Return a new Node.
|
Modifier and Type | Method and Description |
---|---|
Expression |
addToExpression(Expression parentExpression,
GenerationContext context)
INTERNAL
Add my expression semantics to the parentExpression.
|
Expression |
appendExpression(Expression left,
Expression right)
INTERNAL
Returns left.and(right) if both are defined.
|
void |
applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
Expression |
generateExpression(GenerationContext context)
INTERNAL
Generate an expression for the node.
|
java.lang.String |
getAlias() |
java.lang.String |
getAsString()
INTERNAL
Get the string representation of this node.
|
int |
getColumn() |
Node |
getLeft()
INTERNAL
Return the left node
|
int |
getLine() |
Node |
getRight()
INTERNAL
Return the right node
|
java.lang.Object |
getType()
INTERNAL
Return the type of this node.
|
boolean |
hasLeft()
INTERNAL
Does this node have a left
|
boolean |
hasRight()
INTERNAL
Does this node have a right
|
boolean |
isAggregateNode()
INTERNAL
Is this node an Aggregate node
|
boolean |
isAliasableNode() |
boolean |
isAttributeNode()
INTERNAL
Is this node an AttributeNode
|
boolean |
isConstructorNode()
INTERNAL
Is this node a ConstructorNode
|
boolean |
isCountNode()
INTERNAL
Is this node a CountNode
|
boolean |
isDivideNode()
INTERNAL
Is this node a Divide node
|
boolean |
isDotNode()
INTERNAL
Is this node a Dot node
|
boolean |
isEscape()
INTERNAL
Is this an escape node
|
boolean |
isLiteralNode()
INTERNAL
Is this a literal node
|
boolean |
isMapKeyNode()
INTERNAL
Is this node a MapKey node
|
boolean |
isMinusNode()
INTERNAL
Is this node a Minus node
|
boolean |
isMultiplyNode()
INTERNAL
Is this node a Multiply node
|
boolean |
isNotNode()
INTERNAL
Is this node a Not node
|
boolean |
isParameterNode()
INTERNAL
Is this a Parameter node
|
boolean |
isPlusNode()
INTERNAL
Is this node a Plus node
|
boolean |
isSubqueryNode()
INTERNAL
Is this node a SubqueryNode
|
boolean |
isVariableNode()
INTERNAL
Is this node a VariableNode
|
Node |
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL
Check the child node for an unqualified field access and if so,
replace it by a qualified field access.
|
java.lang.String |
resolveAttribute()
resolveAttribute(): Answer the name of the attribute which is represented by the receiver.
|
java.lang.Class |
resolveClass(GenerationContext context)
resolveClass: Answer the class associated with the content of this node.
|
java.lang.Class |
resolveClass(GenerationContext context,
java.lang.Class ownerClass)
resolveClass: Answer the class associated with the content of this node.
|
DatabaseMapping |
resolveMapping(GenerationContext context)
resolveMapping: Answer the mapping associated with the contained nodes.
|
DatabaseMapping |
resolveMapping(GenerationContext context,
java.lang.Class ownerClass)
resolveMapping: Answer the mapping associated with the contained nodes.
|
void |
setAlias(java.lang.String alias) |
void |
setColumn(int column) |
void |
setLeft(Node newLeft)
INTERNAL
Set the left node to the passed value
|
void |
setLine(int line) |
void |
setRight(Node newRight)
INTERNAL
Set the right for this node
|
void |
setType(java.lang.Object type)
INTERNAL
Set this node's type.
|
java.lang.String |
toString() |
java.lang.String |
toString(int indent) |
java.lang.String |
toStringDisplayName() |
void |
toStringIndent(int indent,
java.lang.StringBuilder buffer) |
void |
validate(ParseTreeContext context)
INTERNAL
Validate node and calculate its type.
|
void |
validateParameter(ParseTreeContext context,
java.lang.Object contextType)
INTERNAL
|
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
public Expression addToExpression(Expression parentExpression, GenerationContext context)
public java.lang.String getAsString()
public Node qualifyAttributeAccess(ParseTreeContext context)
public void validate(ParseTreeContext context)
public void validateParameter(ParseTreeContext context, java.lang.Object contextType)
public Expression generateExpression(GenerationContext context)
public Node getLeft()
public Node getRight()
public boolean hasLeft()
public boolean hasRight()
public boolean isAggregateNode()
public boolean isDotNode()
public boolean isLiteralNode()
public boolean isMultiplyNode()
public boolean isNotNode()
public boolean isParameterNode()
public boolean isDivideNode()
public boolean isPlusNode()
public boolean isMapKeyNode()
public boolean isMinusNode()
public boolean isVariableNode()
public boolean isAttributeNode()
public boolean isCountNode()
public boolean isConstructorNode()
public boolean isSubqueryNode()
public boolean isEscape()
public java.lang.String resolveAttribute()
public java.lang.Class resolveClass(GenerationContext context)
public java.lang.Class resolveClass(GenerationContext context, java.lang.Class ownerClass)
public DatabaseMapping resolveMapping(GenerationContext context)
public DatabaseMapping resolveMapping(GenerationContext context, java.lang.Class ownerClass)
public void setLeft(Node newLeft)
public void setRight(Node newRight)
public int getLine()
public void setLine(int line)
public int getColumn()
public void setColumn(int column)
public java.lang.Object getType()
public void setType(java.lang.Object type)
public Expression appendExpression(Expression left, Expression right)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent)
public java.lang.String toStringDisplayName()
public void toStringIndent(int indent, java.lang.StringBuilder buffer)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
public boolean isAliasableNode()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference