public final class MethodCallExpr extends Expression implements NodeWithTypeArguments<MethodCallExpr>, NodeWithArguments<MethodCallExpr>, NodeWithSimpleName<MethodCallExpr>, NodeWithOptionalScope<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,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
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.
|
MethodCallExpr |
clone() |
NodeList<Expression> |
getArguments() |
MethodCallExprMetaModel |
getMetaModel() |
SimpleName |
getName() |
List<NodeList<?>> |
getNodeLists()
The list of NodeLists owned by this node.
|
Optional<Expression> |
getScope() |
Optional<NodeList<Type>> |
getTypeArguments() |
boolean |
remove(Node node) |
MethodCallExpr |
removeScope()
Removes the scope by calling
NodeWithOptionalScope.setScope(com.github.javaparser.ast.expr.Expression) with null. |
MethodCallExpr |
setArguments(NodeList<Expression> arguments) |
MethodCallExpr |
setName(SimpleName name) |
MethodCallExpr |
setScope(Expression scope) |
MethodCallExpr |
setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
addOrphanComment, equals, getAllContainedComments, getChildNodes, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeOrphanComment, 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
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public MethodCallExpr()
public MethodCallExpr(Expression scope, String name)
public MethodCallExpr(Expression scope, SimpleName name, NodeList<Expression> arguments)
public MethodCallExpr(Expression scope, NodeList<Type> typeArguments, 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 Optional<Expression> getScope()
getScope
in interface NodeWithOptionalScope<MethodCallExpr>
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)
setScope
in interface NodeWithOptionalScope<MethodCallExpr>
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 nullpublic List<NodeList<?>> getNodeLists()
Node
getNodeLists
in class Node
public boolean remove(Node node)
remove
in class Expression
public MethodCallExpr removeScope()
NodeWithOptionalScope
NodeWithOptionalScope.setScope(com.github.javaparser.ast.expr.Expression)
with null.removeScope
in interface NodeWithOptionalScope<MethodCallExpr>
public MethodCallExpr clone()
clone
in class Expression
public MethodCallExprMetaModel getMetaModel()
getMetaModel
in class Expression
Copyright © 2007–2017. All rights reserved.