Package | Description |
---|---|
net.bytebuddy.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
net.bytebuddy.instrumentation.method.bytecode.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
net.bytebuddy.instrumentation.method.bytecode.stack.assign.primitive |
Assigner implementations of this package
are capable of handling primitive types or the void type. |
net.bytebuddy.instrumentation.method.bytecode.stack.assign.reference |
Assigner implementations of this package
are capable of assigning non-primitive types to each other. |
net.bytebuddy.instrumentation.type.auxiliary |
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType . |
Modifier and Type | Field and Description |
---|---|
protected Assigner |
InvocationHandlerAdapter.assigner
The assigner that is used for assigning the return invocation handler's return value to the
intercepted method's return value.
|
protected Assigner |
FixedValue.assigner
The assigner that is used for assigning the fixed value to a method's return type.
|
protected Assigner |
FieldAccessor.assigner
The assigner to use.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation |
MethodDelegation.withAssigner(Assigner assigner)
Applies an assigner to the method delegation that is used for assigning method return and parameter types.
|
Instrumentation |
InvocationHandlerAdapter.AssignerConfigurable.withAssigner(Assigner assigner)
Configures an assigner to use with this invocation handler adapter.
|
Instrumentation |
InvocationHandlerAdapter.ForStaticDelegation.withAssigner(Assigner assigner) |
Instrumentation |
InvocationHandlerAdapter.ForInstanceDelegation.withAssigner(Assigner assigner) |
Instrumentation |
FixedValue.AssignerConfigurable.withAssigner(Assigner assigner,
boolean considerRuntimeType)
Defines an explicit assigner to this fixed value instrumentation.
|
Instrumentation |
FixedValue.ForPoolValue.withAssigner(Assigner assigner,
boolean considerRuntimeType) |
Instrumentation |
FixedValue.ForStaticField.withAssigner(Assigner assigner,
boolean considerRuntimeType) |
Instrumentation |
FieldAccessor.AssignerConfigurable.withAssigner(Assigner assigner,
boolean considerRuntimeType)
Returns a field accessor that is identical to this field accessor but uses the given assigner
and runtime type use configuration.
|
Instrumentation |
FieldAccessor.ForUnnamedField.withAssigner(Assigner assigner,
boolean considerRuntimeType) |
Instrumentation |
FieldAccessor.ForNamedField.withAssigner(Assigner assigner,
boolean considerRuntimeType) |
Constructor and Description |
---|
FieldAccessor(Assigner assigner,
boolean considerRuntimeType)
Creates a new field accessor.
|
FixedValue(Assigner assigner,
boolean considerRuntimeType)
Creates a new fixed value instrumentation.
|
ForInstanceDelegation(String fieldName,
boolean cacheMethods,
Assigner assigner)
Creates a new invocation handler adapter for delegating invocations to an invocation handler that is stored
in an instance field.
|
ForNamedField(Assigner assigner,
boolean considerRuntimeType,
String fieldName)
Creates a field accessor instrumentation for a field of a given name.
|
ForStaticDelegation(String fieldName,
boolean cacheMethods,
Assigner assigner,
InvocationHandler invocationHandler)
Creates a new invocation handler adapter for delegating invocations to an invocation handler that is stored
in a static field.
|
ForStaticField(Object fixedValue,
Assigner assigner,
boolean considerRuntimeType)
Creates a new static field fixed value instrumentation with a random name for the field containing the fixed
value.
|
ForStaticField(String fieldName,
Object fixedValue,
Assigner assigner,
boolean considerRuntimeType)
Creates a new static field fixed value instrumentation.
|
ForUnnamedField(Assigner assigner,
boolean considerRuntimeType,
FieldAccessor.FieldNameExtractor fieldNameExtractor)
Creates a new field accessor instrumentation.
|
ForUnnamedField(Assigner assigner,
boolean considerRuntimeType,
FieldAccessor.FieldNameExtractor fieldNameExtractor,
FieldAccessor.FieldLocator.Factory fieldLocatorFactory)
Creates a new field accessor instrumentation.
|
InvocationHandlerAdapter(String fieldName,
boolean cacheMethods,
Assigner assigner)
Creates a new invocation handler for a given field.
|
MethodDelegation(MethodDelegation.InstrumentationDelegate instrumentationDelegate,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider,
TargetMethodAnnotationDrivenBinder.TerminationHandler terminationHandler,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
Assigner assigner,
MethodList targetMethodCandidates)
Creates a new method delegation.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Instrumentation |
Field.Binder.AccessType.access(FieldDescription fieldDescription,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Returns an instrumentation that implements the sort of accessor implementation that is represented by
this instance.
|
MethodDelegationBinder.ParameterBinding<?> |
AllArguments.Binder.bind(AnnotationDescription.Loadable<AllArguments> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Argument.Binder.bind(AnnotationDescription.Loadable<Argument> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Default.Binder.bind(AnnotationDescription.Loadable<Default> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
DefaultCall.Binder.bind(AnnotationDescription.Loadable<DefaultCall> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Empty.Binder.bind(AnnotationDescription.Loadable<Empty> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Field.Binder.bind(AnnotationDescription.Loadable<Field> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Morph.Binder.bind(AnnotationDescription.Loadable<Morph> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Origin.Binder.bind(AnnotationDescription.Loadable<Origin> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Pipe.Binder.bind(AnnotationDescription.Loadable<Pipe> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
Super.Binder.bind(AnnotationDescription.Loadable<Super> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
SuperCall.Binder.bind(AnnotationDescription.Loadable<SuperCall> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.bind(AnnotationDescription.Loadable<T> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
This.Binder.bind(AnnotationDescription.Loadable<This> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner) |
protected abstract MethodDelegationBinder.ParameterBinding<?> |
Argument.BindingMechanic.makeBinding(TypeDescription sourceType,
TypeDescription targetType,
int sourceParameterIndex,
Assigner assigner,
boolean considerRuntimeType,
int parameterOffset)
Creates a binding that corresponds to this binding mechanic.
|
StackManipulation |
TargetMethodAnnotationDrivenBinder.TerminationHandler.resolve(Assigner assigner,
MethodDescription source,
MethodDescription target)
Creates a stack manipulation that is to be applied after the method return.
|
StackManipulation |
TargetMethodAnnotationDrivenBinder.TerminationHandler.Returning.resolve(Assigner assigner,
MethodDescription source,
MethodDescription target) |
StackManipulation |
TargetMethodAnnotationDrivenBinder.TerminationHandler.Dropping.resolve(Assigner assigner,
MethodDescription source,
MethodDescription target) |
Constructor and Description |
---|
AccessorProxy(FieldDescription accessedField,
Assigner assigner,
TypeDescription instrumentedType,
Field.Binder.AccessType accessType,
boolean serializableProxy) |
Getter(FieldDescription accessedField,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new getter instrumentation.
|
MethodCall(MethodDescription accessorMethod,
Assigner assigner)
Creates a new method call instrumentation for a proxy method.
|
Redirection(TypeDescription forwardingType,
MethodDescription sourceMethod,
Assigner assigner,
boolean serializableProxy,
MethodLookupEngine.Factory methodLookupEngineFactory)
Creates a new redirection.
|
RedirectionProxy(TypeDescription morphingType,
TypeDescription instrumentedType,
Instrumentation.SpecialMethodInvocation specialMethodInvocation,
Assigner assigner,
boolean serializableProxy,
MethodLookupEngine.Factory methodLookupEngineFactory)
Creates a new redirection proxy.
|
Setter(FieldDescription accessedField,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new setter instrumentation.
|
TargetMethodAnnotationDrivenBinder(List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider,
TargetMethodAnnotationDrivenBinder.TerminationHandler terminationHandler,
Assigner assigner,
MethodDelegationBinder.MethodInvoker methodInvoker)
Creates a new method delegation binder that binds method based on annotations found on the target method.
|
Modifier and Type | Class and Description |
---|---|
class |
PrimitiveTypeAwareAssigner
This assigner is able to handle non-
void , primitive types. |
class |
VoidAwareAssigner
This assigner is able to handle the
void type. |
Modifier and Type | Method and Description |
---|---|
StackManipulation |
PrimitiveBoxingDelegate.assignBoxedTo(TypeDescription targetType,
Assigner chainedAssigner,
boolean considerRuntimeType)
Creates a stack manipulation that boxes the represented primitive type and applies a chained assignment
to the result of this boxing operation.
|
StackManipulation |
PrimitiveUnboxingDelegate.ExplicitlyTypedUnboxingResponsible.assignUnboxedTo(TypeDescription targetType,
Assigner assigner,
boolean considerRuntimeType) |
StackManipulation |
PrimitiveUnboxingDelegate.UnboxingResponsible.assignUnboxedTo(TypeDescription targetType,
Assigner assigner,
boolean considerRuntimeType)
Attempts to unbox the represented type in order to assign the unboxed value to the given target type
while using the assigner that is provided by the method call.
|
StackManipulation |
PrimitiveUnboxingDelegate.ImplicitlyTypedUnboxingResponsible.assignUnboxedTo(TypeDescription targetType,
Assigner assigner,
boolean considerRuntimeType) |
Constructor and Description |
---|
PrimitiveTypeAwareAssigner(Assigner referenceTypeAwareAssigner)
Creates a new assigner with the given delegate.
|
VoidAwareAssigner(Assigner chained)
Creates a new assigner that is capable of handling void types.
|
Modifier and Type | Class and Description |
---|---|
class |
ReferenceTypeAwareAssigner
A simple assigner that is capable of handling the casting of reference types.
|
Constructor and Description |
---|
MethodCallProxy(Instrumentation.SpecialMethodInvocation specialMethodInvocation,
boolean serializableProxy,
Assigner assigner)
Creates a new method call proxy for a given method.
|
Copyright © 2014. All rights reserved.