|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
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, reachable, reachable |
Field Detail |
public static final Binary.Operator GT
public static final Binary.Operator LT
public static final Binary.Operator EQ
public static final Binary.Operator LE
public static final Binary.Operator GE
public static final Binary.Operator NE
public static final Binary.Operator COND_OR
public static final Binary.Operator COND_AND
public static final Binary.Operator ADD
public static final Binary.Operator SUB
public static final Binary.Operator MUL
public static final Binary.Operator DIV
public static final Binary.Operator MOD
public static final Binary.Operator BIT_OR
public static final Binary.Operator BIT_AND
public static final Binary.Operator BIT_XOR
public static final Binary.Operator SHL
public static final Binary.Operator SHR
public static final Binary.Operator USHR
Method Detail |
public Expr left()
public Binary left(Expr left)
public Binary.Operator operator()
public Binary operator(Binary.Operator op)
public Expr right()
public Binary right(Expr right)
public boolean throwsArithmeticException()
public Binary precedence(Precedence precedence)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |