Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForBoxedArguments.Factory
A factory for an offset mapping for boxed method arguments.
|
protected static class |
Advice.Dispatcher.OffsetMapping.ForBoxedReturnValue.Factory
A factory for an offset mapping the method's (boxed) return value.
|
protected static class |
Advice.Dispatcher.OffsetMapping.ForEnterValue.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForEnterValue offset mapping. |
protected static class |
Advice.Dispatcher.OffsetMapping.ForField.Factory
A factory for a
Advice.Dispatcher.OffsetMapping.Target.ForField offset mapping. |
protected static class |
Advice.Dispatcher.OffsetMapping.ForOrigin.Factory
A factory for a method origin.
|
protected static class |
Advice.Dispatcher.OffsetMapping.ForParameter.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.Target.ForParameter offset mapping. |
protected static class |
Advice.Dispatcher.OffsetMapping.ForReturnValue.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForReturnValue offset mapping. |
static class |
Advice.Dispatcher.OffsetMapping.ForStubValue
An offset mapping for a parameter where assignments are fully ignored and that is assigned a boxed version of the instrumented
method's return valueor
null if the return type is not primitive or void . |
protected static class |
Advice.Dispatcher.OffsetMapping.ForThisReference.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForThisReference offset mapping. |
protected static class |
Advice.Dispatcher.OffsetMapping.ForThrowable.Factory
A factory for accessing an exception that was thrown by the instrumented method.
|
static class |
Advice.Dispatcher.OffsetMapping.ForUnusedValue
An offset mapping for a parameter where assignments are fully ignored and that always return the parameter type's default value.
|
protected static class |
Advice.Dispatcher.OffsetMapping.ForUserValue.Factory<S extends Annotation>
A factory for mapping a user-defined dynamic value.
|
static class |
Advice.Dispatcher.OffsetMapping.Illegal
Represents a factory that throws an exception for a given set of illegal parameter annotations.
|
Modifier and Type | Method and Description |
---|---|
protected static Advice.Dispatcher.OffsetMapping.Factory |
Advice.Dispatcher.OffsetMapping.ForUserValue.Factory.of(Class<? extends Annotation> type,
Advice.DynamicValue<?> dynamicValue)
Creates a new factory for mapping a user value.
|
protected static Advice.Dispatcher.OffsetMapping.Factory |
Advice.Dispatcher.OffsetMapping.ForThrowable.Factory.of(MethodDescription.InDefinedShape adviceMethod,
boolean readOnly)
Resolves an appropriate offset mapping factory for the
Advice.Thrown parameter annotation. |
Constructor and Description |
---|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader,
TypeDescription enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
TypeDescription enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<Advice.Dispatcher.OffsetMapping.Factory> factories,
ClassReader classReader,
TypeDescription throwableType)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<Advice.Dispatcher.OffsetMapping.Factory> factories,
TypeDescription throwableType)
Creates a new resolved version of a dispatcher.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader,
TypeDescription enterType,
TypeDescription triggeringThrowable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
TypeDescription enterType,
TypeDescription triggeringThrowable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader,
TypeDescription enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
TypeDescription enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
Copyright © 2014–2016. All rights reserved.