|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
org.apache.jdo.impl.jdoql.tree.NodeImpl
org.apache.jdo.impl.jdoql.tree.Expr
org.apache.jdo.impl.jdoql.tree.BinaryExpr
This node represents a binary operator. All binary operators have exactly
two children. Examples of binary operators
are AndExpression
and EqualsExpression
.
Field Summary |
Fields inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
column, line, typeInfo |
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
BinaryExpr()
The noarg constructor is needed for ANTLR support and deserialization. |
Method Summary | |
java.lang.Class |
getCommonOperandType()
Returns the class instance suiteable for implementing the result of this expression. |
Expression |
getLeftExpression()
Returns the first child of this node. |
Expression |
getRightExpression()
Returns the second child of this node. |
void |
setCommonOperandType(java.lang.Class clazz)
Sets the common operand type for this binary expression. |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
arrive, clone, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, toString, walkNextChild |
Methods inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
arrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChild |
Constructor Detail |
public BinaryExpr()
setChildren
optionally.
Method Detail |
public Expression getLeftExpression()
getLeftExpression
in interface BinaryExpression
public Expression getRightExpression()
getRightExpression
in interface BinaryExpression
public java.lang.Class getCommonOperandType()
getJavaClass
. In case of relational binary
expressions, that class instance differs from the type retrieved by
getJavaClass
, because relational binary expressions
have a boolean result type which does not depend of the operand types.
getCommonOperandType
in interface BinaryExpression
public void setCommonOperandType(java.lang.Class clazz)
clazz
- the common operand type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |