public static enum Advice.ArgumentHandler.Factory extends Enum<Advice.ArgumentHandler.Factory>
| Enum Constant and Description |
|---|
COPYING
A factory for creating an argument handler that copies all arguments before executing the instrumented method.
|
SIMPLE
A factory for creating a simple argument handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Advice.ArgumentHandler.ForInstrumentedMethod |
resolve(MethodDescription instrumentedMethod,
TypeDefinition enterType,
TypeDefinition exitType,
SortedMap<String,TypeDefinition> namedTypes)
Creates an argument handler.
|
static Advice.ArgumentHandler.Factory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.ArgumentHandler.Factory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.ArgumentHandler.Factory SIMPLE
public static final Advice.ArgumentHandler.Factory COPYING
public static Advice.ArgumentHandler.Factory[] values()
for (Advice.ArgumentHandler.Factory c : Advice.ArgumentHandler.Factory.values()) System.out.println(c);
public static Advice.ArgumentHandler.Factory 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 nullprotected abstract Advice.ArgumentHandler.ForInstrumentedMethod resolve(MethodDescription instrumentedMethod, TypeDefinition enterType, TypeDefinition exitType, SortedMap<String,TypeDefinition> namedTypes)
instrumentedMethod - The instrumented method.enterType - The enter type or void if no such type is defined.exitType - The exit type or void if no exit type is defined.namedTypes - A mapping of all available local variables by their name to their type.Copyright © 2014–2025. All rights reserved.