Uses of Interface
net.bytebuddy.pool.TypePool
Packages that use TypePool
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
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.Classes of this package allow for the creating
TypeDescription
s without
loading any classes.This package contains utility classes for common use within any Byte Buddy logic.
-
Uses of TypePool in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder that return TypePoolModifier and TypeMethodDescriptionAgentBuilder.ClassFileBufferStrategy.typePool
(AgentBuilder.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Resolves the type pool for a given type name by the suppliedAgentBuilder.PoolStrategy
.AgentBuilder.PoolStrategy.ClassLoading.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.ClassLoading.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Default.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Default.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Eager.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Eager.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.WithTypePoolCache.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.WithTypePoolCache.typePool
(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.Methods in net.bytebuddy.agent.builder with parameters of type TypePoolModifier and TypeMethodDescriptionAgentBuilder.DescriptionStrategy.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.AgentBuilder.DescriptionStrategy.SuperTypeLoading.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.apply
(String name, Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, ClassLoader classLoader, JavaModule module) Describes the given type.private byte[]
AgentBuilder.Default.ExecutingTransformer.doTransform
(JavaModule module, ClassLoader classLoader, String name, Class<?> classBeingRedefined, boolean loaded, ProtectionDomain protectionDomain, TypePool typePool, ClassFileLocator classFileLocator) Applies a transformation for a class that was captured by thisClassFileTransformer
.protected Advice
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected Advice
AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected abstract Advice
AgentBuilder.Transformer.ForAdvice.Entry.resolve
(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) Resolves the advice for this entry. -
Uses of TypePool in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as TypePoolModifier and TypeFieldDescriptionprivate final TypePool
AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor.typePool
The type pool to use.private final TypePool
MemberSubstitution.SubstitutingMethodVisitor.typePool
The type pool to use.private final TypePool
MemberSubstitution.TypePoolResolver.ForExplicitPool.typePool
The type pool to return.private final TypePool
TypeReferenceAdjustment.TypeReferenceClassVisitor.typePool
The type pool to use for locating types.Methods in net.bytebuddy.asm that return TypePoolModifier and TypeMethodDescriptionMemberSubstitution.TypePoolResolver.ForClassFileLocator.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.ForExplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.OfImplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.Methods in net.bytebuddy.asm with parameters of type TypePoolModifier and TypeMethodDescriptionMemberSubstitution.Replacement.Factory.Compound.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.ForDynamicInvocation.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.ForElementMatchers.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Replacement.NoOp.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.MemberSubstitution.Substitution.Chain.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Factory.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfGivenField.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForValue.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Stubbing.make
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.TypePoolResolver.ForClassFileLocator.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.ForExplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.OfImplicitPool.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.MemberSubstitution.TypePoolResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Resolves a type pool to use for locating substituted members.org.objectweb.asm.MethodVisitor
Advice.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.ClassVisitor
AsmVisitorWrapper.Compound.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.ClassVisitor
AsmVisitorWrapper.ForDeclaredFields.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.MethodVisitor
AsmVisitorWrapper.ForDeclaredMethods.Entry.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.MethodVisitor
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.ClassVisitor
AsmVisitorWrapper.ForDeclaredMethods.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.ClassVisitor
AsmVisitorWrapper.NoOp.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.ClassVisitor
AsmVisitorWrapper.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.MethodVisitor
MemberAttributeExtension.ForMethod.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.ClassVisitor
MemberRemoval.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.MethodVisitor
MemberSubstitution.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.ModifierAdjustment.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.ClassVisitor
TypeConstantAdjustment.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.org.objectweb.asm.ClassVisitor
TypeReferenceAdjustment.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.Constructors in net.bytebuddy.asm with parameters of type TypePoolModifierConstructorDescriptionprotected
DispatchingVisitor
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, Map<String, MethodDescription> methods, int writerFlags, int readerFlags) Creates a new dispatching visitor.ForExplicitPool
(TypePool typePool) Creates a resolver for an explicit type pool.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
TypeReferenceClassVisitor
(org.objectweb.asm.ClassVisitor classVisitor, boolean strict, ElementMatcher<? super TypeDescription> filter, TypePool typePool) Creates a type reference class visitor. -
Uses of TypePool in net.bytebuddy.build
Fields in net.bytebuddy.build declared as TypePoolModifier and TypeFieldDescriptionprivate final TypePool
Plugin.Engine.Default.Preprocessor.typePool
The type pool to use.Methods in net.bytebuddy.build that return TypePoolModifier and TypeMethodDescriptionPlugin.Engine.PoolStrategy.Default.typePool
(ClassFileLocator classFileLocator) Creates a type pool.Plugin.Engine.PoolStrategy.Eager.typePool
(ClassFileLocator classFileLocator) Creates a type pool.Plugin.Engine.PoolStrategy.typePool
(ClassFileLocator classFileLocator) Creates a type pool.Methods in net.bytebuddy.build with parameters of type TypePoolModifier and TypeMethodDescriptionorg.objectweb.asm.MethodVisitor
AccessControllerPlugin.AccessControlWrapper.wrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) Wraps a method visitor.org.objectweb.asm.ClassVisitor
RenamingPlugin.wrap
(TypeDescription instrumentedType, org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags) Applies aClassVisitorWrapper
to the creation of aDynamicType
.Constructors in net.bytebuddy.build with parameters of type TypePoolModifierConstructorDescriptionprivate
Preprocessor
(Plugin.Engine.Source.Element element, String typeName, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, TypePool typePool, Plugin.Engine.Listener listener, List<Plugin> plugins, List<Plugin.WithPreprocessor> preprocessors) Creates a new preprocessor. -
Uses of TypePool in net.bytebuddy.dynamic
Methods in net.bytebuddy.dynamic with parameters of type TypePoolModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.Delegator.make
(TypeResolutionStrategy typeResolutionStrategy, TypePool typePool) Creates the dynamic type this builder represents.Creates the dynamic type this builder represents.Creates the dynamic type this builder represents.DynamicType.Builder.AbstractBase.UsingTypeWriter.make
(TypeResolutionStrategy typeResolutionStrategy, TypePool typePool) Creates the dynamic type this builder represents.DynamicType.Builder.make
(TypeResolutionStrategy typeResolutionStrategy, TypePool typePool) Creates the dynamic type this builder represents.Creates the dynamic type this builder represents.protected abstract TypeWriter
<U> DynamicType.Builder.AbstractBase.UsingTypeWriter.toTypeWriter
(TypePool typePool) Creates aTypeWriter
given the specifiedTypePool
.DynamicType.Builder.AbstractBase.Delegator.wrap
(org.objectweb.asm.ClassVisitor classVisitor, TypePool typePool, int writerFlags, int readerFlags) Wraps a class visitor with the configuration that is represented by this dynamic type builder.DynamicType.Builder.AbstractBase.UsingTypeWriter.wrap
(org.objectweb.asm.ClassVisitor classVisitor, TypePool typePool, int writerFlags, int readerFlags) Wraps a class visitor with the configuration that is represented by this dynamic type builder.DynamicType.Builder.AbstractBase.wrap
(org.objectweb.asm.ClassVisitor classVisitor, TypePool typePool) Wraps a class visitor with the configuration that is represented by this dynamic type builder.Wraps a class visitor with the configuration that is represented by this dynamic type builder.DynamicType.Builder.wrap
(org.objectweb.asm.ClassVisitor classVisitor, TypePool typePool, int writerFlags, int readerFlags) Wraps a class visitor with the configuration that is represented by this dynamic type builder. -
Uses of TypePool in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as TypePoolModifier and TypeFieldDescriptionprotected final TypePool
TypeWriter.Default.typePool
The type pool to use for computing stack map frames, if required.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TypePoolModifier and TypeMethodDescriptionstatic <U> TypeWriter
<U> TypeWriter.Default.forCreation
(MethodRegistry.Compiled methodRegistry, List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool) Creates a type writer for creating a new type.static <U> TypeWriter
<U> TypeWriter.Default.forDecoration
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, List<? extends DynamicType> auxiliaryTypes, List<? extends MethodDescription> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, ClassFileLocator classFileLocator) Creates a type writer for decorating a type.static <U> TypeWriter
<U> TypeWriter.Default.forRebasing
(MethodRegistry.Prepared methodRegistry, List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRebaseResolver methodRebaseResolver) Creates a type writer for rebasing a type.static <U> TypeWriter
<U> TypeWriter.Default.forRedefinition
(MethodRegistry.Prepared methodRegistry, List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a type writer for redefining a type.Creates a new class writer for the given flags.ClassWriterStrategy.Delegating.make
(int flags, AsmClassReader classReader, TypePool typePool) Creates a new class writer for the given flags, possibly based on a previous class file representation.org.objectweb.asm.ClassWriter
Deprecated.Resolves a class writer.org.objectweb.asm.ClassWriter
Deprecated.Resolves a class writer.org.objectweb.asm.ClassWriter
ClassWriterStrategy.resolve
(int flags, TypePool typePool, org.objectweb.asm.ClassReader classReader) Deprecated.Resolves a class writer.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type TypePoolModifierConstructorDescriptionprotected
Default
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool) Creates a new default type writer.protected
ForCreation
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool) Creates a new default type writer for creating a new type that is not based on an existing class file.protected
ForInlining
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a new inlining type writer.FrameComputingClassWriter
(int flags, TypePool typePool) Deprecated.Creates a new frame computing class writer.FrameComputingClassWriter
(org.objectweb.asm.ClassReader classReader, int flags, TypePool typePool) Deprecated.Creates a new frame computing class writer.protected
WithDecorationOnly
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, List<? extends DynamicType> auxiliaryTypes, MethodList<?> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, ClassFileLocator classFileLocator) Creates a new inlining type writer that only applies a decoration.protected
WithFullProcessing
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRegistry.Prepared methodRegistry, Implementation.Target.Factory implementationTargetFactory, MethodRebaseResolver methodRebaseResolver) Creates a new inlining type writer that fully reprocesses a type. -
Uses of TypePool in net.bytebuddy.dynamic.scaffold.inline
Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type TypePoolModifier and TypeMethodDescriptionprotected TypeWriter
<T> DecoratingDynamicTypeBuilder.toTypeWriter
(TypePool typePool) Creates aTypeWriter
given the specifiedTypePool
.protected TypeWriter
<T> RebaseDynamicTypeBuilder.toTypeWriter
(TypePool typePool) Creates aTypeWriter
given the specifiedTypePool
.protected TypeWriter
<T> RedefinitionDynamicTypeBuilder.toTypeWriter
(TypePool typePool) Creates aTypeWriter
given the specifiedTypePool
. -
Uses of TypePool in net.bytebuddy.dynamic.scaffold.subclass
Methods in net.bytebuddy.dynamic.scaffold.subclass with parameters of type TypePoolModifier and TypeMethodDescriptionprotected TypeWriter
<T> SubclassDynamicTypeBuilder.toTypeWriter
(TypePool typePool) Creates aTypeWriter
given the specifiedTypePool
. -
Uses of TypePool in net.bytebuddy.pool
Classes in net.bytebuddy.pool that implement TypePoolModifier and TypeClassDescriptionstatic class
A base implementation of aTypePool
that is managing a cache provider and that handles the description of array and primitive types.static class
Implements a hierarchical view of type pools, similarly to class loader hierarchies.static class
A type pool that attempts to load a class.static class
A default implementation of aTypePool
that models binary data in the Java byte code format into aTypeDescription
.static class
A variant ofTypePool.Default
that resolves type descriptions lazily.static enum
An empty type pool that cannot describe any type.static class
A type pool that supplies explicitly known type descriptions.static class
A lazy facade of a type pool that delegates any lookups to another type pool only if another value than the type's name is looked up.Fields in net.bytebuddy.pool declared as TypePoolModifier and TypeFieldDescriptionprivate final TypePool
TypePool.AbstractBase.Hierarchical.parent
The parent type pool.private final TypePool
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty.typePool
The type pool to query for type descriptions.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArray.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.LazyLowerBoundWildcard.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType.typePool
The type pool that is used for locating a generic type.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType.typePool
The type pool that is used for locating a generic type.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.LazyBoundTokenList.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.typePool
The type pool to use for locating type descriptions.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.UnresolvedTypeVariable.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcard.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.LazyUpperBoundWildcard.typePool
The type pool to use.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList.ForWildcardBound.typePool
The type pool that is used for locating a generic type.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList.typePool
The type pool that is used for locating a generic type.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.typePool
The type pool to use.protected final TypePool
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.typePool
The type pool for looking up type references.private final TypePool
TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForAnnotationValue.typePool
The type pool to use for resolving the annotation type.private final TypePool
TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray.typePool
The type pool to use for looking up types.private final TypePool
TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue.typePool
The type pool to use for looking up types.private final TypePool
TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForTypeValue.typePool
The type pool to query for the type.private final TypePool
TypePool.Default.LazyTypeDescription.LazyNestMemberList.typePool
The type pool to use for looking up types.private final TypePool
TypePool.Default.LazyTypeDescription.LazyPackageDescription.typePool
The type pool to use for look-ups.private final TypePool
TypePool.Default.LazyTypeDescription.LazyTypeList.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed.TokenList.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.TokenizedGenericType.typePool
The type pool to use for locating referenced types.private final TypePool
TypePool.Default.LazyTypeDescription.TokenizedGenericType.TypeVariableList.typePool
The type pool to use for locating types.private final TypePool
TypePool.Default.LazyTypeDescription.typePool
The type pool to be used for looking up linked types.private final TypePool
TypePool.LazyFacade.LazyResolution.typePool
The type pool to delegate to.private final TypePool
TypePool.LazyFacade.LazyTypeDescription.typePool
The type pool to delegate to.private final TypePool
TypePool.LazyFacade.typePool
The type pool to delegate to.Methods in net.bytebuddy.pool that return TypePoolModifier and TypeMethodDescriptionstatic TypePool
TypePool.ClassLoading.of
(ClassLoader classLoader) Returns a type pool that attempts type descriptions by loadings types from the given class loader.static TypePool
TypePool.ClassLoading.of
(ClassLoader classLoader, TypePool parent) Returns a type pool that attempts type descriptions by loadings types from the given class loader.static TypePool
TypePool.Default.of
(ClassLoader classLoader) Returns a type pool for the provided class loader.static TypePool
TypePool.Default.of
(ClassFileLocator classFileLocator) Creates a defaultTypePool
that looks up data by querying the supplied class file locator.static TypePool
TypePool.Default.WithLazyResolution.of
(ClassLoader classLoader) Returns a defaultTypePool
with lazy resolution for the provided class loader.static TypePool
TypePool.Default.WithLazyResolution.of
(ClassFileLocator classFileLocator) Creates a defaultTypePool
with lazy resolution that looks up data by querying the supplied class file locator.static TypePool
TypePool.ClassLoading.ofBootLoader()
Returns a type pool that attempts type descriptions by loadings types from the bootstrap class loader.static TypePool
TypePool.Default.ofBootLoader()
Creates a defaultTypePool
that looks up data by querying the boot class loader.static TypePool
TypePool.Default.WithLazyResolution.ofBootLoader()
Creates a defaultTypePool
with lazy resolution that looks up data by querying the boot class loader.static TypePool
TypePool.ClassLoading.ofPlatformLoader()
Returns a type pool that attempts type descriptions by loadings types from the platform class loader.static TypePool
TypePool.Default.ofPlatformLoader()
Creates a defaultTypePool
that looks up data by querying the plaform class loader.static TypePool
TypePool.Default.WithLazyResolution.ofPlatformLoader()
Creates a defaultTypePool
with lazy resolution that looks up data by querying the platform class loader.static TypePool
TypePool.ClassLoading.ofSystemLoader()
Returns a type pool that attempts type descriptions by loadings types from the system class loader.static TypePool
TypePool.Default.ofSystemLoader()
Creates a defaultTypePool
that looks up data by querying the system class loader.static TypePool
TypePool.Default.WithLazyResolution.ofSystemLoader()
Creates a defaultTypePool
with lazy resolution that looks up data by querying the system class loader.static TypePool
TypePool.Explicit.wrap
(TypeDescription instrumentedType, List<? extends DynamicType> auxiliaryTypes, TypePool typePool) Wraps another type pool for an instrumented type and its auxiliary types.Methods in net.bytebuddy.pool with parameters of type TypePoolModifier and TypeMethodDescriptionprotected static AnnotationList
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.asList
(TypePool typePool, List<? extends TypePool.Default.LazyTypeDescription.AnnotationToken> tokens) Represents a list of annotation tokens in form of a list of lazy type annotations.protected static AnnotationList
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.asListOfNullable
(TypePool typePool, List<? extends TypePool.Default.LazyTypeDescription.AnnotationToken> tokens) Represents a list of annotation tokens in form of a list of lazy type annotations.TypePool.Default.LazyTypeDescription.TypeContainment.getEnclosingMethod
(TypePool typePool) Returns the enclosing method ornull
if no such method exists.TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained.getEnclosingMethod
(TypePool typePool) Returns the enclosing method ornull
if no such method exists.TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod.getEnclosingMethod
(TypePool typePool) Returns the enclosing method ornull
if no such method exists.TypePool.Default.LazyTypeDescription.TypeContainment.WithinType.getEnclosingMethod
(TypePool typePool) Returns the enclosing method ornull
if no such method exists.TypePool.Default.LazyTypeDescription.TypeContainment.getEnclosingType
(TypePool typePool) Returns the enclosing type ornull
if no such type exists.TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained.getEnclosingType
(TypePool typePool) Returns the enclosing type ornull
if no such type exists.TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod.getEnclosingType
(TypePool typePool) Returns the enclosing type ornull
if no such type exists.TypePool.Default.LazyTypeDescription.TypeContainment.WithinType.getEnclosingType
(TypePool typePool) Returns the enclosing type ornull
if no such type exists.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.boolean
TypePool.Default.LazyTypeDescription.GenericTypeToken.isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.static TypePool
TypePool.ClassLoading.of
(ClassLoader classLoader, TypePool parent) Returns a type pool that attempts type descriptions by loadings types from the given class loader.protected static TypeList.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList.of
(TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates generic type list only representing raw types.protected static TypeDescription.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.of
(TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, String descriptor) Creates a new raw annotated type.protected static TypeDescription.Generic
TypePool.Default.LazyTypeDescription.TokenizedGenericType.of
(TypePool typePool, TypePool.Default.LazyTypeDescription.GenericTypeToken genericTypeToken, String rawTypeDescriptor, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeVariableSource typeVariableSource) Creates a new generic type description for a tokenized generic type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveExceptionTypes
(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveExceptionTypes
(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveExceptionTypes
(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveExceptionTypes
(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.resolveFieldType
(String fieldTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField) Resolves the field type of the represented field.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.Tokenized.resolveFieldType
(String fieldTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField) Resolves the field type of the represented field.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveFieldType
(String fieldTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField) Resolves the field type of the represented field.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveFieldType
(String fieldTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField) Resolves the field type of the represented field.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveInterfaceTypes
(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType) Resolves the generic interface types of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveInterfaceTypes
(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType) Resolves the generic interface types of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveInterfaceTypes
(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType) Resolves the generic interface types of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveInterfaceTypes
(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType) Resolves the generic interface types of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveParameterTypes
(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveParameterTypes
(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveParameterTypes
(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveParameterTypes
(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent.resolveRecordType
(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape definingRecordComponent) Resolves a record component's type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent.Tokenized.resolveRecordType
(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape definingRecordComponent) Resolves a record component's type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveRecordType
(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape definingRecordComponent) Resolves a record component's type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveRecordType
(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape definingRecordComponent) Resolves a record component's type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveSuperClass
(String superClassDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType) Resolves the generic super type of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveSuperClass
(String superClassDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType) Resolves the generic super type of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveSuperClass
(String superClassDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType) Resolves the generic super type of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveSuperClass
(String superClassDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType) Resolves the generic super type of the represented type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.TypePool.Default.LazyTypeDescription.AnnotationToken.toAnnotationDescription
(TypePool typePool) Transforms this token into an annotation description.protected static TypeDescription
TypePool.Default.LazyTypeDescription.TokenizedGenericType.toErasure
(TypePool typePool, String descriptor) Creates a type description from a descriptor by looking up the corresponding type.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens) Transforms this token into a generic type representation.TypePool.Default.LazyTypeDescription.GenericTypeToken.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.static TypePool
TypePool.Explicit.wrap
(TypeDescription instrumentedType, List<? extends DynamicType> auxiliaryTypes, TypePool typePool) Wraps another type pool for an instrumented type and its auxiliary types.Constructors in net.bytebuddy.pool with parameters of type TypePoolModifierConstructorDescriptionprotected
AnnotatedTypeVariable
(TypePool typePool, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, TypeDescription.Generic typeVariable) Creates a new annotated type variable.ClassLoading
(TypePool.CacheProvider cacheProvider, TypePool parent, ClassLoader classLoader) Creates a class loadings type pool.Default
(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool) Creates a new default type pool.Default
(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool parentPool) Creates a new default type pool.Explicit
(TypePool parent, Map<String, TypeDescription> types) Creates a new explicit type pool.ForAnnotationProperty
(TypePool typePool, String annotationDescriptor) Creates a new component type locator for an array value.private
ForAnnotationValue
(TypePool typePool, TypePool.Default.LazyTypeDescription.AnnotationToken annotationToken) Creates a new lazy annotation value.private
ForArray
(TypePool typePool, TypePool.AbstractBase.ComponentTypeReference componentTypeReference, List<AnnotationValue<?, ?>> values) Creates a lazy projection for a non-primitive array.private
ForEnumerationValue
(TypePool typePool, String typeName, String value) Creates a lazy annotation value description for an enumeration.private
ForTypeValue
(TypePool typePool, String typeName) Creates a new lazy description of an annotation type constant.protected
ForWildcardBound
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken genericTypeToken) protected
Hierarchical
(TypePool.CacheProvider cacheProvider, TypePool parent) Creates a hierarchical type pool.private
LazyAnnotationDescription
(TypePool typePool, TypeDescription annotationType, Map<String, AnnotationValue<?, ?>> values) Creates a new lazy annotation description.protected
LazyBoundTokenList
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens) Creates a new lazy bound token list for a type variable.LazyFacade
(TypePool typePool) Creates a lazy facade for a type pool.protected
LazyGenericArray
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken componentTypeToken) Creates a new lazy generic array.protected
LazyLowerBoundWildcard
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken boundTypeToken) Creates a new lazy lower bound wildcard.protected
LazyNestMemberList
(TypeDescription typeDescription, TypePool typePool, List<String> nestMembers) Creates a new lazy type list of all nest members of this group.private
LazyPackageDescription
(TypePool typePool, String name) Creates a new lazy package description.protected
LazyParameterizedType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, String name, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens) Creates a new description of a parameterized type.protected
LazyParameterizedType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, String name, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken ownerTypeToken) Creates a new lazy parameterized type.protected
LazyPrimitiveType
(TypePool typePool, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription typeDescription) Creates a new lazy primitive type.protected
LazyRawAnnotatedTypeList
(TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates a generic type list only representing raw types.protected
LazyResolution
(TypePool typePool, String name) Creates a lazy resolution for a lazy facade for a type pool.protected
LazyTokenList
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens) Creates a new type list that represents a list of tokenized types.protected
LazyTypeDescription
(TypePool typePool, int actualModifiers, int modifiers, String name, String superClassInternalName, String[] interfaceInternalName, String genericSignature, TypePool.Default.LazyTypeDescription.TypeContainment typeContainment, String declaringTypeInternalName, List<String> declaredTypes, boolean anonymousType, String nestHostInternalName, List<String> nestMemberInternalNames, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> superClassAnnotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> interfaceAnnotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> typeVariableAnnotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> typeVariableBoundsAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, List<TypePool.Default.LazyTypeDescription.FieldToken> fieldTokens, List<TypePool.Default.LazyTypeDescription.MethodToken> methodTokens, List<TypePool.Default.LazyTypeDescription.RecordComponentToken> recordComponentTokens, List<String> permittedSubclasses, ClassFileVersion classFileVersion) Creates a new lazy type description.protected
LazyTypeDescription
(TypePool typePool, String name) Creates a new lazy type resolution.protected
LazyTypeList
(TypePool typePool, List<String> descriptors) Creates a list of lazy type descriptions.protected
LazyTypeVariable
(TypePool typePool, TypeVariableSource typeVariableSource, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens, String symbol, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens) Creates a lazy type description of a type variables.protected
LazyUnboundWildcard
(TypePool typePool, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Creates a new lazy unbound wildcard.protected
LazyUpperBoundWildcard
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken boundTypeToken) Creates a new lazy upper bound wildcard.private
Creates a new loadable version of a lazy annotation.protected
Creates a lazy description of a non-well-defined described generic type.protected
RawAnnotatedType
(TypePool typePool, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription typeDescription) Creates a new raw annotated type.protected
TokenizedGenericType
(TypePool typePool, TypePool.Default.LazyTypeDescription.GenericTypeToken genericTypeToken, String rawTypeDescriptor, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeVariableSource typeVariableSource) Creates a new tokenized generic type.protected
Creates a new tokenized list of generic types.private
TokenList
(TypePool typePool, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> rawTypeDescriptors, TypeVariableSource typeVariableSource) Creates a list of tokenized generic types.protected
TypeVariableList
(TypePool typePool, List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariables, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Creates a list of type variables.protected
UnresolvedTypeVariable
(TypeVariableSource typeVariableSource, TypePool typePool, String symbol, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates an unresolved type variable.WithLazyResolution
(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool) Creates a new default type pool with lazy resolution.WithLazyResolution
(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, AsmClassReader.Factory classReaderFactory, TypePool parentPool) Creates a new default type pool that uses an explicit class reader factory with lazy resolution. -
Uses of TypePool in net.bytebuddy.utility
Fields in net.bytebuddy.utility declared as TypePoolModifier and TypeFieldDescriptionprivate final TypePool
AsmClassWriter.FrameComputingClassWriter.typePool
The type pool to use for computing stack map frames, if required.private final TypePool
AsmClassWriter.SuperClassResolvingJdkClassWriter.typePool
TheTypePool
to use.Methods in net.bytebuddy.utility with parameters of type TypePoolModifier and TypeMethodDescriptionCreates a new class writer for the given flags.Creates a new class writer for the given flags.AsmClassWriter.Factory.make
(int flags, AsmClassReader classReader, TypePool typePool) Creates a new class writer for the given flags, possibly based on a previous class file representation.Creates a new class writer for the given flags.AsmClassWriter.Factory.Suppressing.make
(int flags, AsmClassReader classReader, TypePool typePool) Creates a new class writer for the given flags, possibly based on a previous class file representation.static JavaConstant.Dynamic
Resolves an ASMConstantDynamic
to aJavaConstant.Dynamic
.static JavaConstant.MethodHandle
Resolves an ASMHandle
to aJavaConstant.MethodHandle
.static JavaConstant.MethodType
Resolves an ASMType
of sortType.METHOD
.static JavaConstant
Resolves an ASM constant to aJavaConstant
.static JavaConstant
JavaConstant.Simple.ofDescription
(Object value, TypePool typePool) Creates a Java constant value from ajava.lang.constant.ConstantDesc
.Constructors in net.bytebuddy.utility with parameters of type TypePoolModifierConstructorDescriptionFrameComputingClassWriter
(int flags, TypePool typePool) Creates a new frame computing class writer.FrameComputingClassWriter
(org.objectweb.asm.ClassReader classReader, int flags, TypePool typePool) Creates a new frame computing class writer.SuperClassResolvingJdkClassWriter
(TypePool typePool) Creates a super class resolving JDK class writer.