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.Locatable
- Enclosing class:
- Java
- public static final class Java.BinaryOperation
- extends Java.BooleanRvalue
Representation of all non-operand-modifying JavaTM binary
operations.
Operations with boolean result:
|| && == != < > <= >=
Operations with non-boolean result:
| ^ & * / % + - << >> >>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lhs
public final Java.Rvalue lhs
op
public final java.lang.String op
rhs
public final Java.Rvalue rhs
Java.BinaryOperation
public Java.BinaryOperation(Location location,
Java.Rvalue lhs,
java.lang.String op,
Java.Rvalue rhs)
toString
public java.lang.String toString()
- Specified by:
toString
in class Java.Atom
unrollLeftAssociation
public java.util.Iterator unrollLeftAssociation()
- Returns an
Iterator
over a left-to-right sequence of Java.Rvalue
s.
accept
public final void accept(Visitor.AtomVisitor visitor)
- Specified by:
accept
in class Java.Atom
accept
public final void accept(Visitor.RvalueVisitor visitor)
- Specified by:
accept
in class Java.Rvalue