Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
InvocationHandlerAdapter.AssignerConfigurable
Allows for the configuration of an
Assigner
of an InvocationHandlerAdapter . |
static interface |
InvocationHandlerAdapter.WithoutPrivilegeConfiguration
Allows the configuration of privileged lookup for the resolution of
Method
constants that are provided to the invocation handler. |
Modifier and Type | Class and Description |
---|---|
protected static class |
FieldAccessor.ForSetter<T>
A field accessor for a field setter.
|
protected static class |
FieldAccessor.ForSetter.OfConstantValue
An instrumentation that sets a constant value to a field.
|
protected static class |
FieldAccessor.ForSetter.OfDefaultValue
A setter instrumentation that sets a
null or a primitive type's default value. |
protected static class |
FieldAccessor.ForSetter.OfFieldValue
A setter that reads a value of another field and sets this value.
|
protected static class |
FieldAccessor.ForSetter.OfParameterValue
A setter instrumentation for a parameter value.
|
protected static class |
FieldAccessor.ForSetter.OfReferenceValue
An instrumentation that sets a field to a reference value that is stored in a static field of the instrumented type.
|
static class |
Implementation.Compound.Composable
A compound implementation that allows to combine several implementations and that is
Implementation.Composable . |
class |
InvocationHandlerAdapter
An adapter for adapting an
InvocationHandler . |
protected static class |
InvocationHandlerAdapter.ForField
An implementation of an
InvocationHandlerAdapter that delegates method
invocations to an adapter that is stored in an instance field. |
protected static class |
InvocationHandlerAdapter.ForInstance
An implementation of an
InvocationHandlerAdapter that delegates method
invocations to an adapter that is stored in a static field. |
class |
InvokeDynamic
An implementation that applies a
dynamic method invocation.
|
protected static class |
InvokeDynamic.AbstractDelegator
An abstract delegator that allows to specify a configuration for any specification of an argument.
|
static class |
InvokeDynamic.WithImplicitArguments
Representation of an
InvokeDynamic implementation where the bootstrapped
method is passed a this reference, if available, and any arguments of the instrumented method. |
static class |
InvokeDynamic.WithImplicitTarget
Representation of an
InvokeDynamic implementation where the bootstrapped
method is passed a this reference, if available, and any arguments of the instrumented method and
where the invocation target is implicit. |
static class |
InvokeDynamic.WithImplicitType
An
InvokeDynamic invocation where the last argument is assigned its implicit type. |
protected static class |
InvokeDynamic.WithImplicitType.OfArgument
An invoke dynamic implementation where the last argument is an implicitly typed method argument.
|
protected static class |
InvokeDynamic.WithImplicitType.OfField
An invoke dynamic implementation where the last argument is an implicitly typed field value.
|
protected static class |
InvokeDynamic.WithImplicitType.OfInstance
A step in the invoke dynamic domain specific language that allows to explicitly specify a field type for a reference value.
|
class |
MethodCall
This
Implementation allows the invocation of a specified method while
providing explicit arguments to this method. |
static class |
MethodCall.FieldSetting
A
MethodCall that sets the call's result as the value of a field. |
static class |
MethodCall.WithoutSpecifiedTarget
Represents a
MethodCall that invokes a method without specifying
an invocation method. |
class |
MethodDelegation
This implementation delegates a method call to another method which can either be
static by providing
a reference to a Class or an instance method when another object is provided. |
class |
StubMethod
This implementation creates a method stub which does nothing but returning the default value of the return
type of the method.
|
class |
SuperMethodCall
This implementation will create a new method which simply calls its super method.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Composable |
SuperMethodCall.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
StubMethod.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodDelegation.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodCall.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodCall.FieldSetting.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvokeDynamic.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvocationHandlerAdapter.ForInstance.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvocationHandlerAdapter.ForField.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
Implementation.Composable.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
Implementation.Compound.Composable.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfParameterValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfDefaultValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfConstantValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfReferenceValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfFieldValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
static Implementation.Composable |
MethodCall.call(Callable<?> callable)
Implements a method by invoking the provided
Callable . |
static Implementation.Composable |
MethodCall.run(Runnable runnable)
Implements a method by invoking the provided
Runnable . |
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsArgumentAt(int index)
Defines a setter of the specified parameter for the field being described.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsArgumentAt(int index)
Defines a setter of the specified parameter for the field being described.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsDefaultValue()
Defines a setter of the described field's default value, i.e.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsDefaultValue()
Defines a setter of the described field's default value, i.e.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsFieldValueOf(Field field)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsFieldValueOf(Field field)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsFieldValueOf(FieldAccessor.FieldNameExtractor fieldNameExtractor)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsFieldValueOf(FieldAccessor.FieldNameExtractor fieldNameExtractor)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsFieldValueOf(FieldDescription fieldDescription)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsFieldValueOf(FieldDescription fieldDescription)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsFieldValueOf(String fieldName)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsFieldValueOf(String fieldName)
Defines a setter of a value that sets another field's value.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsReference(Object value)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsReference(Object value)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsReference(Object value,
String name)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsReference(Object value,
String name)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(JavaConstant constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(JavaConstant constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(Object value)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(Object value)
Defines a setter of a given value for the described field.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(StackManipulation stackManipulation,
Type type)
Defines a setter of a value that is represented by a stack manipulation.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(StackManipulation stackManipulation,
Type type)
Defines a setter of a value that is represented by a stack manipulation.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(StackManipulation stackManipulation,
TypeDescription.Generic typeDescription)
Defines a setter of a value that is represented by a stack manipulation.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(StackManipulation stackManipulation,
TypeDescription.Generic typeDescription)
Defines a setter of a value that is represented by a stack manipulation.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(TypeDescription typeDescription)
Defines a setter of a given class constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(TypeDescription typeDescription)
Defines a setter of a given class constant value for the described field.
|
Implementation.Composable |
MethodDelegation.withAssigner(Assigner assigner)
Applies an assigner to the method delegation that is used for assigning method return and parameter types.
|
Implementation.Composable |
InvocationHandlerAdapter.AssignerConfigurable.withAssigner(Assigner assigner)
Configures an assigner to use with this invocation handler adapter.
|
Implementation.Composable |
InvocationHandlerAdapter.ForInstance.withAssigner(Assigner assigner) |
Implementation.Composable |
InvocationHandlerAdapter.ForField.withAssigner(Assigner assigner) |
Implementation.Composable |
MethodCall.withAssigner(Assigner assigner,
Assigner.Typing typing)
Defines an assigner to be used for assigning values to the parameters of the invoked method.
|
Implementation.Composable |
MethodCall.FieldSetting.withAssigner(Assigner assigner,
Assigner.Typing typing)
Defines an assigner to be used for assigning values to the parameters of the invoked method.
|
Implementation.Composable |
InvokeDynamic.withAssigner(Assigner assigner,
Assigner.Typing typing)
Instructs this implementation to use the provided assigner and decides if the assigner should apply
dynamic typing.
|
Implementation.Composable |
InvokeDynamic.AbstractDelegator.withAssigner(Assigner assigner,
Assigner.Typing typing)
Instructs this implementation to use the provided assigner and decides if the assigner should apply
dynamic typing.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Composable |
SuperMethodCall.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
StubMethod.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodDelegation.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodCall.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
MethodCall.FieldSetting.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvokeDynamic.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvocationHandlerAdapter.ForInstance.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
InvocationHandlerAdapter.ForField.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
Implementation.Composable.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
Implementation.Compound.Composable.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfParameterValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfDefaultValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfConstantValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfReferenceValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation.Composable |
FieldAccessor.ForSetter.OfFieldValue.andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Constructor and Description |
---|
Composable(Implementation implementation,
Implementation.Composable composable)
Creates a new compound composable.
|
Composable(List<? extends Implementation> implementations,
Implementation.Composable composable)
Creates a new compound composable.
|
Copyright © 2014–2023. All rights reserved.