| java.lang.Object org.apache.ojb.jdo.jdoql.QueryTreeNode org.apache.ojb.jdo.jdoql.Expression
All known Subclasses: org.apache.ojb.jdo.jdoql.PostfixExpression, org.apache.ojb.jdo.jdoql.Literal, org.apache.ojb.jdo.jdoql.BinaryExpression, org.apache.ojb.jdo.jdoql.UnaryExpression, org.apache.ojb.jdo.jdoql.ThisExpression, org.apache.ojb.jdo.jdoql.NullLiteral,
Method Summary | |
public Expression | getParent() Returns the parent expression of this expression if it exists. | abstract public Class | getType() Returns the type of this expression. | public boolean | hasParent() Determines whether this expression has a parent expression
(i.e. | public void | replaceChild(Expression oldChild, Expression newChild) Replaces the given old child expression with the new one. | public void | setParent(Expression parent) Sets the parent expression of this expression. |
getParent | public Expression getParent()(Code) | | Returns the parent expression of this expression if it exists.
The parent expression or null if this expressionhas no parent |
getType | abstract public Class getType()(Code) | | Returns the type of this expression. Note that in the case of primitives,
the type only declares the general kind, not the actual data type. For instance,
a literal of type
Long can be a byte , short ,
int , long , or
java.math.BigInteger value.
The type |
hasParent | public boolean hasParent()(Code) | | Determines whether this expression has a parent expression
(i.e. an expression where this expression is an inner or base expression).
true if this expression has a parent expression |
replaceChild | public void replaceChild(Expression oldChild, Expression newChild)(Code) | | Replaces the given old child expression with the new one. This also sets this
expression as the parent of the new child and removes it from the old child.
Parameters: oldChild - The old child to be replaced Parameters: newChild - The new child |
setParent | public void setParent(Expression parent)(Code) | | Sets the parent expression of this expression. Note that this method
does not remove this expression from the parent.
Parameters: parent - The new parent expression |
|
|