Class BooleanUnaryExpr
java.lang.Object
org.n52.svalbard.odata.core.expr.UnaryExpr<FilterConstants.UnaryLogicOperator>
org.n52.svalbard.odata.core.expr.bool.BooleanUnaryExpr
- All Implemented Interfaces:
ODataExpr,BooleanExpr,Expr
public class BooleanUnaryExpr
extends UnaryExpr<FilterConstants.UnaryLogicOperator>
implements BooleanExpr
Class to hold a unary boolean expression.
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanUnaryExpr(FilterConstants.UnaryLogicOperator operator, BooleanExpr operand) Create a newBooleanUnaryExpr. -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(ExprVisitor<T, X> visitor) Acceptsvisitorfor this expression.Get this expression as a boolean unary expressionbooleanGet the operandinthashCode()booleanCheck if this expression is a boolean unary expression.Methods inherited from class org.n52.svalbard.odata.core.expr.UnaryExpr
asUnary, getOperator, 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, asBooleanBinary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isArithmetic, isBinary, isBooleanBinary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnaryMethods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
Constructor Details
-
BooleanUnaryExpr
Create a newBooleanUnaryExpr.- Parameters:
operator- the operatoroperand- the operand
-
-
Method Details
-
isBooleanUnary
public boolean isBooleanUnary()Description copied from interface:ExprCheck if this expression is a boolean unary expression.- Specified by:
isBooleanUnaryin interfaceExpr- Returns:
- if it is a unary boolean expression
-
asBooleanUnary
Description copied from interface:ExprGet this expression as a boolean unary expression- Specified by:
asBooleanUnaryin interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-
accept
Description copied from interface:ExprAcceptsvisitorfor this expression. -
getOperand
Description copied from class:UnaryExprGet the operand- Overrides:
getOperandin classUnaryExpr<FilterConstants.UnaryLogicOperator>- Returns:
- the operand
-
hashCode
public int hashCode()- Overrides:
hashCodein classUnaryExpr<FilterConstants.UnaryLogicOperator>
-
equals
- Overrides:
equalsin classUnaryExpr<FilterConstants.UnaryLogicOperator>
-