@Exported public static enum LambdaExpressionTree.BodyKind extends Enum<LambdaExpressionTree.BodyKind>
Enum Constant and Description |
---|
EXPRESSION
enum constant for expression lambdas
|
STATEMENT
enum constant for statement lambdas
|
Modifier and Type | Method and Description |
---|---|
static LambdaExpressionTree.BodyKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LambdaExpressionTree.BodyKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LambdaExpressionTree.BodyKind EXPRESSION
public static final LambdaExpressionTree.BodyKind STATEMENT
public static LambdaExpressionTree.BodyKind[] values()
for (LambdaExpressionTree.BodyKind c : LambdaExpressionTree.BodyKind.values()) System.out.println(c);
public static LambdaExpressionTree.BodyKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved.