Methods Summary |
---|
public oracle.toplink.essentials.expressions.Expression | addToExpression(oracle.toplink.essentials.expressions.Expression parentExpression, oracle.toplink.essentials.internal.parsing.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
return parentExpression;
|
public oracle.toplink.essentials.expressions.Expression | appendExpression(oracle.toplink.essentials.expressions.Expression left, oracle.toplink.essentials.expressions.Expression right)INTERNAL
Returns left.and(right) if both are defined.
Expression expr = null;
if (left == null) {
expr = right;
} else if (right == null) {
expr = left;
} else {
expr = left.and(right);
}
return expr;
|
public void | applyToQuery(oracle.toplink.essentials.queryframework.ObjectLevelReadQuery theQuery, oracle.toplink.essentials.internal.parsing.GenerationContext context)INTERNAL
Apply this node to the passed query
|
public oracle.toplink.essentials.expressions.Expression | generateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)INTERNAL
Generate an expression for the node. Each subclass will generate a different expression and
thus will need to override this method
return null;
|
public java.lang.String | getAsString()INTERNAL
Get the string representation of this node.
By default return toString()
return toString();
|
public int | getColumn()
return column;
|
public oracle.toplink.essentials.internal.parsing.Node | getLeft()INTERNAL
Return the left node
return left;
|
public int | getLine()
return line;
|
public oracle.toplink.essentials.internal.parsing.Node | getRight()INTERNAL
Return the right node
return right;
|
public java.lang.Object | getType()INTERNAL
Return the type of this node.
return type;
|
public boolean | hasLeft()INTERNAL
Does this node have a left
return getLeft() != null;
|
public boolean | hasRight()INTERNAL
Does this node have a right
return getRight() != null;
|
public boolean | isAggregateNode()INTERNAL
Is this node an Aggregate node
return false;
|
public boolean | isAttributeNode()INTERNAL
Is this node an AttributeNode
return false;
|
public boolean | isConstructorNode()INTERNAL
Is this node a ConstructorNode
return false;
|
public boolean | isCountNode()INTERNAL
Is this node a CountNode
return false;
|
public boolean | isDivideNode()INTERNAL
Is this node a Divide node
return false;
|
public boolean | isDotNode()INTERNAL
Is this node a Dot node
return false;
|
public boolean | isEscape()INTERNAL
Is this an escape node
return false;// no it is not
|
public boolean | isLiteralNode()INTERNAL
Is this a literal node
return false;
|
public boolean | isMinusNode()INTERNAL
Is this node a Minus node
return false;
|
public boolean | isMultiplyNode()INTERNAL
Is this node a Multiply node
return false;
|
public boolean | isNotNode()INTERNAL
Is this node a Not node
return false;
|
public boolean | isParameterNode()INTERNAL
Is this a Parameter node
return false;
|
public boolean | isPlusNode()INTERNAL
Is this node a Plus node
return false;
|
public boolean | isSubqueryNode()INTERNAL
Is this node a SubqueryNode
return false;
|
public boolean | isVariableNode()INTERNAL
Is this node a VariableNode
return false;
|
public oracle.toplink.essentials.internal.parsing.Node | qualifyAttributeAccess(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)INTERNAL
Check the child node for an unqualified field access and if so,
replace it by a qualified field access.
if (left != null) {
left = left.qualifyAttributeAccess(context);
}
if (right != null) {
right = right.qualifyAttributeAccess(context);
}
return this;
|
public java.lang.String | resolveAttribute()resolveAttribute(): Answer the name of the attribute which is represented by the receiver.
Subclasses should override this.
return "";
|
public java.lang.Class | resolveClass(oracle.toplink.essentials.internal.parsing.GenerationContext context)resolveClass: Answer the class associated with the content of this node. Default is to return null.
Subclasses should override this.
return null;
|
public java.lang.Class | resolveClass(oracle.toplink.essentials.internal.parsing.GenerationContext context, java.lang.Class ownerClass)resolveClass: Answer the class associated with the content of this node. Default is to return null.
Subclasses should override this.
return null;
|
public oracle.toplink.essentials.mappings.DatabaseMapping | resolveMapping(oracle.toplink.essentials.internal.parsing.GenerationContext context)resolveMapping: Answer the mapping associated with the contained nodes.
Subclasses should override this.
return null;
|
public oracle.toplink.essentials.mappings.DatabaseMapping | resolveMapping(oracle.toplink.essentials.internal.parsing.GenerationContext context, java.lang.Class ownerClass)resolveMapping: Answer the mapping associated with the contained nodes. Use the provided
class as the context.
Subclasses should override this.
return null;
|
public void | setColumn(int column)
this.column = column;
|
public void | setLeft(oracle.toplink.essentials.internal.parsing.Node newLeft)INTERNAL
Set the left node to the passed value
left = newLeft;
|
public void | setLine(int line)
this.line = line;
|
public void | setRight(oracle.toplink.essentials.internal.parsing.Node newRight)INTERNAL
Set the right for this node
right = newRight;
|
public void | setType(java.lang.Object type)INTERNAL
Set this node's type.
this.type = type;
|
public java.lang.String | toString()
try {
return toString(1);
} catch (Throwable t) {
return t.toString();
}
|
public java.lang.String | toString(int indent)
StringBuffer buffer = new StringBuffer();
buffer.append(toStringDisplayName());
buffer.append("\r\n");
toStringIndent(indent, buffer);
if (hasLeft()) {
buffer.append("Left: " + getLeft().toString(indent + 1));
} else {
buffer.append("Left: null");
}
buffer.append("\r\n");
toStringIndent(indent, buffer);
if (hasRight()) {
buffer.append("Right: " + getRight().toString(indent + 1));
} else {
buffer.append("Right: null");
}
return buffer.toString();
|
public java.lang.String | toStringDisplayName()
return getClass().toString().substring(getClass().toString().lastIndexOf('.") + 1, getClass().toString().length());
|
public void | toStringIndent(int indent, java.lang.StringBuffer buffer)
for (int i = 0; i < indent; i++) {
buffer.append(" ");
}
;
|
public void | validate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)INTERNAL
Validate node and calculate its type.
// Nothing to be validated here, but delegate to the child nodes.
if (left != null) {
left.validate(context);
}
if (right != null) {
right.validate(context);
}
|
public void | validateParameter(oracle.toplink.essentials.internal.parsing.ParseTreeContext context, java.lang.Object contextType)INTERNAL
// nothing to be done
|