public class MethodCallExpr extends java.lang.Object implements Expr, BooleanExpr
| Constructor and Description |
|---|
MethodCallExpr(java.lang.String name,
java.util.List<Expr> parameters)
Create a new
MethodCallExpr. |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends java.lang.Throwable> |
accept(ExprVisitor<T,X> visitor)
Accepts
visitor for this expression. |
java.util.Optional<MethodCallExpr> |
asMethodCall()
Get this expression as a method call expression
|
java.lang.String |
getName()
Get the name of the method.
|
java.util.List<Expr> |
getParameters()
Get the parameters of this method call.
|
boolean |
isMethodCall()
Check if this expression is a method call expression.
|
java.lang.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 MethodCallExpr(java.lang.String name,
java.util.List<Expr> parameters)
MethodCallExpr.name - the method nameparameters - the parameterspublic java.lang.String getName()
public java.util.List<Expr> getParameters()
public boolean isMethodCall()
ExprisMethodCall in interface Exprpublic java.util.Optional<MethodCallExpr> asMethodCall()
ExprasMethodCall in interface ExprOptional.empty() if the type does not matchpublic java.lang.String toString()
toString in class java.lang.Objectpublic <T,X extends java.lang.Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends java.lang.Throwable
Exprvisitor for this expression.Copyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.