public enum LambdaInstrumentation extends Enum<LambdaInstrumentation>
| Enum Constant and Description |
|---|
ALL
Instrument all lambda functions
|
ALL_BUT_REFERENCE
Instrument all (expressions and lambda blocks) lambda functions except method references e.g "(a,b) -> a + b" and
(a,b) -> {return a + b;} will be instrumented, but Integer::add won't
|
BLOCK
Instrument only lambda functions declared in code blocks, e.g.
|
EXPRESSION
Instrument only lambda functions declared as expressions, e.g.
|
NONE
Do not instrument lambda functions
|
| Modifier and Type | Method and Description |
|---|---|
static LambdaInstrumentation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LambdaInstrumentation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LambdaInstrumentation NONE
public static final LambdaInstrumentation EXPRESSION
public static final LambdaInstrumentation BLOCK
public static final LambdaInstrumentation ALL_BUT_REFERENCE
public static final LambdaInstrumentation ALL
public static LambdaInstrumentation[] values()
for (LambdaInstrumentation c : LambdaInstrumentation.values()) System.out.println(c);
public static LambdaInstrumentation 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 nullCopyright © 2024 OpenClover.org. All rights reserved.