Class MethodReferenceExpr

All Implemented Interfaces:
NodeWithIdentifier<MethodReferenceExpr>, NodeWithRange<Node>, NodeWithTokenRange<Node>, NodeWithTypeArguments<MethodReferenceExpr>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedMethodDeclaration>, Cloneable

Method reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions. Note that the field "identifier", indicating the word to the right of the ::, is not always a method name, it can be "new".
In System.out::println; the scope is System.out and the identifier is "println"
(test ? stream.map(String::trim) : stream)::toArray;
In Bar<String>::<Integer>new the String type argument is on the scope, and the Integer type argument is on this MethodReferenceExpr.
Author:
Raquel Pau