Package | Description |
---|---|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldLocator.ForClassHierarchy.Factory
A factory for creating a
FieldLocator.ForClassHierarchy . |
static class |
FieldLocator.ForExactType.Factory
A factory for creating a
FieldLocator.ForExactType . |
static class |
FieldLocator.ForTopLevelType.Factory
A factory for locating a field in a top-level type.
|
static class |
FieldLocator.NoOp
A field locator that never discovers a field.
|
Modifier and Type | Field and Description |
---|---|
private FieldLocator.Factory |
FieldAccessor.FieldLocation.Relative.fieldLocatorFactory
The field locator factory to use.
|
protected FieldLocator.Factory |
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.fieldLocatorFactory
The field locator factory to use.
|
private FieldLocator.Factory |
InvokeDynamic.WithImplicitType.OfField.fieldLocatorFactory
The field locator factory to use.
|
private FieldLocator.Factory |
MethodDelegation.ImplementationDelegate.ForField.WithLookup.fieldLocatorFactory
The field locator factory to use for locating the field to delegate to.
|
private FieldLocator.Factory |
InvocationHandlerAdapter.ForField.fieldLocatorFactory
The field locator factory to use.
|
private FieldLocator.Factory |
MethodCall.ArgumentLoader.ForField.Factory.fieldLocatorFactory
The field locator to use.
|
private FieldLocator.Factory |
MethodCall.TargetHandler.ForField.Location.ForImplicitField.fieldLocatorFactory
The field locator factory to use.
|
Modifier and Type | Method and Description |
---|---|
FieldAccessor.AssignerConfigurable |
FieldAccessor.OwnerTypeLocatable.in(FieldLocator.Factory fieldLocatorFactory)
Determines that a field should only be considered when it was identified by a field locator that is
produced by the given factory.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.ForImplicitProperty.in(FieldLocator.Factory fieldLocatorFactory)
Determines that a field should only be considered when it was identified by a field locator that is
produced by the given factory.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.onField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Invokes a method on the object stored in the specified field.
|
static MethodDelegation |
MethodDelegation.toField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Delegates any intercepted method to invoke a non-
static method on the instance of the supplied field. |
MethodDelegation |
MethodDelegation.WithCustomProperties.toField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Delegates any intercepted method to invoke a non-
static method on the instance of the supplied field. |
static InvocationHandlerAdapter |
InvocationHandlerAdapter.toField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Creates an implementation for any
InvocationHandler that delegates
all method interceptions to a field with the given name. |
static MethodDelegation |
MethodDelegation.toField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method on the instance of the supplied field. |
MethodDelegation |
MethodDelegation.WithCustomProperties.toField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method on the instance of the supplied field. |
FieldAccessor.FieldLocation |
FieldAccessor.FieldLocation.with(FieldLocator.Factory fieldLocatorFactory)
Specifies a field locator factory to use.
|
FieldAccessor.FieldLocation |
FieldAccessor.FieldLocation.Absolute.with(FieldLocator.Factory fieldLocatorFactory)
Specifies a field locator factory to use.
|
FieldAccessor.FieldLocation |
FieldAccessor.FieldLocation.Relative.with(FieldLocator.Factory fieldLocatorFactory)
Specifies a field locator factory to use.
|
InvokeDynamic |
InvokeDynamic.withField(FieldLocator.Factory fieldLocatorFactory,
java.lang.String... name)
Passes the values of the specified fields to the bootstrap method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withField(FieldLocator.Factory fieldLocatorFactory,
java.lang.String... name)
Passes the values of the specified fields to the bootstrap method.
|
MethodCall |
MethodCall.withField(FieldLocator.Factory fieldLocatorFactory,
java.lang.String... name)
Defines a method call which fetches a value from a list of existing fields.
|
InvokeDynamic.WithImplicitType |
InvokeDynamic.withField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Passes the values of the specified fields to the bootstrap method.
|
InvokeDynamic.WithImplicitType |
InvokeDynamic.AbstractDelegator.withField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Passes the values of the specified fields to the bootstrap method.
|
Constructor and Description |
---|
Factory(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument loader for an existing field.
|
ForField(java.lang.String fieldName,
boolean cached,
boolean privileged,
Assigner assigner,
FieldLocator.Factory fieldLocatorFactory)
Creates a new invocation handler adapter that loads its value from a field.
|
ForField(java.lang.String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument provider that loads the value of an existing field.
|
ForImplicitField(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Creates an implicit field location.
|
OfField(MethodDescription.InDefinedShape bootstrapMethod,
java.util.List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
java.lang.String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.
|
Relative(FieldAccessor.FieldNameExtractor fieldNameExtractor,
FieldLocator.Factory fieldLocatorFactory)
Creates a new relative field location.
|
WithExplicitType(java.lang.String fieldName,
FieldLocator.Factory fieldLocatorFactory,
TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.
|
WithLookup(java.lang.String fieldName,
MethodGraph.Compiler methodGraphCompiler,
java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
FieldLocator.Factory fieldLocatorFactory)
Creates a new implementation delegate for a field that is declared by the instrumented type or any super type.
|