Uses of Interface
net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
Packages that use MethodGraph.Compiler
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
The ASM package contains classes that are meant for direct interaction with the ASM API.
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.
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.All classes and types in this package are related to creating a
DynamicType
by
creating a subclass of a given type.The implementation package contains any logic for intercepting method calls.
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType
.-
Uses of MethodGraph.Compiler in net.bytebuddy
Fields in net.bytebuddy declared as MethodGraph.CompilerModifier and TypeFieldDescriptionprotected final MethodGraph.Compiler
ByteBuddy.methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy with parameters of type MethodGraph.CompilerModifier and TypeMethodDescriptionByteBuddy.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.CompilerModifierConstructorDescriptionprotected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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.CompilerModifier and TypeFieldDescriptionprivate final MethodGraph.Compiler
MemberSubstitution.methodGraphCompiler
The method graph compiler to use.private final MethodGraph.Compiler
MemberSubstitution.SubstitutingMethodVisitor.methodGraphCompiler
The method graph compiler to use.private final MethodGraph.Compiler
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.methodGraphCompiler
The method graph compiler to use.private final MethodGraph.Compiler
MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.methodGraphCompiler
The method graph compiler to use.protected final MethodGraph.Compiler
MemberSubstitution.WithoutSpecification.methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.asm with parameters of type MethodGraph.CompilerModifier and TypeMethodDescription<T extends Annotation>
Advice.WithCustomMappingAdvice.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.WithCustomMappingAdvice.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.WithCustomMappingAdvice.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.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.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.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.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.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.CompilerModifierConstructorDescriptionprotected
ForMatchedByteCodeElement
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protected
ForMatchedDynamicInvocation
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<? extends JavaConstant>> argumentsMatcher) Creates a member substitution for an invokedynamic instruction.protected
ForMatchedField
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super FieldDescription> matcher) Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.protected
ForMatchedField
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super FieldDescription> matcher, boolean matchRead, boolean matchWrite) Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.protected
ForMatchedMethod
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protected
ForMatchedMethod
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protected
MemberSubstitution
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protected
SubstitutingMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodGraph.Compiler methodGraphCompiler, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement replacement, Implementation.Context implementationContext, TypePool typePool, boolean virtualPrivateCalls) Creates a new substituting method visitor.protected
WithoutSpecification
(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.CompilerModifier and TypeFieldDescriptionprotected final MethodGraph.Compiler
DynamicType.Builder.AbstractBase.Adapter.methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.dynamic with parameters of type MethodGraph.CompilerModifier and TypeMethodDescriptionprotected 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Materializes the supplied state of a dynamic type builder.Constructors in net.bytebuddy.dynamic with parameters of type MethodGraph.CompilerModifierConstructorDescriptionprotected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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. -
Uses of MethodGraph.Compiler in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement MethodGraph.CompilerModifier and TypeClassDescriptionstatic class
An abstract base implementation of a method graph compiler.static class
A default implementation of a method graph.static enum
A flat compiler that simply returns the methods that are declared by the instrumented type.static enum
A canonical implementation of an empty method graph.Fields in net.bytebuddy.dynamic.scaffold declared as MethodGraph.CompilerModifier and TypeFieldDescriptionstatic final MethodGraph.Compiler
MethodGraph.Compiler.DEFAULT
The default compiler for compiling Java methods.Methods in net.bytebuddy.dynamic.scaffold that return MethodGraph.CompilerModifier and TypeMethodDescriptionstatic 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.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.Methods in net.bytebuddy.dynamic.scaffold with parameters of type MethodGraph.CompilerModifier and TypeMethodDescriptionMethodRegistry.Default.prepare
(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods) Prepares this method registry.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.CompilerModifier and TypeFieldDescriptionprivate final MethodGraph.Compiler
DecoratingDynamicTypeBuilder.methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodGraph.CompilerModifier and TypeMethodDescriptionprotected 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodGraph.CompilerModifierConstructorDescriptionprotected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, ClassFileLocator classFileLocator) Creates a new decorating dynamic type builder.protected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Creates a rebase dynamic type builder.protected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a redefinition dynamic type builder.protected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, 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.CompilerModifier and TypeMethodDescriptionprotected 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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes) Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type MethodGraph.CompilerModifierConstructorDescriptionSubclassDynamicTypeBuilder
(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, ConstructorStrategy constructorStrategy) Creates a new type builder for creating a subclass.protected
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, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, LatentMatcher<? super MethodDescription> ignoredMethods, 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.CompilerModifier and TypeFieldDescriptionprivate final MethodGraph.Compiler
MethodCall.MethodLocator.ForElementMatcher.Factory.methodGraphCompiler
The method graph compiler to use.private final MethodGraph.Compiler
MethodCall.MethodLocator.ForElementMatcher.methodGraphCompiler
The method graph compiler to use.protected final MethodGraph.Compiler
MethodDelegation.ImplementationDelegate.ForField.methodGraphCompiler
The method graph compiler to use.private final MethodGraph.Compiler
MethodDelegation.ImplementationDelegate.ForMethodReturn.methodGraphCompiler
The method graph compiler to use.Methods in net.bytebuddy.implementation with parameters of type MethodGraph.CompilerModifier and TypeMethodDescriptionMethodCall.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.InvokeDynamic.lambda
(Method method, Type functionalInterface, MethodGraph.Compiler methodGraphCompiler) Creates a lambda expression using the JVM's lambda meta factory.InvokeDynamic.lambda
(MethodDescription.InDefinedShape methodDescription, TypeDefinition functionalInterface, MethodGraph.Compiler methodGraphCompiler) Creates a lambda expression using the JVM's lambda meta factory.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.Constructors in net.bytebuddy.implementation with parameters of type MethodGraph.CompilerModifierConstructorDescriptionFactory
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a factory for a method locator that identifies a method using a matcher.protected
ForElementMatcher
(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a new method locator for an element matcher.protected
ForField
(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher) Creates a new implementation delegate for a field delegation.protected
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.protected
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.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. -
Uses of MethodGraph.Compiler in net.bytebuddy.implementation.auxiliary
Classes in net.bytebuddy.implementation.auxiliary that implement MethodGraph.CompilerModifier and TypeClassDescriptionprotected static enum
A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.