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_TRUENOWHERE| 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.Rvalues. |
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvaluetoLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileExceptiongetLocation, throwCompileExceptionpublic 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.Rvalues.public void accept(Visitor.AtomVisitor visitor)
public void accept(Visitor.RvalueVisitor visitor)
accept in class Java.Rvaluepublic void accept(Visitor.ElementValueVisitor visitor)