public interface Binary extends Expression
Expression
subinterface for expressions which have left and right
operands.Modifier and Type | Field and Description |
---|---|
static int |
ADD
Binary function type for arithmetic addition:
(a +
b) . |
static int |
AND
Binary function type for logical and:
(a && b) . |
static int |
ASSIGN
Binary function type for assignment:
(a = b) . |
static int |
BAND
Deprecated.
use
BINARY_AND instead |
static int |
BINARY_AND
Binary function type for bitwise and:
(a & b) . |
static int |
BINARY_OR
Binary function type for bitwise or:
(a | b) . |
static int |
BOR
Deprecated.
use
BINARY_OR instead |
static int |
CAT
Binary function type for string concatenation:
(a + b) . |
static int |
DIV
Binary function type for arithmetic division:
(a /
b) . |
static int |
EQ
Deprecated.
use
EQUAL_TO instead |
static int |
EQUAL_TO
Binary function type for predicate equals:
(a ==
b) . |
static int |
GREATER
Binary function type for predicate greater than:
(a > b) . |
static int |
GREATER_EQUAL
Binary function type for compund predicate greater than or equal:
(a => b) . |
static int |
GT
Deprecated.
use
GREATER instead |
static int |
GTE
Deprecated.
use
GREATER_EQUAL instead. |
static int |
INSTANCE_OF
Binary function type for class equality operator:
(a instanceof b) . |
static int |
IOF
Deprecated.
use
INSTANCE_OF instead |
static int |
LAND
Deprecated.
use
@AND instead. |
static int |
LEFT
Binary function type for bitwise left shift:
(a << b) . |
static int |
LESS
Binary function type for predicate less than:
(a < b) . |
static int |
LESS_EQUAL
Binary function type for compound predicate less than or equal:
(a <= b) . |
static int |
LOR
Deprecated.
use
OR instead |
static int |
LT
Deprecated.
use
LESS instead |
static int |
LTE
Deprecated.
use
LESS_EQUAL instead |
static int |
MOD
Binary function type for arithmetic modulus:
(a %
b) . |
static int |
MUL
Binary function type for arithmetic multiplication:
(a *
b) . |
static int |
NE
Deprecated.
use
NOT_EQUAL instead |
static int |
NOT_EQUAL
Binary function type for predicate not equals: {@code (a !
|
static int |
OR
Binary function type for logical or:
(a || b) . |
static int |
RIGHT
Binary function type for bitwise right shift:
(a >> b) . |
static int |
SUB
Binary function type for arithmetix subtraction:
(a -
b) . |
static int |
UNSIGNED
Binary function type for bitwise unsigned right shift:
(a >>> b) . |
static int |
XOR
Binary function type for bitwise xor:
(a ^ b) . |
Modifier and Type | Method and Description |
---|---|
Expression |
getLValue()
Getter method for the left side.
|
Expression |
getRValue()
Getter method for the right side.
|
Binary |
setLValue(Expression e)
Setter method for the left side.
|
Binary |
setRValue(Expression e)
Setter method for the right side.
|
int |
type()
Returns the type of this binary function as one of the constants in this
interface.
|
getType
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
static final int AND
(a && b)
.@Deprecated static final int LAND
@AND
instead.(a && b)
.static final int OR
(a || b)
.@Deprecated static final int LOR
OR
instead(a || b)
.static final int BINARY_AND
(a & b)
.@Deprecated static final int BAND
BINARY_AND
instead(a & b)
.static final int BINARY_OR
(a | b)
.@Deprecated static final int BOR
BINARY_OR
instead(a | b)
.static final int XOR
(a ^ b)
.static final int LEFT
(a << b)
.static final int RIGHT
(a >> b)
.static final int UNSIGNED
(a >>> b)
.static final int ADD
(a +
b)
.static final int SUB
(a -
b)
.static final int MUL
(a *
b)
.static final int DIV
(a /
b)
.static final int MOD
(a %
b)
.static final int EQUAL_TO
(a ==
b)
.@Deprecated static final int EQ
EQUAL_TO
instead(a ==
b)
.static final int NOT_EQUAL
(a != b)
.@Deprecated static final int NE
NOT_EQUAL
instead(a != b)
.static final int GREATER
(a > b)
.@Deprecated static final int GT
GREATER
instead(a > b)
.static final int GREATER_EQUAL
(a => b)
.@Deprecated static final int GTE
GREATER_EQUAL
instead.(a => b)
.static final int LESS
(a < b)
.@Deprecated static final int LT
LESS
instead(a < b)
.static final int LESS_EQUAL
(a <= b)
.@Deprecated static final int LTE
LESS_EQUAL
instead(a <= b)
.static final int INSTANCE_OF
(a instanceof b)
.@Deprecated static final int IOF
INSTANCE_OF
instead(a instanceof
b)
.static final int CAT
(a + b)
.static final int ASSIGN
(a = b)
.Expression getLValue()
Expression getRValue()
Binary setLValue(Expression e)
Binary setRValue(Expression e)
int type()
Copyright © 2000–2018 jenesis4java. All rights reserved.