public abstract class BinaryExpr extends Expr implements BinaryExpression
AndExpression
and EqualsExpression
.Constructor and Description |
---|
BinaryExpr()
The noarg constructor is needed for ANTLR support and deserialization.
|
Modifier and Type | Method and Description |
---|---|
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.
|
arrive, clone, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, toString, walkNextChild
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChild
public BinaryExpr()
setChildren
optionally.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 typeCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.