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:
expression lambdas, whose body is an expression, and
statement lambdas, whose body is a block
|
Modifier and Type | Method and Description |
---|---|
Tree |
getBody()
Returns the body of the lambda expression.
|
LambdaExpressionTree.BodyKind |
getBodyKind()
Returns the kind of the body of the lambda expression.
|
List<? extends VariableTree> |
getParameters()
Returns the parameters of this lambda expression.
|
List<? extends VariableTree> getParameters()
Tree getBody()
LambdaExpressionTree.BodyKind getBodyKind()
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-02-27-124400.buildd.src