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
The left hand side operand.
|
String |
operator
The operator, as an
interned string. |
Java.Rvalue |
rhs
The right hand side operand.
|
NOWHERE| Constructor and Description |
|---|
BinaryOperation(Location location,
Java.Rvalue lhs,
String operator,
Java.Rvalue rhs) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.RvalueVisitor<R,EX> visitor)
|
String |
toString() |
Iterator<Java.Rvalue> |
unrollLeftAssociation()
Transforms this binary operation into an
Iterator over a left-to-right sequence of Java.Rvalues. |
accept, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvaluetoLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileExceptiongetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptionpublic final Java.Rvalue lhs
public final String operator
interned string.Java.BinaryOperationpublic final Java.Rvalue rhs
public BinaryOperation(Location location, Java.Rvalue lhs, String operator, Java.Rvalue rhs)
public Iterator<Java.Rvalue> unrollLeftAssociation()
Iterator over a left-to-right sequence of Java.Rvalues.
That iterator produces two elements (the left-hand-side and the right-hand-side of this operation), or, iff the left-hand-side of this operation is itself a binary operation with the same operator, then the iterator produces the sequence of the unrolled operands.
@Nullable public <R,EX extends Throwable> R accept(Visitor.RvalueVisitor<R,EX> visitor) throws EX extends Throwable
Java.Rvalueaccept in class Java.RvalueEX extends ThrowableCopyright © 2019. All rights reserved.