@Exported public interface LambdaExpressionTree extends ExpressionTree
()->{}
(List<String> ls)->ls.size()
(x,y)-> { return x + y; }
Modifier and Type | Interface and Description |
---|---|
static class |
LambdaExpressionTree.BodyKind
Lambda expressions come in two forms: (i) expression lambdas, whose body
is an expression, and (ii) statement lambdas, whose body is a block
|
Modifier and Type | Method and Description |
---|---|
Tree |
getBody() |
LambdaExpressionTree.BodyKind |
getBodyKind() |
List<? extends VariableTree> |
getParameters() |
List<? extends VariableTree> getParameters()
Tree getBody()
LambdaExpressionTree.BodyKind getBodyKind()
Copyright © 2005, 2014, Oracle and/or its affiliates. All rights reserved.