public static final class Java.BinaryOperation extends Java.BooleanRvalue
Operations with boolean result:
|| && == != < > <= >=
Operations with non-boolean result:
| ^ & * / % + - << >> >>>
Modifier and Type | Field and Description |
---|---|
Java.Rvalue |
lhs |
java.lang.String |
op |
Java.Rvalue |
rhs |
JUMP_IF_FALSE, JUMP_IF_TRUE
NOWHERE
Constructor and Description |
---|
BinaryOperation(Location location,
Java.Rvalue lhs,
java.lang.String op,
Java.Rvalue rhs) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.AtomVisitor visitor) |
void |
accept(Visitor.ElementValueVisitor 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.Rvalue s. |
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
getLocation, throwCompileException
public final Java.Rvalue lhs
public final java.lang.String op
public final Java.Rvalue rhs
public BinaryOperation(Location location, Java.Rvalue lhs, java.lang.String op, Java.Rvalue rhs)
public java.util.Iterator unrollLeftAssociation()
Iterator
over a left-to-right sequence of Java.Rvalue
s.public void accept(Visitor.AtomVisitor visitor)
public void accept(Visitor.RvalueVisitor visitor)
accept
in class Java.Rvalue
public void accept(Visitor.ElementValueVisitor visitor)