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 |
---|---|
protected FieldLocator.Factory |
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.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) |
MethodCall |
MethodCall.WithoutSpecifiedTarget.onField(String name,
FieldLocator.Factory fieldLocatorFactory)
Invokes a method on the object stored in the specified field.
|
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. |
MethodDelegation |
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. |
static InvocationHandlerAdapter |
InvocationHandlerAdapter.toField(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(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(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) |
FieldAccessor.FieldLocation |
FieldAccessor.FieldLocation.Relative.with(FieldLocator.Factory fieldLocatorFactory) |
MethodCall |
MethodCall.withField(FieldLocator.Factory fieldLocatorFactory,
String... name)
Defines a method call which fetches a value from a list of existing fields.
|
InvokeDynamic |
InvokeDynamic.withField(FieldLocator.Factory fieldLocatorFactory,
String... name)
Passes the values of the specified fields to the bootstrap method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withField(FieldLocator.Factory fieldLocatorFactory,
String... name) |
InvokeDynamic.WithImplicitType |
InvokeDynamic.withField(String name,
FieldLocator.Factory fieldLocatorFactory)
Passes the values of the specified fields to the bootstrap method.
|
InvokeDynamic.WithImplicitType |
InvokeDynamic.AbstractDelegator.withField(String name,
FieldLocator.Factory fieldLocatorFactory) |
Constructor and Description |
---|
Factory(String name,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument loader for an existing field.
|
ForField(String fieldName,
boolean cacheMethods,
Assigner assigner,
FieldLocator.Factory fieldLocatorFactory)
Creates a new invocation handler adapter that loads its value from a field.
|
ForField(String name,
FieldLocator.Factory fieldLocatorFactory)
Creates a new target handler for storing a method invocation target in an
instance field.
|
ForField(String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument provider that loads the value of an existing field.
|
OfField(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
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.
|
WithExplicitType(String fieldName,
FieldLocator.Factory fieldLocatorFactory,
TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.
|
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.
|
Copyright © 2014–2018. All rights reserved.