Class MethodRefToLambda


  • public class MethodRefToLambda
    extends Object
    • Method Detail

      • convert

        public static com.sun.tools.javac.tree.JCTree.JCLambda convert​(TypeProcessor tp,
                                                                       com.sun.tools.javac.tree.JCTree.JCMemberReference methodRef)
        Converts a JCMemberReference (method reference) to a JCLambda (lambda expression).
        Parameters:
        methodRef - The JCMemberReference to convert.
        Returns:
        A JCLambda representing the lambda equivalent of the method reference