Package org.n52.svalbard.odata.core.expr
Class BinaryExpr<T>
java.lang.Object
org.n52.svalbard.odata.core.expr.BinaryExpr<T>
- Type Parameters:
T- the operator type
- Direct Known Subclasses:
BooleanBinaryExpr,ComparisonExpr,SimpleArithmeticExpr
Class to hold a binary expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<BinaryExpr<?>> asBinary()Get this expression as a binary expressionbooleangetLeft()Get the left operand.Get the operator.getRight()Get the right operand.inthashCode()booleanisBinary()Check if this expression is a binary expression.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.svalbard.odata.core.expr.Expr
accept, asArithmetic, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isArithmetic, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnary
-
Constructor Details
-
BinaryExpr
Create a newBinaryExpr.- Parameters:
operator- the operatorleft- the left operandright- the right operand
-
-
Method Details
-
getOperator
Get the operator.- Returns:
- the operator
-
getLeft
Get the left operand.- Returns:
- the left operand
-
getRight
Get the right operand.- Returns:
- the right operand
-
isBinary
public boolean isBinary()Description copied from interface:ExprCheck if this expression is a binary expression. -
asBinary
Description copied from interface:ExprGet this expression as a binary expression -
toString
-
toODataString
- Specified by:
toODataStringin interfaceODataExpr
-
hashCode
public int hashCode() -
equals
-