Package org.n52.svalbard.odata.core.expr
Class MethodCallExpr
- java.lang.Object
-
- org.n52.svalbard.odata.core.expr.MethodCallExpr
-
- All Implemented Interfaces:
ODataExpr,ArithmeticExpr,BooleanExpr,Expr,TemporalExpr,TextExpr
public class MethodCallExpr extends Object implements BooleanExpr, ArithmeticExpr, TemporalExpr, TextExpr
Class to hold a method call expression.
-
-
Constructor Summary
Constructors Constructor Description MethodCallExpr(String name, List<Expr> parameters)Create a newMethodCallExpr.MethodCallExpr(String name, Expr... parameter)Create a newMethodCallExpr.
-
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<MethodCallExpr>asMethodCall()Get this expression as a method call expressionbooleanequals(Object o)StringgetName()Get the name of the method.List<Expr>getParameters()Get the parameters of this method call.inthashCode()booleanisMethodCall()Check if this expression is a method call expression.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.arithmetic.ArithmeticExpr
asArithmetic, isArithmetic
-
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
asBinary, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asNumericValue, asUnary, isBinary, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isNumericValue, isUnary
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.temporal.TemporalExpr
asTime, isTime
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.TextExpr
asTextValue, isTextValue
-
-
-
-
Method Detail
-
getName
public String getName()
Get the name of the method.- Returns:
- the name
-
getParameters
public List<Expr> getParameters()
Get the parameters of this method call.- Returns:
- the parameters
-
isMethodCall
public boolean isMethodCall()
Description copied from interface:ExprCheck if this expression is a method call expression.- Specified by:
isMethodCallin interfaceExpr- Returns:
- if it is a method call expression
-
asMethodCall
public Optional<MethodCallExpr> asMethodCall()
Description copied from interface:ExprGet this expression as a method call expression- Specified by:
asMethodCallin interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-
toODataString
public String toODataString()
- Specified by:
toODataStringin interfaceODataExpr
-
accept
public <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Description copied from interface:ExprAcceptsvisitorfor this expression.
-
-