ExpressionTree
, Tree
public interface LambdaExpressionTree extends ExpressionTree
()->{}
(List<String> ls)->ls.size()
(x,y)-> { return x + y; }
Modifier and Type | Interface | 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 | 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()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1