public final class MethodCallExpr extends Expression implements NodeWithTypeArguments<MethodCallExpr>, NodeWithArguments<MethodCallExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION| Constructor and Description |
|---|
MethodCallExpr() |
MethodCallExpr(Optional<Expression> scope,
NameExpr name,
NodeList<Expression> args) |
MethodCallExpr(Optional<Expression> scope,
String name) |
MethodCallExpr(Range range,
Optional<Expression> scope,
Optional<NodeList<Type<?>>> typeArguments,
NameExpr name,
NodeList<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.
|
NodeList<Expression> |
getArgs() |
String |
getName() |
NameExpr |
getNameExpr() |
Optional<Expression> |
getScope() |
Optional<NodeList<Type<?>>> |
getTypeArguments() |
MethodCallExpr |
setArgs(NodeList<Expression> args) |
MethodCallExpr |
setName(String name) |
MethodCallExpr |
setNameExpr(NameExpr name) |
MethodCallExpr |
setScope(Optional<Expression> scope) |
MethodCallExpr |
setTypeArguments(Optional<NodeList<Type<?>>> types)
Allows you to set the generic arguments
|
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitisUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArgumentsaddArgument, addArgumentpublic MethodCallExpr()
public MethodCallExpr(Optional<Expression> scope, String name)
public MethodCallExpr(Optional<Expression> scope, NameExpr name, NodeList<Expression> args)
public MethodCallExpr(Range range, Optional<Expression> scope, Optional<NodeList<Type<?>>> typeArguments, NameExpr name, NodeList<Expression> args)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic NodeList<Expression> getArgs()
getArgs in interface NodeWithArguments<MethodCallExpr>public String getName()
public NameExpr getNameExpr()
public Optional<Expression> getScope()
public MethodCallExpr setArgs(NodeList<Expression> args)
setArgs in interface NodeWithArguments<MethodCallExpr>public MethodCallExpr setName(String name)
public MethodCallExpr setNameExpr(NameExpr name)
public MethodCallExpr setScope(Optional<Expression> scope)
public Optional<NodeList<Type<?>>> getTypeArguments()
getTypeArguments in interface NodeWithTypeArguments<MethodCallExpr>public MethodCallExpr setTypeArguments(Optional<NodeList<Type<?>>> types)
NodeWithTypeArgumentssetTypeArguments in interface NodeWithTypeArguments<MethodCallExpr>types - The list of types of the genericsCopyright © 2007–2016. All rights reserved.