public class MethodReferenceExpr extends Expression implements NodeWithTypeArguments<MethodReferenceExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION| Constructor and Description |
|---|
MethodReferenceExpr() |
MethodReferenceExpr(Range range,
Expression scope,
Optional<NodeList<Type<?>>> typeArguments,
String identifier) |
| 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.
|
String |
getIdentifier() |
Expression |
getScope() |
Optional<NodeList<Type<?>>> |
getTypeArguments() |
MethodReferenceExpr |
setIdentifier(String identifier) |
MethodReferenceExpr |
setScope(Expression scope) |
MethodReferenceExpr |
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, setTypeArgumentspublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Expression getScope()
public MethodReferenceExpr setScope(Expression scope)
public Optional<NodeList<Type<?>>> getTypeArguments()
getTypeArguments in interface NodeWithTypeArguments<MethodReferenceExpr>public MethodReferenceExpr setTypeArguments(Optional<NodeList<Type<?>>> types)
NodeWithTypeArgumentssetTypeArguments in interface NodeWithTypeArguments<MethodReferenceExpr>types - The list of types of the genericspublic String getIdentifier()
public MethodReferenceExpr setIdentifier(String identifier)
Copyright © 2007–2016. All rights reserved.