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.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY
Constructor and Description |
---|
MethodCallExpr() |
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
SimpleName name) |
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
String name) |
MethodCallExpr(Expression scope,
String name,
NodeList<Expression> arguments) |
MethodCallExpr(String name,
Expression... arguments) |
MethodCallExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
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 |
asMethodCallExpr() |
MethodCallExpr |
clone() |
NodeList<Expression> |
getArguments() |
MethodCallExprMetaModel |
getMetaModel() |
SimpleName |
getName() |
Optional<Expression> |
getScope() |
Optional<NodeList<Type>> |
getTypeArguments() |
void |
ifMethodCallExpr(Consumer<MethodCallExpr> action) |
boolean |
isMethodCallExpr() |
boolean |
remove(Node node) |
MethodCallExpr |
removeScope() |
boolean |
replace(Node node,
Node replacementNode) |
MethodCallExpr |
setArguments(NodeList<Expression> arguments) |
MethodCallExpr |
setName(SimpleName name) |
MethodCallExpr |
setScope(Expression scope) |
MethodCallExpr |
setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
asAnnotationExpr, asArrayAccessExpr, asArrayCreationExpr, asArrayInitializerExpr, asAssignExpr, asBinaryExpr, asBooleanLiteralExpr, asCastExpr, asCharLiteralExpr, asClassExpr, asConditionalExpr, asDoubleLiteralExpr, asEnclosedExpr, asFieldAccessExpr, asInstanceOfExpr, asIntegerLiteralExpr, asLambdaExpr, asLiteralExpr, asLiteralStringValueExpr, asLongLiteralExpr, asMarkerAnnotationExpr, asMethodReferenceExpr, asNameExpr, asNormalAnnotationExpr, asNullLiteralExpr, asObjectCreationExpr, asSingleMemberAnnotationExpr, asStringLiteralExpr, asSuperExpr, asThisExpr, asTypeExpr, asUnaryExpr, asVariableDeclarationExpr, calculateResolvedType, ifAnnotationExpr, ifArrayAccessExpr, ifArrayCreationExpr, ifArrayInitializerExpr, ifAssignExpr, ifBinaryExpr, ifBooleanLiteralExpr, ifCastExpr, ifCharLiteralExpr, ifClassExpr, ifConditionalExpr, ifDoubleLiteralExpr, ifEnclosedExpr, ifFieldAccessExpr, ifInstanceOfExpr, ifIntegerLiteralExpr, ifLambdaExpr, ifLiteralExpr, ifLiteralStringValueExpr, ifLongLiteralExpr, ifMarkerAnnotationExpr, ifMethodReferenceExpr, ifNameExpr, ifNormalAnnotationExpr, ifNullLiteralExpr, ifObjectCreationExpr, ifSingleMemberAnnotationExpr, ifStringLiteralExpr, ifSuperExpr, ifThisExpr, ifTypeExpr, ifUnaryExpr, ifVariableDeclarationExpr, isAnnotationExpr, isArrayAccessExpr, isArrayCreationExpr, isArrayInitializerExpr, isAssignExpr, isBinaryExpr, isBooleanLiteralExpr, isCastExpr, isCharLiteralExpr, isClassExpr, isConditionalExpr, isDoubleLiteralExpr, isEnclosedExpr, isFieldAccessExpr, isInstanceOfExpr, isIntegerLiteralExpr, isLambdaExpr, isLiteralExpr, isLiteralStringValueExpr, isLongLiteralExpr, isMarkerAnnotationExpr, isMethodReferenceExpr, isNameExpr, isNormalAnnotationExpr, isNullLiteralExpr, isObjectCreationExpr, isSingleMemberAnnotationExpr, isStringLiteralExpr, isSuperExpr, isThisExpr, isTypeExpr, isUnaryExpr, isVariableDeclarationExpr
addOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findParent, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walk
finalize, getClass, notify, notifyAll, wait, wait, wait
isUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArguments
addArgument, addArgument, getArgument, setArgument
getNameAsString, setName
traverseScope
getAncestorOfType
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public MethodCallExpr()
public MethodCallExpr(String name, Expression... arguments)
public MethodCallExpr(Expression scope, String name)
public MethodCallExpr(Expression scope, SimpleName name)
public MethodCallExpr(Expression scope, String name, NodeList<Expression> arguments)
public MethodCallExpr(Expression scope, SimpleName name, NodeList<Expression> arguments)
public MethodCallExpr(Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public MethodCallExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments)
@Generated(value="com.github.javaparser.generator.core.node.AcceptGenerator") 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)@Generated(value="com.github.javaparser.generator.core.node.AcceptGenerator") public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<Expression> getArguments()
getArguments
in interface NodeWithArguments<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public SimpleName getName()
getName
in interface NodeWithSimpleName<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public Optional<Expression> getScope()
getScope
in interface NodeWithOptionalScope<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public MethodCallExpr setArguments(NodeList<Expression> arguments)
setArguments
in interface NodeWithArguments<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public MethodCallExpr setName(SimpleName name)
setName
in interface NodeWithSimpleName<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public MethodCallExpr setScope(Expression scope)
setScope
in interface NodeWithOptionalScope<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public Optional<NodeList<Type>> getTypeArguments()
getTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public MethodCallExpr setTypeArguments(NodeList<Type> typeArguments)
setTypeArguments
in interface NodeWithTypeArguments<MethodCallExpr>
typeArguments
- the typeArguments, can be null@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
remove
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public MethodCallExpr removeScope()
removeScope
in interface NodeWithOptionalScope<MethodCallExpr>
@Generated(value="com.github.javaparser.generator.core.node.CloneGenerator") public MethodCallExpr clone()
clone
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.GetMetaModelGenerator") public MethodCallExprMetaModel getMetaModel()
getMetaModel
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
replace
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public boolean isMethodCallExpr()
isMethodCallExpr
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public MethodCallExpr asMethodCallExpr()
asMethodCallExpr
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public void ifMethodCallExpr(Consumer<MethodCallExpr> action)
ifMethodCallExpr
in class Expression
Copyright © 2007–2017. All rights reserved.