public final class MethodCallExpr extends Expression implements NodeWithTypeArguments<MethodCallExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
MethodCallExpr() |
MethodCallExpr(Expression scope,
String name) |
MethodCallExpr(Expression scope,
String name,
List<Expression> args) |
MethodCallExpr(Range range,
Expression scope,
List<Type<?>> typeArguments,
String name,
List<Expression> args) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
MethodCallExpr |
addArgument(Expression arg)
Adds the given argument to the method call.
|
void |
addArgument(String arg) |
List<Expression> |
getArgs() |
String |
getName() |
NameExpr |
getNameExpr() |
Expression |
getScope() |
List<Type<?>> |
getTypeArguments() |
void |
setArgs(List<Expression> args) |
MethodCallExpr |
setName(String name) |
MethodCallExpr |
setNameExpr(NameExpr name) |
MethodCallExpr |
setScope(Expression scope) |
MethodCallExpr |
setTypeArguments(List<Type<?>> types)
Allows you to set the generic arguments
|
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
isUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArguments
public MethodCallExpr()
public MethodCallExpr(Expression scope, String name)
public MethodCallExpr(Expression scope, String name, List<Expression> args)
public MethodCallExpr(Range range, Expression scope, List<Type<?>> typeArguments, String name, List<Expression> args)
public MethodCallExpr addArgument(Expression arg)
arg
- argument valuepublic void addArgument(String arg)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public List<Expression> getArgs()
public String getName()
public NameExpr getNameExpr()
public Expression getScope()
public void setArgs(List<Expression> args)
public MethodCallExpr setName(String name)
public MethodCallExpr setNameExpr(NameExpr name)
public MethodCallExpr setScope(Expression scope)
public List<Type<?>> getTypeArguments()
getTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
public MethodCallExpr setTypeArguments(List<Type<?>> types)
NodeWithTypeArguments
setTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
types
- The list of types of the genericsCopyright © 2007–2016. All rights reserved.