public enum LocalCapture extends java.lang.Enum<LocalCapture>
Since local capture relies on calculating the local variable table for the
target method it is disabled by default for performance reasons. When
capturing is enabled, local variables are passed to the handler method after
the CallbackInfo argument. Since it is entirely possible for another
transformer to make an incompatible change to the the local variable table at
run time, the purpose of this enum is to specify the behaviour for local
capture and the type of recovery to be performed when an incompatible change
is detected.
| Enum Constant and Description |
|---|
CAPTURE_FAILEXCEPTION
Capture locals.
|
CAPTURE_FAILHARD
Capture locals.
|
CAPTURE_FAILSOFT
Capture locals.
|
NO_CAPTURE
Do not capture locals, this is the default behaviour
|
PRINT
Do not capture locals.
|
| Modifier and Type | Method and Description |
|---|---|
static LocalCapture |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocalCapture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalCapture NO_CAPTURE
public static final LocalCapture PRINT
public static final LocalCapture CAPTURE_FAILSOFT
public static final LocalCapture CAPTURE_FAILHARD
Error.public static final LocalCapture CAPTURE_FAILEXCEPTION
public static LocalCapture[] values()
for (LocalCapture c : LocalCapture.values()) System.out.println(c);
public static LocalCapture valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null