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 |
---|---|
static class |
Advice.OffsetMapping.Factory.Illegal<T extends Annotation>
A factory for an annotation whose use is not permitted.
|
static class |
Advice.OffsetMapping.Factory.Simple<T extends Annotation>
A simple factory that binds a constant offset mapping.
|
protected static class |
Advice.OffsetMapping.ForAllArguments.Factory
A factory for an offset mapping that maps all arguments values of the instrumented method.
|
static class |
Advice.OffsetMapping.ForArgument.Resolved.Factory<T extends Annotation>
A factory for a parameter argument of the instrumented method.
|
protected static class |
Advice.OffsetMapping.ForArgument.Unresolved.Factory
A factory for a mapping of a parameter of the instrumented method.
|
protected static class |
Advice.OffsetMapping.ForEnterValue.Factory
A factory for creating a
Advice.OffsetMapping.ForEnterValue offset mapping. |
static class |
Advice.OffsetMapping.ForField.Resolved.Factory<T extends Annotation>
A factory that binds a field.
|
protected static class |
Advice.OffsetMapping.ForField.Unresolved.Factory
A factory for a
Advice.OffsetMapping.ForArgument.Unresolved offset mapping. |
protected static class |
Advice.OffsetMapping.ForOrigin.Factory
A factory for a method origin.
|
protected static class |
Advice.OffsetMapping.ForReturnValue.Factory
A factory for creating a
Advice.OffsetMapping.ForReturnValue offset mapping. |
static class |
Advice.OffsetMapping.ForSerializedValue.Factory<T extends Annotation>
A factory for loading a deserialized value.
|
static class |
Advice.OffsetMapping.ForStackManipulation.Factory<T extends Annotation>
A factory that binds a stack manipulation.
|
static class |
Advice.OffsetMapping.ForStackManipulation.OfAnnotationProperty<T extends Annotation>
A factory for binding an annotation's property.
|
static class |
Advice.OffsetMapping.ForStackManipulation.OfDefaultValue<T extends Annotation>
A factory for binding the annotated parameter's default value.
|
static class |
Advice.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.OffsetMapping.ForThisReference.Factory
A factory for creating a
Advice.OffsetMapping.ForThisReference offset mapping. |
protected static class |
Advice.OffsetMapping.ForThrowable.Factory
A factory for accessing an exception that was thrown by the instrumented method.
|
protected static class |
Advice.OffsetMapping.ForUnusedValue.Factory
A factory for an offset mapping for an unused value.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Annotation> |
Advice.OffsetMapping.ForStackManipulation.Factory.of(Class<S> annotationType,
Object value)
Creates a binding for a fixed
String or primitive value. |
static <S extends Annotation> |
Advice.OffsetMapping.ForSerializedValue.Factory.of(Class<S> annotationType,
Serializable target,
Class<?> targetType)
Creates a factory for an offset mapping that loads the provided value.
|
static <S extends Annotation> |
Advice.OffsetMapping.ForStackManipulation.OfAnnotationProperty.of(Class<S> annotationType,
String property)
Creates a factory for an offset mapping that binds an annotation property.
|
protected static Advice.OffsetMapping.Factory<?> |
Advice.OffsetMapping.ForThrowable.Factory.of(MethodDescription.InDefinedShape adviceMethod)
Resolves an appropriate offset mapping factory for the
Advice.Thrown parameter annotation. |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Advice.OffsetMapping.Factory<? super T> offsetMapping)
Binds an annotation to a dynamically computed value.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Unresolved.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inactive.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader) |
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inlining.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader) |
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Delegating.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader) |
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Unresolved.asMethodExitTo(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
Advice.Dispatcher.Resolved.ForMethodEnter dispatcher)
Resolves this dispatcher as a dispatcher for exiting a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inactive.asMethodExitTo(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
Advice.Dispatcher.Resolved.ForMethodEnter dispatcher) |
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.asMethodExitTo(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
Advice.Dispatcher.Resolved.ForMethodEnter dispatcher) |
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Delegating.asMethodExitTo(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
Advice.Dispatcher.Resolved.ForMethodEnter dispatcher) |
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice |
Advice.to(TypeDescription advice,
ClassFileLocator classFileLocator,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories)
Creates a new advice.
|
protected static Advice |
Advice.to(TypeDescription enterAdvice,
TypeDescription exitAdvice,
ClassFileLocator classFileLocator,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories)
Creates a new advice.
|
Constructor and Description |
---|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<Advice.OffsetMapping.Factory<?>> factories,
ClassReader classReader,
TypeDescription throwableType)
Creates a new resolved version of a dispatcher.
|
WithCustomMapping(Map<Class<? extends Annotation>,Advice.OffsetMapping.Factory<?>> offsetMappings)
Creates a new custom mapping builder step with the given custom mappings.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
Copyright © 2014–2017. All rights reserved.