| java.lang.Object oracle.toplink.essentials.internal.parsing.Node
All known Subclasses: oracle.toplink.essentials.internal.parsing.IdentificationVariableDeclNode, oracle.toplink.essentials.internal.parsing.LiteralNode, oracle.toplink.essentials.internal.parsing.FetchJoinNode, oracle.toplink.essentials.internal.parsing.AggregateNode, oracle.toplink.essentials.internal.parsing.AttributeNode, oracle.toplink.essentials.internal.parsing.UnaryMinus, oracle.toplink.essentials.internal.parsing.MajorNode, oracle.toplink.essentials.internal.parsing.SimpleConditionalExpressionNode, oracle.toplink.essentials.internal.parsing.ConstructorNode, oracle.toplink.essentials.internal.parsing.SubqueryNode, oracle.toplink.essentials.internal.parsing.ExistsNode, oracle.toplink.essentials.internal.parsing.BinaryOperatorNode, oracle.toplink.essentials.internal.parsing.FunctionalExpressionNode, oracle.toplink.essentials.internal.parsing.LogicalOperatorNode, oracle.toplink.essentials.internal.parsing.SortDirectionNode, oracle.toplink.essentials.internal.parsing.AllNode, oracle.toplink.essentials.internal.parsing.ParameterNode, oracle.toplink.essentials.internal.parsing.VariableNode, oracle.toplink.essentials.internal.parsing.AnyNode, oracle.toplink.essentials.internal.parsing.OrderByItemNode, oracle.toplink.essentials.internal.parsing.SomeNode,
Node | public class Node (Code) | | INTERNAL
Purpose: This is the superclass for all Nodes.
Responsibilities:
- Answer default answers for all method calls
- Delegate most responsibilities to the sub-classes
author: Jon Driscoll and Joel Lucuik since: TopLink 4.0 |
Constructor Summary | |
public | Node() Return a new Node. |
shouldGenerateExpression | public boolean shouldGenerateExpression(Code) | | |
Node | public Node()(Code) | | Return a new Node.
|
addToExpression | public Expression addToExpression(Expression parentExpression, GenerationContext context)(Code) | | INTERNAL
Add my expression semantics to the parentExpression. Each subclass will add a different expression and
thus will need to override this method
|
generateExpression | public Expression generateExpression(GenerationContext context)(Code) | | INTERNAL
Generate an expression for the node. Each subclass will generate a different expression and
thus will need to override this method
|
getAsString | public String getAsString()(Code) | | INTERNAL
Get the string representation of this node.
By default return toString()
|
getColumn | public int getColumn()(Code) | | |
getLeft | public Node getLeft()(Code) | | INTERNAL
Return the left node
|
getLine | public int getLine()(Code) | | |
getRight | public Node getRight()(Code) | | INTERNAL
Return the right node
|
getType | public Object getType()(Code) | | INTERNAL
Return the type of this node.
|
hasLeft | public boolean hasLeft()(Code) | | INTERNAL
Does this node have a left
|
hasRight | public boolean hasRight()(Code) | | INTERNAL
Does this node have a right
|
isAggregateNode | public boolean isAggregateNode()(Code) | | INTERNAL
Is this node an Aggregate node
|
isAttributeNode | public boolean isAttributeNode()(Code) | | INTERNAL
Is this node an AttributeNode
|
isConstructorNode | public boolean isConstructorNode()(Code) | | INTERNAL
Is this node a ConstructorNode
|
isCountNode | public boolean isCountNode()(Code) | | INTERNAL
Is this node a CountNode
|
isDivideNode | public boolean isDivideNode()(Code) | | INTERNAL
Is this node a Divide node
|
isDotNode | public boolean isDotNode()(Code) | | INTERNAL
Is this node a Dot node
|
isEscape | public boolean isEscape()(Code) | | INTERNAL
Is this an escape node
|
isLiteralNode | public boolean isLiteralNode()(Code) | | INTERNAL
Is this a literal node
|
isMinusNode | public boolean isMinusNode()(Code) | | INTERNAL
Is this node a Minus node
|
isMultiplyNode | public boolean isMultiplyNode()(Code) | | INTERNAL
Is this node a Multiply node
|
isNotNode | public boolean isNotNode()(Code) | | INTERNAL
Is this node a Not node
|
isParameterNode | public boolean isParameterNode()(Code) | | INTERNAL
Is this a Parameter node
|
isPlusNode | public boolean isPlusNode()(Code) | | INTERNAL
Is this node a Plus node
|
isSubqueryNode | public boolean isSubqueryNode()(Code) | | INTERNAL
Is this node a SubqueryNode
|
isVariableNode | public boolean isVariableNode()(Code) | | INTERNAL
Is this node a VariableNode
|
qualifyAttributeAccess | public Node qualifyAttributeAccess(ParseTreeContext context)(Code) | | INTERNAL
Check the child node for an unqualified field access and if so,
replace it by a qualified field access.
|
resolveAttribute | public String resolveAttribute()(Code) | | resolveAttribute(): Answer the name of the attribute which is represented by the receiver.
Subclasses should override this.
|
resolveClass | public Class resolveClass(GenerationContext context)(Code) | | resolveClass: Answer the class associated with the content of this node. Default is to return null.
Subclasses should override this.
|
resolveClass | public Class resolveClass(GenerationContext context, Class ownerClass)(Code) | | resolveClass: Answer the class associated with the content of this node. Default is to return null.
Subclasses should override this.
|
resolveMapping | public DatabaseMapping resolveMapping(GenerationContext context, Class ownerClass)(Code) | | resolveMapping: Answer the mapping associated with the contained nodes. Use the provided
class as the context.
Subclasses should override this.
|
setColumn | public void setColumn(int column)(Code) | | |
setLeft | public void setLeft(Node newLeft)(Code) | | INTERNAL
Set the left node to the passed value
|
setLine | public void setLine(int line)(Code) | | |
setRight | public void setRight(Node newRight)(Code) | | INTERNAL
Set the right for this node
|
setType | public void setType(Object type)(Code) | | INTERNAL
Set this node's type.
|
toStringDisplayName | public String toStringDisplayName()(Code) | | |
|
|