public final class MethodCallExpr extends Expression
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
MethodCallExpr() |
MethodCallExpr(Expression scope,
String name) |
MethodCallExpr(Expression scope,
String name,
List<Expression> args) |
MethodCallExpr(Range range,
Expression scope,
List<Type> typeArgs,
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.
|
List<Expression> |
getArgs() |
String |
getName() |
NameExpr |
getNameExpr() |
Expression |
getScope() |
List<Type> |
getTypeArgs() |
void |
setArgs(List<Expression> args) |
void |
setName(String name) |
void |
setNameExpr(NameExpr name) |
void |
setScope(Expression scope) |
void |
setTypeArgs(List<Type> typeArgs) |
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
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> typeArgs, String name, List<Expression> args)
public MethodCallExpr addArgument(Expression arg)
null
.arg
- argument valuepublic <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 void setName(String name)
public void setNameExpr(NameExpr name)
public void setScope(Expression scope)
Copyright © 2007–2016. All rights reserved.