Package org.n52.svalbard.odata.core.expr
Class UnaryExpr<T>
- java.lang.Object
-
- org.n52.svalbard.odata.core.expr.UnaryExpr<T>
-
- Type Parameters:
T- the operator type
- Direct Known Subclasses:
BooleanUnaryExpr
public abstract class UnaryExpr<T> extends Object implements Expr
Class to represent a unary expression.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<UnaryExpr<?>>asUnary()Get this expression as a unary expressionbooleanequals(Object o)ExprgetOperand()Get the operandTgetOperator()Get the operator.inthashCode()StringtoODataString()StringtoString()-
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.Expr
accept, asArithmetic, asBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, isArithmetic, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnary
-
-
-
-
Method Detail
-
getOperator
public T getOperator()
Get the operator.- Returns:
- the operator
-
getOperand
public Expr getOperand()
Get the operand- Returns:
- the operand
-
asUnary
public Optional<UnaryExpr<?>> asUnary()
Description copied from interface:ExprGet this expression as a unary expression
-
toODataString
public String toODataString()
- Specified by:
toODataStringin interfaceODataExpr
-
-