public final class MethodCallExpr extends Expression implements NodeWithTypeArguments<MethodCallExpr>, NodeWithArguments<MethodCallExpr>, NodeWithSimpleName<MethodCallExpr>
circle.circumference()
a.<String>bb(15);
a
is the scope, String is a type argument, bb is the name and 15 is an argument.Node.ObserverRegistrationMode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
MethodCallExpr() |
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
String name) |
MethodCallExpr(Range range,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
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> |
getArguments() |
SimpleName |
getName() |
Expression |
getScope() |
Optional<NodeList<Type>> |
getTypeArguments() |
MethodCallExpr |
setArguments(NodeList<Expression> arguments) |
MethodCallExpr |
setName(SimpleName name) |
MethodCallExpr |
setScope(Expression scope) |
MethodCallExpr |
setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getData, getEnd, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
isUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArguments
addArgument, addArgument, getArgument, setArgument
getNameAsString, setName
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
public MethodCallExpr()
public MethodCallExpr(Expression scope, String name)
public MethodCallExpr(Expression scope, SimpleName name, NodeList<Expression> arguments)
public MethodCallExpr(Range range, Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface Visitable
R
- the type of the return value of the visitorA
- the type the user argument passed to the visitorv
- the visitor implementationarg
- the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
public NodeList<Expression> getArguments()
getArguments
in interface NodeWithArguments<MethodCallExpr>
public SimpleName getName()
getName
in interface NodeWithSimpleName<MethodCallExpr>
public Expression getScope()
public MethodCallExpr setArguments(NodeList<Expression> arguments)
setArguments
in interface NodeWithArguments<MethodCallExpr>
public MethodCallExpr setName(SimpleName name)
setName
in interface NodeWithSimpleName<MethodCallExpr>
public MethodCallExpr setScope(Expression scope)
public Optional<NodeList<Type>> getTypeArguments()
getTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
public MethodCallExpr setTypeArguments(NodeList<Type> typeArguments)
setTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
typeArguments
- the typeArguments, can be nullCopyright © 2007–2016. All rights reserved.