public class MethodCallExpr extends Object implements Expr, BooleanExpr
| Constructor and Description |
|---|
MethodCallExpr(String name,
List<Expr> parameters)
Create a new
MethodCallExpr. |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
accept(ExprVisitor<T,X> visitor)
Accepts
visitor for this expression. |
Optional<MethodCallExpr> |
asMethodCall()
Get this expression as a method call expression
|
String |
getName()
Get the name of the method.
|
List<Expr> |
getParameters()
Get the parameters of this method call.
|
boolean |
isMethodCall()
Check if this expression is a method call expression.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasBoolean, isBooleanasBinary, asBooleanBinary, asBooleanUnary, asComparison, asMember, asUnary, asValue, isBinary, isBooleanBinary, isBooleanUnary, isComparison, isMember, isUnary, isValuepublic String getName()
public List<Expr> getParameters()
public boolean isMethodCall()
ExprisMethodCall in interface Exprpublic Optional<MethodCallExpr> asMethodCall()
ExprasMethodCall in interface ExprOptional.empty() if the type does not matchpublic <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Exprvisitor for this expression.Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.