System.out::println; the scope is System.out and the identifier is "println"
(test ? stream.map(String::trim) : stream)::toArray;
Bar<String>::<Integer>new the String type argument is on the scope,
and the Integer type argument is on this MethodReferenceExpr.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Expression | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | MethodReferenceExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, String identifier)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public MethodReferenceExpr | |
| public MethodReferenceExpr | clone()
Creates and returns a copy of this object.
|
| public String | |
| public MethodReferenceExprMetaModel | |
| public Expression | |
| public Optional | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public MethodReferenceExpr | setIdentifier(final String identifier)
Implements com. |
| public MethodReferenceExpr | |
| public MethodReferenceExpr | Returns: this, the MethodReferenceExprthe typeArguments, can be null typeArguments)Implements com. |
| public Optional |
| identifier | back to summary |
|---|---|
| private String identifier
| |
| scope | back to summary |
|---|---|
| private Expression scope | |
| typeArguments | back to summary |
|---|---|
| private NodeList<Type> typeArguments
| |
| MethodReferenceExpr | back to summary |
|---|---|
| public MethodReferenceExpr() | |
| MethodReferenceExpr | back to summary |
|---|---|
public MethodReferenceExpr(Expression scope, NodeList<Type> typeArguments, String identifier)
| |
| MethodReferenceExpr | back to summary |
|---|---|
| public MethodReferenceExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, String identifier) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asMethodReferenceExpr | back to summary |
|---|---|
| public MethodReferenceExpr asMethodReferenceExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public MethodReferenceExpr clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public MethodReferenceExprMetaModel getMetaModel() Overrides com.
| |
| getScope | back to summary |
|---|---|
public Expression getScope()
| |
| getTypeArguments | back to summary |
|---|---|
| public Optional Implements com.
| |
| ifMethodReferenceExpr | back to summary |
|---|---|
| public void ifMethodReferenceExpr(Consumer<MethodReferenceExpr> action) Overrides com.
| |
| isMethodReferenceExpr | back to summary |
|---|---|
| public boolean isMethodReferenceExpr() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setIdentifier | back to summary |
|---|---|
| public MethodReferenceExpr setIdentifier(final String identifier) Implements com.
| |
| setScope | back to summary |
|---|---|
public MethodReferenceExpr setScope(final Expression scope)
| |
| setTypeArguments | back to summary |
|---|---|
| public MethodReferenceExpr setTypeArguments(final NodeList<Type> typeArguments) Implements com. Sets the typeArguments
| |
| toMethodReferenceExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |