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
Constructors Constructor Description BooleanUnaryExpr(FilterConstants.UnaryLogicOperator operator, BooleanExpr operand)Create a newBooleanUnaryExpr.
-
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<BooleanUnaryExpr>asBooleanUnary()Get this expression as a boolean unary expressionbooleanequals(Object o)BooleanExprgetOperand()Get the operandinthashCode()booleanisBooleanUnary()Check if this expression is a boolean unary expression.-
Methods inherited from class org.n52.svalbard.odata.core.expr.UnaryExpr
asUnary, getOperator, 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, asBooleanBinary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isArithmetic, isBinary, isBooleanBinary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnary
-
Methods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
-
-
-
Constructor Detail
-
BooleanUnaryExpr
public BooleanUnaryExpr(FilterConstants.UnaryLogicOperator operator, BooleanExpr operand)
Create a newBooleanUnaryExpr.- Parameters:
operator- the operatoroperand- the operand
-
-
Method Detail
-
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
public Optional<BooleanUnaryExpr> 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
public <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Description copied from interface:ExprAcceptsvisitorfor this expression.
-
getOperand
public BooleanExpr 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
public boolean equals(Object o)
- Overrides:
equalsin classUnaryExpr<FilterConstants.UnaryLogicOperator>
-
-