Web Site

org.codehaus.janino
Class Java.BinaryOperation

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Rvalue
              extended by org.codehaus.janino.Java.BooleanRvalue
                  extended by 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:
| ^ & * / % + - << >> >>>


Field Summary
 Java.Rvalue lhs
           
 java.lang.String op
           
 Java.Rvalue rhs
           
 
Fields inherited from class org.codehaus.janino.Java.Rvalue
CONSTANT_VALUE_NULL, JUMP_IF_FALSE, JUMP_IF_TRUE
 
Constructor Summary
Java.BinaryOperation(Location location, Java.Rvalue lhs, java.lang.String op, Java.Rvalue rhs)
           
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
           
 void accept(Visitor.RvalueVisitor visitor)
           
 java.lang.String toString()
           
 java.util.Iterator unrollLeftAssociation()
          Returns an Iterator over a left-to-right sequence of Java.Rvalues.
 
Methods inherited from class org.codehaus.janino.Java.Rvalue
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
 
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrPE, toRvalueOrPE, toType, toTypeOrPE
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lhs

public final Java.Rvalue lhs

op

public final java.lang.String op

rhs

public final Java.Rvalue rhs
Constructor Detail

Java.BinaryOperation

public Java.BinaryOperation(Location location,
                            Java.Rvalue lhs,
                            java.lang.String op,
                            Java.Rvalue rhs)
Method Detail

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.Rvalues.


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

Web Site