|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Binary
A Binary
represents a Java binary expression, an
immutable pair of expressions combined with an operator.
Nested Class Summary | |
---|---|
static class |
Binary.Operator
Binary expression operator. |
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
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. |
Methods inherited from interface polyglot.ast.Expr |
---|
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
---|
copy |
Methods inherited from interface polyglot.ast.Typed |
---|
type |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, entry, exceptions, exceptions, reachable, reachable |
Field Detail |
---|
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
Method Detail |
---|
Expr left()
Binary left(Expr left)
Binary.Operator operator()
Binary operator(Binary.Operator op)
Expr right()
Binary right(Expr right)
boolean throwsArithmeticException()
Binary precedence(Precedence precedence)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |