public static enum Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod extends Enum<Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod> implements Advice.Dispatcher.OffsetMapping
Advice.Dispatcher.OffsetMapping.Context, Advice.Dispatcher.OffsetMapping.Factory, Advice.Dispatcher.OffsetMapping.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.ForBoxedReturnValue, Advice.Dispatcher.OffsetMapping.ForEnterValue, Advice.Dispatcher.OffsetMapping.ForField, Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod, Advice.Dispatcher.OffsetMapping.ForInstrumentedType, Advice.Dispatcher.OffsetMapping.ForOrigin, Advice.Dispatcher.OffsetMapping.ForParameter, Advice.Dispatcher.OffsetMapping.ForReturnValue, Advice.Dispatcher.OffsetMapping.ForStubValue, Advice.Dispatcher.OffsetMapping.ForThisReference, Advice.Dispatcher.OffsetMapping.ForThrowable, Advice.Dispatcher.OffsetMapping.ForUnusedValue, Advice.Dispatcher.OffsetMapping.ForUserValue<T extends Annotation>, Advice.Dispatcher.OffsetMapping.Illegal, Advice.Dispatcher.OffsetMapping.Target
Enum Constant and Description |
---|
CONSTRUCTOR
A constant that must be a
Constructor instance. |
EXECUTABLE
A constant that must be a
java.lang.reflect.Executable instance. |
METHOD
A constant that must be a
Method instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
isRepresentable(MethodDescription instrumentedMethod)
Checks if the supplied method is representable for the assigned offset mapping.
|
Advice.Dispatcher.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
String |
toString() |
static Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod METHOD
Method
instance.public static final Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod CONSTRUCTOR
Constructor
instance.public static final Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod EXECUTABLE
java.lang.reflect.Executable
instance.public static Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod[] values()
for (Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod c : Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod.values()) System.out.println(c);
public static Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod 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 nullpublic Advice.Dispatcher.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.OffsetMapping.Context context)
Advice.Dispatcher.OffsetMapping
resolve
in interface Advice.Dispatcher.OffsetMapping
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method for which the mapping is to be resolved.context
- The context in which the offset mapping is applied.protected abstract boolean isRepresentable(MethodDescription instrumentedMethod)
instrumentedMethod
- The instrumented method to represent.true
if this method is representable.public String toString()
toString
in class Enum<Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod>
Copyright © 2014–2016. All rights reserved.