Package org.codehaus.janino
Class Java.BinaryOperation
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Rvalue
org.codehaus.janino.Java.BooleanRvalue
org.codehaus.janino.Java.BinaryOperation
- All Implemented Interfaces:
Java.ArrayInitializerOrRvalue
,Java.ElementValue
,Java.Locatable
- Enclosing class:
Java
Representation of all non-operand-modifying Java™ binary
operations.
Operations with boolean result:
|| invalid input: '&'invalid input: '&' == != invalid input: '<' > invalid input: '<'= >=
Operations with non-boolean result:
| ^ invalid input: '&' * / % + - invalid input: '<'invalid input: '<' >> >>>
-
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.Rvalue
JUMP_IF_FALSE, JUMP_IF_TRUE
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryOperation
(Location location, Java.Rvalue lhs, String op, Java.Rvalue rhs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor.AtomVisitor visitor) void
accept
(Visitor.ElementValueVisitor visitor) void
accept
(Visitor.RvalueVisitor visitor) toString()
Returns anIterator
over a left-to-right sequence ofJava.Rvalue
s.Methods inherited from class org.codehaus.janino.Java.Rvalue
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Field Details
-
lhs
-
op
-
rhs
-
-
Constructor Details
-
BinaryOperation
-
-
Method Details
-
toString
-
unrollLeftAssociation
Returns anIterator
over a left-to-right sequence ofJava.Rvalue
s. -
accept
-
accept
- Specified by:
accept
in classJava.Rvalue
-
accept
-