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
Constructors Constructor Description BooleanBinaryExpr(FilterConstants.BinaryLogicOperator operator, BooleanExpr left, BooleanExpr right)Create a newBooleanBinaryExpr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,X extends Throwable>
Taccept(ExprVisitor<T,X> visitor)Acceptsvisitorfor this expression.Optional<BooleanBinaryExpr>asBooleanBinary()Get this expression as a boolean binary expressionbooleanequals(Object o)BooleanExprgetLeft()Get the left operand.BooleanExprgetRight()Get the right operand.inthashCode()booleanisBooleanBinary()Check if this expression is a boolean binary expression.-
Methods inherited from class org.n52.svalbard.odata.core.expr.BinaryExpr
asBinary, getOperator, isBinary, toODataString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.bool.BooleanExpr
asBoolean, isBoolean
-
Methods 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, isUnary
-
Methods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
-
-
-
Constructor Detail
-
BooleanBinaryExpr
public BooleanBinaryExpr(FilterConstants.BinaryLogicOperator operator, BooleanExpr left, BooleanExpr right)
Create a newBooleanBinaryExpr.- Parameters:
operator- the operatorleft- the left operandright- the right operand
-
-
Method Detail
-
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
public Optional<BooleanBinaryExpr> 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
public <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Description copied from interface:ExprAcceptsvisitorfor this expression.
-
getLeft
public BooleanExpr getLeft()
Description copied from class:BinaryExprGet the left operand.- Overrides:
getLeftin classBinaryExpr<FilterConstants.BinaryLogicOperator>- Returns:
- the left operand
-
getRight
public BooleanExpr 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
public boolean equals(Object o)
- Overrides:
equalsin classBinaryExpr<FilterConstants.BinaryLogicOperator>
-
-