Class BooleanBinaryExpr
java.lang.Object
org.n52.svalbard.odata.core.expr.BinaryExpr<FilterConstants.BinaryLogicOperator>
org.n52.svalbard.odata.core.expr.bool.BooleanBinaryExpr
- All Implemented Interfaces:
ODataExpr,BooleanExpr,Expr
public class BooleanBinaryExpr
extends BinaryExpr<FilterConstants.BinaryLogicOperator>
implements BooleanExpr
Class to hold a binary boolean expression
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanBinaryExpr(FilterConstants.BinaryLogicOperator operator, BooleanExpr left, BooleanExpr right) Create a newBooleanBinaryExpr. -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(ExprVisitor<T, X> visitor) Acceptsvisitorfor this expression.Get this expression as a boolean binary expressionbooleangetLeft()Get the left operand.getRight()Get the right operand.inthashCode()booleanCheck if this expression is a boolean binary expression.Methods inherited from class org.n52.svalbard.odata.core.expr.BinaryExpr
asBinary, getOperator, isBinary, toODataString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.svalbard.odata.core.expr.bool.BooleanExpr
asBoolean, isBooleanMethods inherited from interface org.n52.svalbard.odata.core.expr.Expr
asArithmetic, asBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isArithmetic, isBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnaryMethods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
Constructor Details
-
BooleanBinaryExpr
public BooleanBinaryExpr(FilterConstants.BinaryLogicOperator operator, BooleanExpr left, BooleanExpr right) Create a newBooleanBinaryExpr.- Parameters:
operator- the operatorleft- the left operandright- the right operand
-
-
Method Details
-
isBooleanBinary
public boolean isBooleanBinary()Description copied from interface:ExprCheck if this expression is a boolean binary expression.- Specified by:
isBooleanBinaryin interfaceExpr- Returns:
- if it is a boolean binary expression
-
asBooleanBinary
Description copied from interface:ExprGet this expression as a boolean binary expression- Specified by:
asBooleanBinaryin interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-
accept
Description copied from interface:ExprAcceptsvisitorfor this expression. -
getLeft
Description copied from class:BinaryExprGet the left operand.- Overrides:
getLeftin classBinaryExpr<FilterConstants.BinaryLogicOperator>- Returns:
- the left operand
-
getRight
Description copied from class:BinaryExprGet the right operand.- Overrides:
getRightin classBinaryExpr<FilterConstants.BinaryLogicOperator>- Returns:
- the right operand
-
hashCode
public int hashCode()- Overrides:
hashCodein classBinaryExpr<FilterConstants.BinaryLogicOperator>
-
equals
- Overrides:
equalsin classBinaryExpr<FilterConstants.BinaryLogicOperator>
-