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
ConstructorsConstructorDescriptionMethodCallExpr(String name, List<Expr> parameters) Create a newMethodCallExpr.MethodCallExpr(String name, Expr... parameter) Create a newMethodCallExpr. -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(ExprVisitor<T, X> visitor) Acceptsvisitorfor this expression.Get this expression as a method call expressionbooleangetName()Get the name of the method.Get the parameters of this method call.inthashCode()booleanCheck if this expression is a method call expression.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.svalbard.odata.core.expr.arithmetic.ArithmeticExpr
asArithmetic, isArithmeticMethods inherited from interface org.n52.svalbard.odata.core.expr.bool.BooleanExpr
asBoolean, isBooleanMethods 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, isUnaryMethods inherited from interface org.n52.svalbard.odata.core.expr.temporal.TemporalExpr
asTime, isTimeMethods inherited from interface org.n52.svalbard.odata.core.expr.TextExpr
asTextValue, isTextValue
-
Constructor Details
-
MethodCallExpr
Create a newMethodCallExpr.- Parameters:
name- the method nameparameters- the parameters
-
MethodCallExpr
Create a newMethodCallExpr.- Parameters:
name- the method nameparameter- the parameter
-
-
Method Details
-
getName
Get the name of the method.- Returns:
- the name
-
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
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
-
toString
-
toODataString
- Specified by:
toODataStringin interfaceODataExpr
-
accept
Description copied from interface:ExprAcceptsvisitorfor this expression. -
hashCode
public int hashCode() -
equals
-