Purpose: This is the superclass for all Nodes.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| private int | |
| protected Node | |
| private int | |
| protected Node | |
| public boolean | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | addToExpression(Expression parentExpression, GenerationContext context)
INTERNAL Add my expression semantics to the parentExpression. |
| public Expression | appendExpression(Expression left, Expression right)
INTERNAL Returns left.and(right) if both are defined. |
| public void | applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query |
| public Expression | |
| public String | |
| public String | |
| public int | |
| public Node | |
| public int | |
| public Node | |
| public Object | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Node | qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the child node for an unqualified field access and if so, replace it by a qualified field access. |
| public String | resolveAttribute()
resolveAttribute(): Answer the name of the attribute which is represented by the receiver. |
| public Class | resolveClass(GenerationContext context)
resolveClass: Answer the class associated with the content of this node. |
| public Class | resolveClass(GenerationContext context, Class<?> ownerClass)
resolveClass: Answer the class associated with the content of this node. |
| public DatabaseMapping | resolveMapping(GenerationContext context)
resolveMapping: Answer the mapping associated with the contained nodes. |
| public DatabaseMapping | resolveMapping(GenerationContext context, Class<?> ownerClass)
resolveMapping: Answer the mapping associated with the contained nodes. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public String | |
| public String | |
| public void | |
| public void | |
| public void |
| alias | back to summary |
|---|---|
| protected String alias | |
| column | back to summary |
|---|---|
| private int column | |
| left | back to summary |
|---|---|
| protected Node left | |
| line | back to summary |
|---|---|
| private int line | |
| right | back to summary |
|---|---|
| protected Node right | |
| shouldGenerateExpression | back to summary |
|---|---|
| public boolean shouldGenerateExpression | |
| type | back to summary |
|---|---|
| private Object type | |
| Node | back to summary |
|---|---|
| public Node() Return a new Node. | |
| addToExpression | back to summary |
|---|---|
| public Expression addToExpression(Expression parentExpression, GenerationContext context) INTERNAL Add my expression semantics to the parentExpression. Each subclass will add a different expression and thus will need to override this method | |
| appendExpression | back to summary |
|---|---|
| public Expression appendExpression(Expression left, Expression right) INTERNAL Returns left.and(right) if both are defined. | |
| applyToQuery | back to summary |
|---|---|
| public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Apply this node to the passed query | |
| generateExpression | back to summary |
|---|---|
| public Expression generateExpression(GenerationContext context) INTERNAL Generate an expression for the node. Each subclass will generate a different expression and thus will need to override this method | |
| getAlias | back to summary |
|---|---|
| public String getAlias() | |
| getAsString | back to summary |
|---|---|
| public String getAsString() INTERNAL Get the string representation of this node. By default return toString() | |
| getColumn | back to summary |
|---|---|
| public int getColumn() | |
| getLeft | back to summary |
|---|---|
| public Node getLeft() INTERNAL Return the left node | |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getRight | back to summary |
|---|---|
| public Node getRight() INTERNAL Return the right node | |
| getType | back to summary |
|---|---|
| public Object getType() INTERNAL Return the type of this node. | |
| hasLeft | back to summary |
|---|---|
| public boolean hasLeft() INTERNAL Does this node have a left | |
| hasRight | back to summary |
|---|---|
| public boolean hasRight() INTERNAL Does this node have a right | |
| isAggregateNode | back to summary |
|---|---|
| public boolean isAggregateNode() INTERNAL Is this node an Aggregate node | |
| isAliasableNode | back to summary |
|---|---|
| public boolean isAliasableNode() | |
| isAttributeNode | back to summary |
|---|---|
| public boolean isAttributeNode() INTERNAL Is this node an AttributeNode | |
| isConstructorNode | back to summary |
|---|---|
| public boolean isConstructorNode() INTERNAL Is this node a ConstructorNode | |
| isCountNode | back to summary |
|---|---|
| public boolean isCountNode() INTERNAL Is this node a CountNode | |
| isDivideNode | back to summary |
|---|---|
| public boolean isDivideNode() INTERNAL Is this node a Divide node | |
| isDotNode | back to summary |
|---|---|
| public boolean isDotNode() INTERNAL Is this node a Dot node | |
| isEscape | back to summary |
|---|---|
| public boolean isEscape() INTERNAL Is this an escape node | |
| isLiteralNode | back to summary |
|---|---|
| public boolean isLiteralNode() INTERNAL Is this a literal node | |
| isMapKeyNode | back to summary |
|---|---|
| public boolean isMapKeyNode() INTERNAL Is this node a MapKey node | |
| isMinusNode | back to summary |
|---|---|
| public boolean isMinusNode() INTERNAL Is this node a Minus node | |
| isMultiplyNode | back to summary |
|---|---|
| public boolean isMultiplyNode() INTERNAL Is this node a Multiply node | |
| isNotNode | back to summary |
|---|---|
| public boolean isNotNode() INTERNAL Is this node a Not node | |
| isParameterNode | back to summary |
|---|---|
| public boolean isParameterNode() INTERNAL Is this a Parameter node | |
| isPlusNode | back to summary |
|---|---|
| public boolean isPlusNode() INTERNAL Is this node a Plus node | |
| isSubqueryNode | back to summary |
|---|---|
| public boolean isSubqueryNode() INTERNAL Is this node a SubqueryNode | |
| isVariableNode | back to summary |
|---|---|
| public boolean isVariableNode() INTERNAL Is this node a VariableNode | |
| qualifyAttributeAccess | back to summary |
|---|---|
| public Node qualifyAttributeAccess(ParseTreeContext context) INTERNAL Check the child node for an unqualified field access and if so, replace it by a qualified field access. | |
| resolveAttribute | back to summary |
|---|---|
| public String resolveAttribute() resolveAttribute(): Answer the name of the attribute which is represented by the receiver. Subclasses should override this. | |
| resolveClass | back to summary |
|---|---|
| public Class resolveClass: Answer the class associated with the content of this node. Default is to return null. Subclasses should override this. | |
| resolveClass | back to summary |
|---|---|
| public Class resolveClass: Answer the class associated with the content of this node. Default is to return null. Subclasses should override this. | |
| resolveMapping | back to summary |
|---|---|
| public DatabaseMapping resolveMapping(GenerationContext context) resolveMapping: Answer the mapping associated with the contained nodes. Subclasses should override this. | |
| resolveMapping | back to summary |
|---|---|
| public DatabaseMapping resolveMapping(GenerationContext context, Class<?> ownerClass) resolveMapping: Answer the mapping associated with the contained nodes. Use the provided class as the context. Subclasses should override this. | |
| setAlias | back to summary |
|---|---|
| public void setAlias(String alias) | |
| setColumn | back to summary |
|---|---|
| public void setColumn(int column) | |
| setLeft | back to summary |
|---|---|
| public void setLeft(Node newLeft) INTERNAL Set the left node to the passed value | |
| setLine | back to summary |
|---|---|
| public void setLine(int line) | |
| setRight | back to summary |
|---|---|
| public void setRight(Node newRight) INTERNAL Set the right for this node | |
| setType | back to summary |
|---|---|
| public void setType(Object type) INTERNAL Set this node's type. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(int indent) | |
| toStringDisplayName | back to summary |
|---|---|
| public String toStringDisplayName() | |
| toStringIndent | back to summary |
|---|---|
| public void toStringIndent(int indent, StringBuilder buffer) | |
| validate | back to summary |
|---|---|
| public void validate(ParseTreeContext context) INTERNAL Validate node and calculate its type. | |
| validateParameter | back to summary |
|---|---|
| public void validateParameter(ParseTreeContext context, Object contextType) INTERNAL | |