Uses of Interface
net.bytebuddy.dynamic.scaffold.FieldLocator.Factory
Packages that use FieldLocator.Factory
Package
Description
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
The implementation package contains any logic for intercepting method calls.
-
Uses of FieldLocator.Factory in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement FieldLocator.FactoryModifier and TypeClassDescriptionstatic enum
A factory for creating aFieldLocator.ForClassHierarchy
.static class
A factory for creating aFieldLocator.ForExactType
.static enum
A factory for locating a field in a top-level type.static enum
A field locator that never discovers a field. -
Uses of FieldLocator.Factory in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as FieldLocator.FactoryModifier and TypeFieldDescriptionprivate final FieldLocator.Factory
FieldAccessor.FieldLocation.Relative.fieldLocatorFactory
The field locator factory to use.private final FieldLocator.Factory
InvocationHandlerAdapter.ForField.fieldLocatorFactory
The field locator factory to use.protected final FieldLocator.Factory
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.fieldLocatorFactory
The field locator factory to use.private final FieldLocator.Factory
InvokeDynamic.WithImplicitType.OfField.fieldLocatorFactory
The field locator factory to use.private final FieldLocator.Factory
MethodCall.ArgumentLoader.ForField.Factory.fieldLocatorFactory
The field locator to use.private final FieldLocator.Factory
MethodCall.TargetHandler.ForField.Location.ForImplicitField.fieldLocatorFactory
The field locator factory to use.private final FieldLocator.Factory
MethodDelegation.ImplementationDelegate.ForField.WithLookup.fieldLocatorFactory
The field locator factory to use for locating the field to delegate to.Methods in net.bytebuddy.implementation with parameters of type FieldLocator.FactoryModifier and TypeMethodDescriptionFieldAccessor.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.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.MethodCall.WithoutSpecifiedTarget.onField
(String name, FieldLocator.Factory fieldLocatorFactory) Invokes a method on the object stored in the specified field.static InvocationHandlerAdapter
InvocationHandlerAdapter.toField
(String name, FieldLocator.Factory fieldLocatorFactory) Creates an implementation for anyInvocationHandler
that delegates all method interceptions to a field with the given name.static MethodDelegation
MethodDelegation.toField
(String name, FieldLocator.Factory fieldLocatorFactory) Delegates any intercepted method to invoke a non-static
method on the instance of the supplied field.static MethodDelegation
MethodDelegation.toField
(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.WithCustomProperties.toField
(String name, FieldLocator.Factory fieldLocatorFactory) Delegates any intercepted method to invoke a non-static
method on the instance of the supplied field.MethodDelegation.WithCustomProperties.toField
(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.Absolute.with
(FieldLocator.Factory fieldLocatorFactory) Specifies a field locator factory to use.FieldAccessor.FieldLocation.Relative.with
(FieldLocator.Factory fieldLocatorFactory) Specifies a field locator factory to use.FieldAccessor.FieldLocation.with
(FieldLocator.Factory fieldLocatorFactory) Specifies a field locator factory to use.InvokeDynamic.AbstractDelegator.withField
(String name, FieldLocator.Factory fieldLocatorFactory) Passes the values of the specified fields to the bootstrap method.InvokeDynamic.AbstractDelegator.withField
(FieldLocator.Factory fieldLocatorFactory, String... name) Passes the values of the specified fields to the bootstrap method.InvokeDynamic.withField
(String name, FieldLocator.Factory fieldLocatorFactory) Passes the values of the specified fields to the bootstrap method.InvokeDynamic.withField
(FieldLocator.Factory fieldLocatorFactory, String... name) Passes the values of the specified fields to the bootstrap method.MethodCall.withField
(FieldLocator.Factory fieldLocatorFactory, String... name) Defines a method call which fetches a value from a list of existing fields.Constructors in net.bytebuddy.implementation with parameters of type FieldLocator.FactoryModifierConstructorDescriptionFactory
(String name, FieldLocator.Factory fieldLocatorFactory) Creates a new argument loader for an existing field.protected
ForField
(String fieldName, boolean cached, boolean privileged, boolean returning, Assigner assigner, FieldLocator.Factory fieldLocatorFactory) Creates a new invocation handler adapter that loads its value from a field.protected
ForField
(String fieldName, FieldLocator.Factory fieldLocatorFactory) Creates a new argument provider that loads the value of an existing field.protected
ForImplicitField
(String name, FieldLocator.Factory fieldLocatorFactory) Creates an implicit field location.protected
OfField
(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing, String fieldName, FieldLocator.Factory fieldLocatorFactory) Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.private
Relative
(FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator.Factory fieldLocatorFactory) Creates a new relative field location.protected
WithExplicitType
(String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription) Creates an argument provider for a field value with an explicit type.protected
WithLookup
(String fieldName, MethodGraph.Compiler methodGraphCompiler, 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.