Module jdk.compiler

Interface LambdaExpressionTree

  • All Superinterfaces:
    ExpressionTree, Tree

    public interface LambdaExpressionTree
    extends ExpressionTree
    A tree node for a lambda expression. For example:
    
       ()->{}
       (List<String> ls)->ls.size()
       (x,y)-> { return x + y; }
     
    • Method Detail

      • getParameters

        List<? extends VariableTree> getParameters()
        Returns the parameters of this lambda expression.
        Returns:
        the parameters
      • getBody

        Tree getBody()
        Returns the body of the lambda expression.
        Returns:
        the body