Package org.n52.svalbard.odata.core.expr
Class MemberExpr
- java.lang.Object
-
- org.n52.svalbard.odata.core.expr.MemberExpr
-
- All Implemented Interfaces:
ODataExpr,ArithmeticExpr,DirectTextExpr,Expr,TextExpr
public final class MemberExpr extends Object implements ArithmeticExpr, DirectTextExpr
Class to hold a member or value reference expression.
-
-
Constructor Summary
Constructors Constructor Description MemberExpr(String value)Create a newMemberExpr.
-
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<MemberExpr>asMember()Get this expression as a member expressionbooleanequals(Object o)StringgetValue()Get the value.inthashCode()booleanisMember()Check if this expression is a member expression.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.arithmetic.ArithmeticExpr
asArithmetic, isArithmetic
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.DirectTextExpr
asTextValue
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.Expr
asBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMethodCall, asNumericValue, asTime, asUnary, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMethodCall, isNumericValue, isTime, isUnary
-
Methods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.TextExpr
isTextValue
-
-
-
-
Constructor Detail
-
MemberExpr
public MemberExpr(String value)
Create a newMemberExpr.- Parameters:
value- the value
-
-
Method Detail
-
getValue
public String getValue()
Get the value.- Specified by:
getValuein interfaceDirectTextExpr- Returns:
- the value
-
isMember
public boolean isMember()
Description copied from interface:ExprCheck if this expression is a member expression.
-
asMember
public Optional<MemberExpr> asMember()
Description copied from interface:ExprGet this expression as a member expression
-
accept
public <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Description copied from interface:ExprAcceptsvisitorfor this expression.
-
-