public class MethodReferenceExpr extends Expression implements NodeWithTypeArguments<MethodReferenceExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration| Constructor and Description |
|---|
MethodReferenceExpr() |
MethodReferenceExpr(Range range,
Expression scope,
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() |
NodeList<Type<?>> |
getTypeArguments() |
MethodReferenceExpr |
setIdentifier(String identifier) |
MethodReferenceExpr |
setScope(Expression scope) |
MethodReferenceExpr |
setTypeArguments(NodeList<Type<?>> types)
Allows you to set the generic arguments
|
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toString, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitisUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArgumentsgetAncestorOfType, setAsParentNodeOf, setAsParentNodeOfpublic MethodReferenceExpr()
public MethodReferenceExpr(Range range, Expression scope, NodeList<Type<?>> typeArguments, String identifier)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitableaccept in interface VisitableR - 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)
Visitablepublic Expression getScope()
public MethodReferenceExpr setScope(Expression scope)
public NodeList<Type<?>> getTypeArguments()
getTypeArguments in interface NodeWithTypeArguments<MethodReferenceExpr>public MethodReferenceExpr setTypeArguments(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.