Uses of Interface
net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
-
Packages that use MethodGraph.Compiler 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 aDynamicType
by enhancing a given type.net.bytebuddy.dynamic.scaffold.subclass All classes and types in this package are related to creating aDynamicType
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 givenInstrumentedType
. -
-
Uses of MethodGraph.Compiler in net.bytebuddy
Fields in net.bytebuddy declared as MethodGraph.Compiler Modifier and Type Field Description protected MethodGraph.Compiler
ByteBuddy. methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy with parameters of type MethodGraph.Compiler Modifier and Type Method Description ByteBuddy
ByteBuddy. with(MethodGraph.Compiler methodGraphCompiler)
Creates a new configuration where theMethodGraph.Compiler
is used for creating aMethodGraph
of the instrumented type.Constructors in net.bytebuddy with parameters of type MethodGraph.Compiler Constructor 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. -
Uses of MethodGraph.Compiler in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as MethodGraph.Compiler Modifier and Type Field Description private MethodGraph.Compiler
MemberSubstitution. methodGraphCompiler
The method graph compiler to use.private MethodGraph.Compiler
MemberSubstitution.SubstitutingMethodVisitor. methodGraphCompiler
The method graph compiler to use.private MethodGraph.Compiler
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching. methodGraphCompiler
The method graph compiler to use.private MethodGraph.Compiler
MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod. methodGraphCompiler
The method graph compiler to use.protected MethodGraph.Compiler
MemberSubstitution.WithoutSpecification. methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.asm with parameters of type MethodGraph.Compiler Modifier and Type Method Description 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.Constructors in net.bytebuddy.asm with parameters of type MethodGraph.Compiler Constructor Description ForMatchedByteCodeElement(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super ByteCodeElement> 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(org.objectweb.asm.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. -
Uses of MethodGraph.Compiler in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as MethodGraph.Compiler Modifier and Type Field Description protected MethodGraph.Compiler
DynamicType.Builder.AbstractBase.Adapter. methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.dynamic with parameters of type MethodGraph.Compiler Modifier and Type Method 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, java.util.List<? extends DynamicType> auxiliaryTypes)
Materializes the supplied state of a dynamic type builder.Constructors in net.bytebuddy.dynamic with parameters of type MethodGraph.Compiler Constructor 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, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new default type writer for creating a new type that is not based on an existing class file. -
Uses of MethodGraph.Compiler in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement MethodGraph.Compiler Modifier and Type Class 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.Fields in net.bytebuddy.dynamic.scaffold declared as MethodGraph.Compiler Modifier and Type Field Description static MethodGraph.Compiler
MethodGraph.Compiler. DEFAULT
The default compiler for compiling Java methods.Methods in net.bytebuddy.dynamic.scaffold that return MethodGraph.Compiler Modifier and Type Method 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, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a default compiler using the given harmonizer and merger.Methods in net.bytebuddy.dynamic.scaffold with parameters of type MethodGraph.Compiler Modifier and Type Method Description MethodRegistry.Prepared
MethodRegistry.Default. prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry.MethodRegistry.Prepared
MethodRegistry. prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry. -
Uses of MethodGraph.Compiler in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline declared as MethodGraph.Compiler Modifier and Type Field Description private MethodGraph.Compiler
DecoratingDynamicTypeBuilder. methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodGraph.Compiler Modifier and Type Method Description 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, java.util.List<? extends DynamicType> auxiliaryTypes)
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, java.util.List<? extends DynamicType> auxiliaryTypes)
Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodGraph.Compiler Constructor 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, java.util.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, java.util.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, java.util.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, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder. -
Uses of MethodGraph.Compiler in net.bytebuddy.dynamic.scaffold.subclass
Methods in net.bytebuddy.dynamic.scaffold.subclass with parameters of type MethodGraph.Compiler Modifier and Type Method 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, java.util.List<? extends DynamicType> auxiliaryTypes)
Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type MethodGraph.Compiler Constructor 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, java.util.List<? extends DynamicType> auxiliaryTypes, ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass. -
Uses of MethodGraph.Compiler in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as MethodGraph.Compiler Modifier and Type Field Description private MethodGraph.Compiler
MethodCall.MethodLocator.ForElementMatcher.Factory. methodGraphCompiler
The method graph compiler to use.private MethodGraph.Compiler
MethodCall.MethodLocator.ForElementMatcher. methodGraphCompiler
The method graph compiler to use.protected MethodGraph.Compiler
MethodDelegation.ImplementationDelegate.ForField. methodGraphCompiler
The method graph compiler to use.private MethodGraph.Compiler
MethodDelegation.ImplementationDelegate.ForMethodReturn. methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.implementation with parameters of type MethodGraph.Compiler Modifier and Type Method 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(java.lang.reflect.Method method, java.lang.Class<?> functionalInterface, MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.static InvokeDynamic.WithImplicitArguments
InvokeDynamic. lambda(MethodDescription.InDefinedShape methodDescription, TypeDescription functionalInterface, MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.static MethodDelegation
MethodDelegation. to(java.lang.Object target, java.lang.reflect.Type type, java.lang.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(java.lang.Object target, java.lang.reflect.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(java.lang.Object target, java.lang.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(java.lang.Object target, TypeDefinition typeDefinition, java.lang.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(java.lang.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(java.lang.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(java.lang.Object target, java.lang.reflect.Type type, java.lang.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(java.lang.Object target, java.lang.reflect.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(java.lang.Object target, java.lang.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(java.lang.Object target, TypeDefinition typeDefinition, java.lang.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(java.lang.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(java.lang.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. 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.static MethodDelegation
MethodDelegation. toField(java.lang.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(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, MethodGraph.Compiler methodGraphCompiler)
Delegates any intercepted method to invoke a non-static
method on the instance of the supplied field.static MethodDelegation
MethodDelegation. toMethodReturnOf(java.lang.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(java.lang.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.Constructors in net.bytebuddy.implementation with parameters of type MethodGraph.Compiler Constructor 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(java.lang.String fieldName, MethodGraph.Compiler methodGraphCompiler, java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a field delegation.ForMethodReturn(java.lang.String name, MethodGraph.Compiler methodGraphCompiler, java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a method return value delegation.WithInstance(java.lang.String fieldName, MethodGraph.Compiler methodGraphCompiler, java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher, java.lang.Object target, TypeDescription.Generic fieldType)
Creates a new implementation delegate for invoking methods on a supplied instance.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. -
Uses of MethodGraph.Compiler in net.bytebuddy.implementation.auxiliary
Classes in net.bytebuddy.implementation.auxiliary that implement MethodGraph.Compiler Modifier and Type Class Description protected static class
MethodCallProxy.PrecomputedMethodGraph
A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.
-