T - the operator typepublic abstract class BinaryExpr<T> extends java.lang.Object implements Expr
| Constructor and Description |
|---|
BinaryExpr(T operator,
Expr left,
Expr right)
Create a new
BinaryExpr. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<BinaryExpr<?>> |
asBinary()
Get this expression as a binary expression
|
Expr |
getLeft()
Get the left operand.
|
T |
getOperator()
Get the operator.
|
Expr |
getRight()
Get the right operand.
|
boolean |
isBinary()
Check if this expression is a binary expression.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asMember, asMethodCall, asUnary, asValue, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isMember, isMethodCall, isUnary, isValuepublic T getOperator()
public Expr getLeft()
public Expr getRight()
public boolean isBinary()
Exprpublic java.util.Optional<BinaryExpr<?>> asBinary()
Exprpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.