Web Site

org.codehaus.janino
Class Java.BinaryOperation

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Atom
          extended byorg.codehaus.janino.Java.Rvalue
              extended byorg.codehaus.janino.Java.BooleanRvalue
                  extended byorg.codehaus.janino.Java.BinaryOperation
All Implemented Interfaces:
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
 
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, String op, Java.Rvalue rhs)
           
 
Method Summary
 String toString()
           
 Iterator unrollLeftAssociation()
          Returns an Iterator over a left-to-right sequence of Java.Rvalues.
 void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)
           
 void visit(org.codehaus.janino.Visitor.RvalueVisitor visitor)
           
 
Methods inherited from class org.codehaus.janino.Java.Rvalue
toRvalue
 
Methods inherited from class org.codehaus.janino.Java.Atom
getLocation, throwParseException, toLvalue, toLvalueOrPE, toRvalueOrPE, toType, toTypeOrPE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Java.BinaryOperation

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

toString

public String toString()
Specified by:
toString in class Java.Atom

unrollLeftAssociation

public Iterator unrollLeftAssociation()
Returns an Iterator over a left-to-right sequence of Java.Rvalues.


visit

public final void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)
Specified by:
visit in class Java.Atom

visit

public final void visit(org.codehaus.janino.Visitor.RvalueVisitor visitor)
Specified by:
visit in class Java.Rvalue

Web Site