Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
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.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.auxiliary |
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType . |
Modifier and Type | Field and Description |
---|---|
protected MethodGraph.Compiler |
ByteBuddy.methodGraphCompiler
The method graph compiler to use.
|
Modifier and Type | Method and Description |
---|---|
ByteBuddy |
ByteBuddy.with(MethodGraph.Compiler methodGraphCompiler)
Creates a new configuration where the
MethodGraph.Compiler is used for creating a MethodGraph
of the instrumented type. |
Constructor and Description |
---|
ByteBuddy(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
InstrumentedType.Factory instrumentedTypeFactory,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new Byte Buddy instance.
|
Modifier and Type | Field and Description |
---|---|
protected MethodGraph.Compiler |
MemberSubstitution.WithoutSpecification.methodGraphCompiler
The method graph compiler to use.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bindLambda(Class<T> type,
Constructor<?> constructor,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Constructor<?> constructor,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bindLambda(Class<T> type,
Method method,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
Method method,
Class<?> functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.replaceWithMethod(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Replaces any interaction with a matched byte code element with a non-static method access on the first
parameter of the matched element.
|
MemberSubstitution |
MemberSubstitution.with(MethodGraph.Compiler methodGraphCompiler)
Specifies the use of a specific method graph compiler for the resolution of virtual methods.
|
Constructor and Description |
---|
ForMatchedByteCodeElement(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super ByteCodeElement.Member> matcher)
Creates a new member substitution for a matched byte code element that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
boolean matchRead,
boolean matchWrite)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super MethodDescription> matcher)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super MethodDescription> matcher,
boolean includeVirtualCalls,
boolean includeSuperCalls)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
Matching(TypeDescription instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
ElementMatcher<? super MethodDescription> matcher)
Creates a new matching method resolver.
|
MemberSubstitution(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory)
Creates a new member substitution.
|
OfMatchedMethod(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a factory for a substitution that locates a method on the receiver type.
|
SubstitutingMethodVisitor(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodGraph.Compiler methodGraphCompiler,
boolean strict,
MemberSubstitution.Replacement replacement,
Implementation.Context implementationContext,
TypePool typePool,
boolean virtualPrivateCalls)
Creates a new substituting method visitor.
|
WithoutSpecification(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory)
Creates a new member substitution that requires a specification for how to perform a substitution.
|
Modifier and Type | Field and Description |
---|---|
protected MethodGraph.Compiler |
DynamicType.Builder.AbstractBase.Adapter.methodGraphCompiler
The method graph compiler to use.
|
Modifier and Type | Method and Description |
---|---|
protected abstract DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes)
Materializes the supplied state of a dynamic type builder.
|
Constructor and Description |
---|
Adapter(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodGraph.Compiler.AbstractBase
An abstract base implementation of a method graph compiler.
|
static class |
MethodGraph.Compiler.Default<T>
A default implementation of a method graph.
|
static class |
MethodGraph.Compiler.ForDeclaredMethods
A flat compiler that simply returns the methods that are declared by the instrumented type.
|
static class |
MethodGraph.Empty
A canonical implementation of an empty method graph.
|
Modifier and Type | Field and Description |
---|---|
static MethodGraph.Compiler |
MethodGraph.Compiler.DEFAULT
The default compiler for compiling Java methods.
|
Modifier and Type | Method and Description |
---|---|
static MethodGraph.Compiler |
MethodGraph.Compiler.Default.forJavaHierarchy()
Creates a default compiler for a method hierarchy following the rules of the Java programming language.
|
static MethodGraph.Compiler |
MethodGraph.Compiler.Default.forJVMHierarchy()
Creates a default compiler for a method hierarchy following the rules of the Java virtual machine.
|
static <S> MethodGraph.Compiler |
MethodGraph.Compiler.Default.of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer,
MethodGraph.Compiler.Default.Merger merger)
Creates a default compiler using the given harmonizer and merger.
|
static <S> MethodGraph.Compiler |
MethodGraph.Compiler.Default.of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer,
MethodGraph.Compiler.Default.Merger merger,
ElementMatcher<? super MethodDescription> matcher)
Creates a default compiler using the given harmonizer and merger.
|
static <S> MethodGraph.Compiler |
MethodGraph.Compiler.Default.of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer,
MethodGraph.Compiler.Default.Merger merger,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a default compiler using the given harmonizer and merger.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry.Prepared |
MethodRegistry.prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry.
|
MethodRegistry.Prepared |
MethodRegistry.Default.prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry.
|
Modifier and Type | Method and Description |
---|---|
protected DynamicType.Builder<T> |
RedefinitionDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes) |
protected DynamicType.Builder<T> |
RebaseDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes) |
Constructor and Description |
---|
AbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates an inlining dynamic type builder.
|
DecoratingDynamicTypeBuilder(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
ClassFileLocator classFileLocator)
Creates a new decorating dynamic type builder.
|
DecoratingDynamicTypeBuilder(TypeDescription instrumentedType,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<DynamicType> auxiliaryTypes,
ClassFileLocator classFileLocator)
Creates a new decorating dynamic type builder.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder.
|
RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder.
|
Modifier and Type | Method and Description |
---|---|
protected DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes) |
Constructor and Description |
---|
SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass.
|
SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes,
ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass.
|
Modifier and Type | Field and Description |
---|---|
protected MethodGraph.Compiler |
MethodDelegation.ImplementationDelegate.ForField.methodGraphCompiler
The method graph compiler to use.
|
Modifier and Type | Method and Description |
---|---|
static MethodCall.WithoutSpecifiedTarget |
MethodCall.invoke(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.
|
static InvokeDynamic.WithImplicitArguments |
InvokeDynamic.lambda(MethodDescription.InDefinedShape methodDescription,
TypeDefinition functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.
|
static InvokeDynamic.WithImplicitArguments |
InvokeDynamic.lambda(Method method,
Type functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.
|
static MethodDelegation |
MethodDelegation.to(Object target,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
static MethodDelegation |
MethodDelegation.to(Object target,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
static MethodDelegation |
MethodDelegation.to(Object target,
TypeDefinition typeDefinition,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
TypeDefinition typeDefinition,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
static MethodDelegation |
MethodDelegation.to(Object target,
TypeDefinition typeDefinition,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
TypeDefinition typeDefinition,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
static MethodDelegation |
MethodDelegation.to(Object target,
Type type,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
Type type,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
static MethodDelegation |
MethodDelegation.to(Object target,
Type type,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(Object target,
Type type,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method that is declared by the supplied type's instance or any
of its super types. |
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. |
static MethodDelegation |
MethodDelegation.toField(String name,
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,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-
static method on the instance of the supplied field. |
static MethodDelegation |
MethodDelegation.toMethodReturnOf(String name,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a method on an instance that is returned by a parameterless method of the
given name.
|
MethodDelegation |
MethodDelegation.WithCustomProperties.toMethodReturnOf(String name,
MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a method on an instance that is returned by a parameterless method of the
given name.
|
Constructor and Description |
---|
Factory(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a factory for a method locator that identifies a method using a matcher.
|
ForElementMatcher(TypeDescription instrumentedType,
ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a new method locator for an element matcher.
|
ForField(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a field delegation.
|
ForMethodReturn(String name,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a method return value delegation.
|
WithInstance(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
Object target,
TypeDescription.Generic fieldType)
Creates a new implementation delegate for invoking methods on a supplied instance.
|
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.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodCallProxy.PrecomputedMethodGraph
A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.
|
Copyright © 2014–2023. All rights reserved.