public interface Binary extends Expr
Binary
represents a Java binary expression, an
immutable pair of expressions combined with an operator.Modifier and Type | Interface and Description |
---|---|
static class |
Binary.Operator
Binary expression operator.
|
Term.Instance
Modifier and Type | Field and Description |
---|---|
static Binary.Operator |
ADD |
static Binary.Operator |
BIT_AND |
static Binary.Operator |
BIT_OR |
static Binary.Operator |
BIT_XOR |
static Binary.Operator |
COND_AND |
static Binary.Operator |
COND_OR |
static Binary.Operator |
DIV |
static Binary.Operator |
EQ |
static Binary.Operator |
GE |
static Binary.Operator |
GT |
static Binary.Operator |
LE |
static Binary.Operator |
LT |
static Binary.Operator |
MOD |
static Binary.Operator |
MUL |
static Binary.Operator |
NE |
static Binary.Operator |
SHL |
static Binary.Operator |
SHR |
static Binary.Operator |
SUB |
static Binary.Operator |
USHR |
Modifier and Type | Method and Description |
---|---|
Expr |
left()
Left child of the binary.
|
Binary |
left(Expr left)
Set the left child of the binary.
|
Binary.Operator |
operator()
The binary's operator.
|
Binary |
operator(Binary.Operator op)
Set the binary's operator.
|
Binary |
precedence(Precedence precedence)
Set the precedence of the expression.
|
Expr |
right()
Right child of the binary.
|
Binary |
right(Expr right)
Set the right child of the binary.
|
boolean |
throwsArithmeticException()
Returns true if the binary might throw an arithmetic exception,
such as division by zero.
|
constantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
exceptions, exceptions, reachable, reachable
static final Binary.Operator GT
static final Binary.Operator LT
static final Binary.Operator EQ
static final Binary.Operator LE
static final Binary.Operator GE
static final Binary.Operator NE
static final Binary.Operator COND_OR
static final Binary.Operator COND_AND
static final Binary.Operator ADD
static final Binary.Operator SUB
static final Binary.Operator MUL
static final Binary.Operator DIV
static final Binary.Operator MOD
static final Binary.Operator BIT_OR
static final Binary.Operator BIT_AND
static final Binary.Operator BIT_XOR
static final Binary.Operator SHL
static final Binary.Operator SHR
static final Binary.Operator USHR
Expr left()
Binary.Operator operator()
Binary operator(Binary.Operator op)
Expr right()
boolean throwsArithmeticException()
Binary precedence(Precedence precedence)