Uses of Interface
net.bytebuddy.description.type.TypeDescription
Packages that use TypeDescription
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
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.
A package containing classes for applying Byte Buddy transformers within a Maven build.
Classes of this package allow the representation of Java classes, their member and their meta data.
Contains descriptions of annotations and annotation values.
A package that contains classes for describing enumeration values.
Contains descriptions of Java fields.
Contains descriptions of Java methods and constructors as well as their parameters.
Contains descriptions of Java types and packages.
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 classes that are responsible for class loading of classes that are represented by
byte
arrays.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.
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType
.The types and classes of this package are responsible for binding a method call to calling another method.
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
Types and classes in this package are responsible for creating Java byte code for a given byte code target
which is represented by a
MethodDescription
.An
Assigner
is responsible for transforming
a given TypeDescription
into another one.Assigner
implementations of this package
are capable of handling primitive types or the void
type.This package is dedicated to creating
StackManipulation
s
that create collections or arrays from a given number of values.StackManipulation
s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack.StackManipulation
s of this package are responsible for
accessing type or method members, i.e.Contains an API for matching Java byte code entities.
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 TypeDescription in net.bytebuddy
Fields in net.bytebuddy declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
ByteBuddy.EnumerationImplementation.ValuesMethodAppender.instrumentedType
The instrumented enumeration type.private final TypeDescription
ByteBuddy.RecordConstructorStrategy.Appender.instrumentedType
The instrumented type.private final TypeDescription
ByteBuddy.RecordObjectMethod.returnType
The return type.private final TypeDescription
NamingStrategy.Suffixing.BaseNameResolver.ForGivenType.typeDescription
The type description which represents the resolved name.Fields in net.bytebuddy with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<? extends TypeDescription> ByteBuddy.RecordObjectMethod.arguments
The arguments type.Methods in net.bytebuddy with parameters of type TypeDescriptionModifier and TypeMethodDescription<T> DynamicType.Builder
<T> ByteBuddy.decorate
(TypeDescription type, ClassFileLocator classFileLocator) Decorates a type withAsmVisitorWrapper
and allows adding attributes and annotations.ByteBuddy.RecordConstructorStrategy.extractConstructors
(TypeDescription instrumentedType) Extracts constructors for a given super type.ByteBuddy.RecordConstructorStrategy.inject
(TypeDescription instrumentedType, MethodRegistry methodRegistry) Returns a method registry that is capable of creating byte code for the constructors that were provided by theConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.protected abstract String
NamingStrategy.AbstractBase.name
(TypeDescription superClass) Determines a new name when creating a new type that subclasses the provided type.protected String
NamingStrategy.PrefixingRandom.name
(TypeDescription superClass) protected String
NamingStrategy.Suffixing.name
(TypeDescription superClass) protected String
NamingStrategy.SuffixingRandom.name
(TypeDescription superClass) static ClassFileVersion
ClassFileVersion.of
(TypeDescription typeDescription, ClassFileLocator classFileLocator) Extracts a class' class version.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(TypeDescription type, ClassFileLocator classFileLocator) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder
<T> ByteBuddy.rebase
(TypeDescription type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.NamingStrategy.AbstractBase.rebase
(TypeDescription typeDescription) Determines a name for the dynamic type when rebasing the provided type.NamingStrategy.rebase
(TypeDescription typeDescription) Determines a name for the dynamic type when rebasing the provided type.<T> DynamicType.Builder
<T> ByteBuddy.redefine
(TypeDescription type, ClassFileLocator classFileLocator) Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.NamingStrategy.AbstractBase.redefine
(TypeDescription typeDescription) Determines a name for the dynamic type when redefining the provided type.NamingStrategy.redefine
(TypeDescription typeDescription) Determines a name for the dynamic type when redefining the provided type.NamingStrategy.Suffixing.BaseNameResolver.ForFixedValue.resolve
(TypeDescription typeDescription) Resolves the base name for a given type description.NamingStrategy.Suffixing.BaseNameResolver.ForGivenType.resolve
(TypeDescription typeDescription) Resolves the base name for a given type description.NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType.resolve
(TypeDescription typeDescription) Resolves the base name for a given type description.NamingStrategy.Suffixing.BaseNameResolver.resolve
(TypeDescription typeDescription) Resolves the base name for a given type description.NamingStrategy.Suffixing.BaseNameResolver.WithCallerSuffix.resolve
(TypeDescription typeDescription) Resolves the base name for a given type description.NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType.resolve
(TypeDescription typeDescription) Deprecated.Resolves the base name for a given type description.Constructors in net.bytebuddy with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
Appender
(TypeDescription instrumentedType) Creates a new byte code appender for accessors and the record constructor.ForGivenType
(TypeDescription typeDescription) Creates a new base name resolver that resolves a using the name of a given type.ForGivenType
(TypeDescription typeDescription) Deprecated.Creates a new base name resolver that resolves a using the name of a given type.protected
ValuesMethodAppender
(TypeDescription instrumentedType) Creates a new appender for thevalues
method. -
Uses of TypeDescription in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.instrumentedType
The instrumented type.private final TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.FactoryImplementation.Appender.instrumentedType
The instrumented type.private final TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation.lambdaType
The lambda expression's functional type.private final TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.targetType
The type that defines the lambda expression.private final TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation.targetType
The lambda expression's declaring type.private final TypeDescription
AgentBuilder.Default.Transformation.TransformerIterator.typeDescription
A description of the matched type.private final TypeDescription
AgentBuilder.Transformer.ForAdvice.LazyDynamicType.typeDescription
A description of the class to inject.Fields in net.bytebuddy.agent.builder with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final Set
<TypeDescription> AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.auxiliaryTypes
The auxiliary types to inject.private final Map
<TypeDescription, LoadedTypeInitializer> AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.loadedTypeInitializers
The instrumented types and auxiliary types mapped to their loaded type initializers.private final Collection
<? extends ElementMatcher<? super TypeDescription>> AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping.matchers
The type matchers to apply.private final ElementMatcher
<? super TypeDescription> AgentBuilder.RawMatcher.ForElementMatchers.typeMatcher
The type matcher to apply to aTypeDescription
.Methods in net.bytebuddy.agent.builder that return TypeDescriptionModifier 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.AgentBuilder.Transformer.ForAdvice.LazyDynamicType.getTypeDescription()
Returns a description of this dynamic type.Methods in net.bytebuddy.agent.builder with parameters of type TypeDescriptionModifier and TypeMethodDescriptionAgentBuilder.TypeStrategy.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.private void
AgentBuilder.RedefinitionStrategy.Collector.doConsider
(AgentBuilder.RawMatcher matcher, AgentBuilder.Listener listener, TypeDescription typeDescription, Class<?> type, Class<?> classBeingRedefined, JavaModule module, boolean modifiable) Does consider the retransformation or redefinition of a loaded type.AgentBuilder.Default.ExecutingTransformer.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.WithDelegation.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.ResettableClassFileTransformer.WithDelegation.Substitutable.iterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Creates an iterator over the transformers that are applied for a given type.boolean
AgentBuilder.Default.Transformation.DifferentialMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.Default.Transformation.SimpleMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Conjunction.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Disjunction.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForElementMatchers.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForLoadState.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForResolvableTypes.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Inversion.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Trivial.matches
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.protected static ByteCodeAppender
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.of
(MethodDescription targetMethod, JavaConstant.MethodType specializedLambdaMethod, List<FieldDescription.InDefinedShape> declaredFields, JavaConstant.MethodHandle.HandleType handleType, TypeDescription targetType) Resolves an appropriate appender for this lambda expression.void
AgentBuilder.Listener.Adapter.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Compound.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Filtering.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.NoOp.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.StreamWriting.onIgnored
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Adapter.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Compound.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Filtering.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.ModuleReadEdgeCompleting.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) void
AgentBuilder.Listener.NoOp.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.StreamWriting.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) AgentBuilder.Transformer.ForAdvice.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForBuildPlugin.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.transform
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Allows for a transformation of aDynamicType.Builder
.AgentBuilder.Transformer.ForAdvice.wrap
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain, Advice advice) Allows for decoration of advice for subclass implementations of this transformer.Method parameters in net.bytebuddy.agent.builder with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionAgentBuilder.Default.Delegator.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.ignore
(ElementMatcher<? super TypeDescription> ignoredTypes) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoader
s.AgentBuilder.Default.Delegator.ignore
(ElementMatcher<? super TypeDescription> ignoredTypes, ElementMatcher<? super ClassLoader> ignoredClassLoaders) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.Delegator.ignore
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.ignore
(ElementMatcher<? super TypeDescription> typeMatcher) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoader
s.AgentBuilder.Default.ignore
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.ignore
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.ignore
(ElementMatcher<? super TypeDescription> typeMatcher) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoader
s.AgentBuilder.ignore
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.ignore
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.Delegator.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.type
(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.Delegator.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.Delegator.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.type
(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.type
(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.type
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.Constructors in net.bytebuddy.agent.builder with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
Appender
(TypeDescription instrumentedType) Creates a new appender.protected
InjectingInitializer
(TypeDescription instrumentedType, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, Map<TypeDescription, LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector) Creates a new injection initializer.protected
LambdaMethodImplementation
(TypeDescription targetType, JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedLambdaMethod) Creates a implementation of a lambda expression's functional method.protected
LazyDynamicType
(TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a lazy dynamic type.protected
SerializationImplementation
(TypeDescription targetType, TypeDescription lambdaType, String lambdaMethodName, JavaConstant.MethodType lambdaMethod, JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedMethod) Creates a new implementation for a serializable's lambda expression'swriteReplace
method.protected
TransformerIterator
(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, List<AgentBuilder.Default.Transformation> transformations) Creates a new iterator.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type TypeDescriptionModifierConstructorDescriptionForElementMatchers
(ElementMatcher<? super TypeDescription> typeMatcher) Creates a newAgentBuilder.RawMatcher
that only matches the suppliedTypeDescription
against a supplied matcher.ForElementMatchers
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Creates a newAgentBuilder.RawMatcher
that only matches the suppliedTypeDescription
and itsClassLoader
against two matcher in order to decided if an instrumentation should be conducted.ForElementMatchers
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Creates a newAgentBuilder.RawMatcher
that only matches the suppliedTypeDescription
, itsClassLoader
and module against element suitable matchers.ForMatchedGrouping
(Collection<? extends ElementMatcher<? super TypeDescription>> matchers) Creates a new batch allocator that groups all batches by discriminating types using a type matcher.protected
InjectingInitializer
(TypeDescription instrumentedType, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, Map<TypeDescription, LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector) Creates a new injection initializer.protected
InjectingInitializer
(TypeDescription instrumentedType, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, Map<TypeDescription, LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector) Creates a new injection initializer. -
Uses of TypeDescription in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
Advice.OffsetMapping.ForDynamicConstant.bootstrapOwner
The type that declares the bootstrap method, orvoid
if the instrumented type.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.bootstrapOwner
The type that declares the bootstrap method, orvoid
if the instrumented type.private final TypeDescription
Advice.OffsetMapping.ForDynamicConstant.bootstrapReturnType
The return type of the boostrap method.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.bootstrapReturnType
The return type of the boostrap method.private final TypeDescription
Advice.AssignReturned.ToFields.Handler.declaringType
The field's declaring type orvoid
if the type should be found within the instrumented type's hierarchy.private final TypeDescription
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType.declaringType
The type declaring the field.private final TypeDescription
Advice.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.declaringType
The type declaring the field.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType.declaringType
The field's declaring type.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.declaringType
The field's declaring type.private static final TypeDescription
Advice.NoExceptionHandler.DESCRIPTION
A description of theAdvice.NoExceptionHandler
type.private final TypeDescription
Advice.AssignReturned.ExceptionHandler.exceptionType
The exception type to handle.private final TypeDescription
Advice.AssignReturned.ExceptionHandler.Factory.Enabled.exceptionType
The exception type being handled.private final TypeDescription
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.instrumentedType
The instrumented type.private final TypeDescription
Advice.Dispatcher.Inlining.CodeTranslationVisitor.instrumentedType
The instrumented type.protected final TypeDescription
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.instrumentedType
A description of the instrumented type.protected final TypeDescription
Advice.StackMapFrameHandler.Default.instrumentedType
The instrumented type.private final TypeDescription
AsmVisitorWrapper.ForDeclaredFields.DispatchingVisitor.instrumentedType
The instrumented type.private final TypeDescription
AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.SubstitutingMethodVisitor.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.Substitution.ForFieldAccess.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.Substitution.ForMethodInvocation.instrumentedType
The instrumented type.private final TypeDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.instrumentedType
The instrumented type.private final TypeDescription
ModifierAdjustment.ModifierAdjustingClassVisitor.instrumentedType
The instrumented type.private final TypeDescription
Advice.OffsetMapping.ForHandle.owner
The owner of the handle, orvoid
for the instrumented type.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.owner
The owner of the handle, orvoid
for the instrumented type.private final TypeDescription
MemberSubstitution.Replacement.Binding.ForMember.receiver
The type on which a field or method was accessed.private final TypeDescription
MemberSubstitution.Target.ForMember.receiverType
The actual (sub-)type on which the member is accessed.private final TypeDescription
Advice.OffsetMapping.ForHandle.returnType
The type that is returned from the handle.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.returnType
The type that is returned from the handle.private final TypeDescription
ClassVisitorFactory.AttributeTranslator.sourceWrapper
The wrapper type for theAttribute
type in the original namespace.private final TypeDescription
Advice.Dispatcher.SuppressionHandler.Suppressing.Bound.suppressedType
The suppressed throwable type.private final TypeDescription
Advice.Dispatcher.SuppressionHandler.Suppressing.suppressedType
The suppressed throwable type.private final TypeDescription
ClassVisitorFactory.AttributeTranslator.targetWrapper
The wrapper type for theAttribute
type in the targeted namespace.private final TypeDescription
Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling.throwable
The type of the handled throwable type for which this advice is invoked.private final TypeDescription
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler.throwable
The type of the handled throwable type for which this advice is invoked.private final TypeDescription
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler.throwable
The type of the handled throwable type for which this advice is invoked.protected final TypeDescription
Advice.AssignReturned.typeDescription
The advice method's return type.private final TypeDescription
Advice.Dispatcher.RelocationHandler.ForType.typeDescription
The type that triggers a relocation.private final TypeDescription
Advice.OffsetMapping.ForDynamicConstant.typeDescription
The type of the dynamic constant.private final TypeDescription
Advice.OffsetMapping.ForSerializedValue.Factory.typeDescription
The type description as which to treat the deserialized value.private final TypeDescription
Advice.OffsetMapping.ForSerializedValue.typeDescription
The class type of the serialized value.private final TypeDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.typeDescription
The type of the dynamic constant.Fields in net.bytebuddy.asm with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<? extends TypeDescription> Advice.OffsetMapping.ForDynamicConstant.bootstrapParameterTypes
The parameter types of the boostrap method.private final List
<? extends TypeDescription> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.bootstrapParameterTypes
The parameter types of the boostrap method.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.ForAdvice.endTypes
The types provided after execution of the advice code.private final ElementMatcher.Junction
<? super TypeDescription> TypeReferenceAdjustment.filter
A filter for excluding types from type reference analysis.private final ElementMatcher
<? super TypeDescription> TypeReferenceAdjustment.TypeReferenceClassVisitor.filter
A filter for excluding types from type reference analysis.protected final List
<? extends TypeDescription> Advice.MethodSizeHandler.Default.initialTypes
A list of virtual method arguments that are explicitly added before any code execution.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.initialTypes
A list of virtual method arguments that are explicitly added before any code execution.private final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.ForAdvice.intermediateTypes
The types that are given post execution of the advice.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.latentTypes
A list of virtual arguments that are available after the enter advice method is executed.private final List
<? extends TypeDescription> Advice.OffsetMapping.ForHandle.parameterTypes
The parameter types required by the handle.private final List
<? extends TypeDescription> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.parameterTypes
The parameter types required by the handle.protected final List
<? extends TypeDescription> Advice.MethodSizeHandler.Default.postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.protected final List
<? extends TypeDescription> Advice.MethodSizeHandler.Default.preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.protected final List
<? extends TypeDescription> Advice.StackMapFrameHandler.Default.ForAdvice.startTypes
The types provided before execution of the advice code.private final List
<ModifierAdjustment.Adjustment<TypeDescription>> ModifierAdjustment.ModifierAdjustingClassVisitor.typeAdjustments
A list of type modifier adjustments to apply.private final List
<ModifierAdjustment.Adjustment<TypeDescription>> ModifierAdjustment.typeAdjustments
A list of adjustments to apply to the instrumented type.Methods in net.bytebuddy.asm that return TypeDescriptionModifier and TypeMethodDescriptionAdvice.Dispatcher.Inactive.getAdviceType()
The type that is produced as a result of executing this advice method.Advice.Dispatcher.Inlining.getAdviceType()
The type that is produced as a result of executing this advice method.MemberSubstitution.Target.ForMember.getReceiverType()
Returns the actual (sub-)type on which the member is accessed.Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Advice.Dispatcher.Inactive.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Advice.Dispatcher.Resolved.ForMethodExit.getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.protected TypeDescription
Advice.AssignReturned.ForArray.getType()
protected TypeDescription
Advice.AssignReturned.ForScalar.getType()
protected abstract TypeDescription
Advice.AssignReturned.getType()
Returns the assigned type that is handled by any handler.Methods in net.bytebuddy.asm that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionAdvice.ArgumentHandler.ForInstrumentedMethod.Default.getNamedTypes()
Returns a list of the named types in their declared order.Advice.ArgumentHandler.ForInstrumentedMethod.getNamedTypes()
Returns a list of the named types in their declared order.Methods in net.bytebuddy.asm with parameters of type TypeDescriptionModifier and TypeMethodDescriptionAdvice.Delegator.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.Advice.Delegator.ForDynamicInvocation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.Advice.Delegator.ForRegularInvocation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Materializes an invocation.protected abstract org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Advice.OffsetMapping.ForOrigin.Renderer.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName.apply
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Returns a string representation for this renderer.void
Advice.Delegator.assertVisibility
(TypeDescription instrumentedType) Asserts the visibility of the delegation target.void
Advice.Delegator.ForDynamicInvocation.assertVisibility
(TypeDescription instrumentedType) Asserts the visibility of the delegation target.void
Advice.Delegator.ForRegularInvocation.assertVisibility
(TypeDescription instrumentedType) Asserts the visibility of the delegation target.Advice.Dispatcher.Delegating.Resolved.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inactive.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.Dispatcher.Resolved.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.<T extends Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping.bind
(Class<T> type, TypeDescription value) Binds the supplied annotation to the supplied type constant.MemberSubstitution.Replacement.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants) Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.ForDynamicInvocation.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForDynamicInvocation.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForDynamicInvocation.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants) Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.ForElementMatchers.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForElementMatchers.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForElementMatchers.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants) Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.ForFirstBinding.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForFirstBinding.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.ForFirstBinding.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants) Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Replacement.NoOp.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.NoOp.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType) Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.NoOp.bind
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants) Binds this replacement for a dynamic method invocation that was discovered.MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind
(Class<T> type, TypeDescription value) Binds the supplied annotation to the supplied type constant.<T extends Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping.bindLambda
(Class<T> type, MethodDescription.InDefinedShape methodDescription, TypeDescription functionalInterface) 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, MethodDescription.InDefinedShape methodDescription, TypeDescription functionalInterface) 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.protected abstract int
Advice.StackMapFrameHandler.Default.TranslationMode.copy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object[] localVariable, Object[] translated) Copies the fixed parameters of the instrumented method onto the operand stack.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.private org.objectweb.asm.MethodVisitor
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.doApply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Applies a resolution for a given instrumented method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.private Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.doResolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler) Binds this dispatcher for resolution to a specific method.protected org.objectweb.asm.MethodVisitor
Advice.doWrap
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, int writerFlags, int readerFlags) Wraps the method visitor to implement this advice.protected abstract FieldLocator
Advice.OffsetMapping.ForField.Unresolved.fieldLocator
(TypeDescription instrumentedType) Returns a field locator for this instance.protected FieldLocator
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType.fieldLocator
(TypeDescription instrumentedType) protected FieldLocator
Advice.OffsetMapping.ForField.Unresolved.WithImplicitType.fieldLocator
(TypeDescription instrumentedType) protected abstract FieldLocator
Advice.OffsetMapping.ForFieldHandle.Unresolved.fieldLocator
(TypeDescription instrumentedType) Returns a field locator for this instance.protected FieldLocator
Advice.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.fieldLocator
(TypeDescription instrumentedType) protected FieldLocator
Advice.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType.fieldLocator
(TypeDescription instrumentedType) protected abstract FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.fieldLocator
(TypeDescription instrumentedType) Creates a field locator for the instrumented type.protected FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType.fieldLocator
(TypeDescription instrumentedType) protected FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithImplicitType.fieldLocator
(TypeDescription instrumentedType) protected abstract FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.fieldLocator
(TypeDescription instrumentedType) Resolves a field locator for the instrumented type.protected FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.fieldLocator
(TypeDescription instrumentedType) protected FieldLocator
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType.fieldLocator
(TypeDescription instrumentedType) protected abstract boolean
Advice.StackMapFrameHandler.Default.TranslationMode.isPossibleThisFrameValue
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object frame) Checks if a variable value in a stack map frame is a legal value for describing athis
reference.Advice.AssignReturned.Factory.make
(List<? extends AnnotationDescription> annotations, TypeDescription returnType, boolean exit) Creates a post processor for a given advice method.Advice.AssignReturned.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends T> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.Handler.Factory.Simple.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends S> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToAllArguments.Handler.Factory.make
(TypeDescription typeDescription, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToAllArguments> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToArguments.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToArguments> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToFields.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToFields> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToReturned.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToReturned> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToThis.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToThis> annotation) Resolves a list of handlers for this factory.Advice.AssignReturned.ToThrown.Handler.Factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToThrown> annotation) Resolves a list of handlers for this factory.Advice.PostProcessor.Factory.Compound.make
(List<? extends AnnotationDescription> annotations, TypeDescription returnType, boolean exit) Creates a post processor for a given advice method.Advice.PostProcessor.Factory.make
(List<? extends AnnotationDescription> annotations, TypeDescription returnType, boolean exit) Creates a post processor for a given advice method.Advice.PostProcessor.NoOp.make
(List<? extends AnnotationDescription> annotations, TypeDescription returnType, boolean exit) Creates a post processor for a given advice method.MemberSubstitution.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.Chain.Step.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.Simple.make
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step 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.protected static Advice.Dispatcher.RelocationHandler
Advice.Dispatcher.RelocationHandler.ForType.of
(TypeDescription typeDescription, int index, TypeDefinition returnedType) Resolves a relocation handler that is triggered if the checked instance is of a given type.protected static Advice.Dispatcher.SuppressionHandler
Advice.Dispatcher.SuppressionHandler.Suppressing.of
(TypeDescription suppressedType) Resolves an appropriate suppression handler.static Advice.OffsetMapping.Target
Advice.OffsetMapping.Target.ForStackManipulation.of
(TypeDescription typeDescription) Creates a target for an offset mapping for a type constant.protected static Advice.StackMapFrameHandler.ForInstrumentedMethod
Advice.StackMapFrameHandler.Default.of
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean exitAdvice, boolean copyArguments, ClassFileVersion classFileVersion, int writerFlags, int readerFlags) Creates an appropriate stack map frame handler for an instrumented method.Advice.AssignReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.AssignReturned.ToAllArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToArguments.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToFields.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToReturned.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThis.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.AssignReturned.ToThrown.Handler.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, TypeDescription type, StackManipulation value) Resolves this handler.Advice.BootstrapArgumentResolver.ForDefaultValues.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.Advice.BootstrapArgumentResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the constants that are provided as arguments to the bootstrap methods.protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) protected abstract Advice.Dispatcher.Bound
Advice.Dispatcher.Delegating.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Advice.ExceptionHandler.resolve
(MethodDescription instrumentedMethod, TypeDescription instrumentedType) Resolves a stack manipulation to apply.Advice.ExceptionHandler.Simple.resolve
(MethodDescription instrumentedMethod, TypeDescription instrumentedType) Resolves a stack manipulation to apply.Advice.OffsetMapping.ForAllArguments.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForArgument.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForArgument.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForDynamicConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForEnterValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForExitValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected abstract FieldDescription
Advice.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the field being bound.Advice.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected FieldDescription
Advice.OffsetMapping.ForField.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
Advice.OffsetMapping.ForField.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected abstract FieldDescription
Advice.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the field being bound.Advice.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.protected FieldDescription
Advice.OffsetMapping.ForFieldHandle.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
Advice.OffsetMapping.ForFieldHandle.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Advice.OffsetMapping.ForHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForInstrumentedMethod.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForInstrumentedType.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForLocalValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForOrigin.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForReturnValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForSelfCallHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForSerializedValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForStackManipulation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForStubValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForThisReference.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForThrowable.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.ForUnusedValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.OffsetMapping.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.Advice.PostProcessor.Compound.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.NoOp.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.Advice.PostProcessor.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves this resolver for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves this resolver for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a dispatcher for a given instrumented type and method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected abstract FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected abstract FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) protected FieldDescription
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.protected abstract StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.resolve
(ByteCodeElement.Member member, List<TypeDescription> parameterTypes, TypeDescription returnType) Creates a stack manipulation for the supplied byte code element.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.resolve
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves an offset mapping for a given 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.static Advice
Advice.to
(TypeDescription advice) Implements advice where every matched method is advised by the given type's advisory methods.protected static Advice
Advice.to
(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory) Creates a new advice.static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice) Implements advice where every matched method is advised by the given type's advisory methods.protected static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory, AsmClassReader.Factory classReaderFactory) Creates a new advice.static Advice
Advice.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static Advice
Advice.to
(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription enterAdvice, TypeDescription exitAdvice) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to
(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.private static DynamicType
ClassVisitorFactory.toAttributeWrapper
(DynamicType.Builder<?> builder, Class<?> source, Class<?> target, TypeDescription sourceWrapper, TypeDescription targetWrapper) Creates a wrapper type for anAttribute
to pass attribues along a visitor chain.private static MethodCall.ArgumentLoader.Factory
ClassVisitorFactory.toConvertedParameter
(TypeDescription source, Class<?> target, String method, int offset, boolean virtual) Creates an argument loader for a method parameter that requires conversion.protected abstract Object
Advice.StackMapFrameHandler.Default.Initialization.toFrame
(TypeDescription typeDescription) Initializes a frame value to its frame type.Advice.AssignReturned.Factory.withSuppressed
(TypeDescription exceptionType) Configures this post processor to handle exceptions during assignment with the advice'sAdvice.ExceptionHandler
.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.FieldVisitor
AsmVisitorWrapper.ForDeclaredFields.Entry.wrap
(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, org.objectweb.asm.FieldVisitor fieldVisitor) Wraps a field visitor.org.objectweb.asm.FieldVisitor
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper.wrap
(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, org.objectweb.asm.FieldVisitor fieldVisitor) Wraps a field visitor.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.FieldVisitor
MemberAttributeExtension.ForField.wrap
(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, org.objectweb.asm.FieldVisitor fieldVisitor) Wraps a field visitor.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
.Method parameters in net.bytebuddy.asm with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionTypeReferenceAdjustment.filter
(ElementMatcher<? super TypeDescription> filter) Excludes all matched types from being added as an attribute.protected void
Advice.StackMapFrameHandler.Default.injectFullFrame
(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.Initialization initialization, List<? extends TypeDescription> typesInArray, List<? extends TypeDescription> typesOnStack) Injects a full stack map frame after the instrumented method has completed.void
Advice.StackMapFrameHandler.Default.ForAdvice.injectIntermediateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, List<? extends TypeDescription> stack) Injects a frame that represents the current state.void
Advice.StackMapFrameHandler.ForPostProcessor.injectIntermediateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, List<? extends TypeDescription> stack) Injects a frame that represents the current state.void
Advice.StackMapFrameHandler.NoOp.injectIntermediateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, List<? extends TypeDescription> stack) Injects a frame that represents the current state.protected static Advice.MethodSizeHandler.ForInstrumentedMethod
Advice.MethodSizeHandler.Default.of
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean copyArguments, int writerFlags) Creates a method size handler applicable for the given instrumented method.protected static Advice.StackMapFrameHandler.ForInstrumentedMethod
Advice.StackMapFrameHandler.Default.of
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean exitAdvice, boolean copyArguments, ClassFileVersion classFileVersion, int writerFlags, int readerFlags) Creates an appropriate stack map frame handler for an instrumented method.protected abstract StackManipulation
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.resolve
(ByteCodeElement.Member member, List<TypeDescription> parameterTypes, TypeDescription returnType) Creates a stack manipulation for the supplied byte code element.protected void
Advice.StackMapFrameHandler.Default.translateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, boolean isStatic, MethodDescription.TypeToken typeToken, List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack) Translates a frame.protected void
Advice.StackMapFrameHandler.Default.WithPreservedArguments.translateFrame
(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, boolean isStatic, MethodDescription.TypeToken typeToken, List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, Object[] localVariable, int stackSize, Object[] stack) ModifierAdjustment.withTypeModifiers
(ElementMatcher<? super TypeDescription> matcher, List<? extends ModifierContributor.ForType> modifierContributors) Adjusts an instrumented type's modifiers if it matches the supplied matcher.ModifierAdjustment.withTypeModifiers
(ElementMatcher<? super TypeDescription> matcher, ModifierContributor.ForType... modifierContributor) Adjusts an instrumented type's modifiers if it matches the supplied matcher.Constructors in net.bytebuddy.asm with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
AbstractBase
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, int relocatableIndex, Advice.OffsetMapping.Factory.AdviceType adviceType) Creates a new resolved version of a dispatcher.protected
AdviceMethodInliner
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, AsmClassReader classReader) Creates a new advice method inliner.protected
AdviceMethodWriter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
AdviceVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates a new advice visitor.protected
AssignReturned
(TypeDescription typeDescription, Advice.AssignReturned.ExceptionHandler.Factory exceptionHandlerFactory, boolean exit, boolean skipOnDefaultValue) Creates a new post processor for assigning an advice method's return value.protected
AttributeTranslator
(Class<?> sourceAttribute, Class<?> targetAttribute, TypeDescription sourceWrapper, TypeDescription targetWrapper) Creates a new attribute translator.protected
Bound
(TypeDescription suppressedType, StackManipulation exceptionHandler) Creates a new active, bound suppression handler.protected
CodeTranslationVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, MethodDescription.InDefinedShape adviceMethod, Map<Integer, Advice.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.PostProcessor postProcessor, boolean exit) Creates a new code translation visitor.protected
Default
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new default stack map frame handler.protected
DispatchingVisitor
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Map<String, FieldDescription.InDefinedShape> fields) Creates a new dispatching visitor.protected
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.protected
Enabled
(TypeDescription exceptionType) Creates a factory for an exception handler of the supplied exception type.protected
ExceptionHandler
(StackManipulation stackManipulation, StackManipulation exceptionHandler, TypeDescription exceptionType, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Creates a new exception handler for an assignment.protected
Factory
(Class<T> annotationType, TypeDescription typeDescription, StackManipulation deserialization) Creates a factory for loading a deserialized value.Factory
(Class<T> annotationType, TypeDescription typeDescription) Creates a new factory for binding a type description.protected
ForArray
(TypeDescription typeDescription, Advice.AssignReturned.ExceptionHandler.Factory exceptionHandlerFactory, boolean exit, Collection<List<Advice.AssignReturned.Handler>> handlers) Creates a post processor to assign a returned array value by index.ForDynamicConstant
(String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, String bootstrapName, TypeDescription bootstrapReturnType, List<? extends TypeDescription> bootstrapParameterTypes, List<JavaConstant> arguments, boolean invokedynamic) ForDynamicConstant
(String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, String bootstrapName, TypeDescription bootstrapReturnType, List<? extends TypeDescription> bootstrapParameterTypes, List<JavaConstant> arguments, boolean invokedynamic) Creates an offset mapping for a dynamic constant.protected
ForElementMatcher
(TypeDescription instrumentedType, ElementMatcher<? super FieldDescription> matcher) Creates a new field resolver that locates a field on the receiver type using a matcher.ForFieldAccess
(TypeDescription instrumentedType, MemberSubstitution.Substitution.ForFieldAccess.FieldResolver fieldResolver) Creates a new substitution with a field access.protected
ForHandle
(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new offset mapping for a method handle.protected
ForHandle
(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates an offset mapping for a method handle.protected
ForMember
(TypeDescription receiver, ByteCodeElement.Member member, MemberSubstitution.Substitution substitution) Creates a new resolved binding.protected
ForMember
(TypeDescription receiverType, ByteCodeElement.Member member) Creates a new target for a member that is being accessed.protected
ForMethodEnter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodExit
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.ForMethodInvocation
(TypeDescription instrumentedType, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver methodResolver) Creates a new method-resolving substitution.protected
ForScalar
(TypeDescription typeDescription, Advice.AssignReturned.ExceptionHandler.Factory exceptionHandlerFactory, boolean exit, boolean skipOnDefaultValue, Collection<List<Advice.AssignReturned.Handler>> handlers) Creates a post processor to assign a returned scalar value.ForSerializedValue
(TypeDescription.Generic target, TypeDescription typeDescription, StackManipulation deserialization) Creates a new offset mapping for a serialized value.protected
ForType
(TypeDescription typeDescription, int index) Creates a new relocation handler that triggers a relocation if a value is an instance of a given type.protected
Handler
(int index, String name, TypeDescription declaringType, Assigner.Typing typing) Creates a new handler for aAdvice.AssignReturned.ToReturned
annotation.Matching
(TypeDescription instrumentedType, MethodGraph.Compiler methodGraphCompiler, ElementMatcher<? super MethodDescription> matcher) Creates a new matching method resolver.protected
ModifierAdjustingClassVisitor
(org.objectweb.asm.ClassVisitor classVisitor, List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments, TypeDescription instrumentedType, Map<String, FieldDescription.InDefinedShape> fields, Map<String, MethodDescription> methods) Creates a new modifier adjusting visitor.protected
Resolved
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, int relocatableIndex, Advice.Delegator delegator) Creates a new resolved version of a dispatcher.protected
Resolved
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, int relocatableIndex, AsmClassReader classReader) Creates a new resolved version of a dispatcher.protected
Resolved
(MethodDescription.InDefinedShape delegate, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a resolved version of a bootstrap argument resolver.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
Suppressing
(TypeDescription suppressedType) Creates a new suppressing suppression handler.protected
Trivial
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> latentTypes, boolean expandFrames) Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.protected
WithArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new stack map frame handler that expects an argument copy.protected
WithExceptionHandler
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, TypeDescription throwable, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.protected
WithExceptionHandler
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, Map<String, TypeDefinition> uninitializedNamedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, AsmClassReader classReader, TypeDefinition enterType, TypeDescription throwable) Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.protected
WithExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags, TypeDescription throwable) Creates a new advice visitor that captures exception by weaving try-catch blocks around user code.protected
WithExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates an advice visitor that applies exit advice.WithExplicitType
(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, String name, TypeDescription declaringType) Creates an offset mapping for a field with an explicit declaring type.protected
WithExplicitType
(TypeDescription.Generic target, AnnotationDescription.Loadable<Advice.FieldValue> annotation, TypeDescription declaringType) Creates an offset mapping for a field with an explicit declaring type.WithExplicitType
(Advice.OffsetMapping.ForFieldHandle.Access access, String name, TypeDescription declaringType) Creates an offset mapping for a field handle with an explicit declaring type.protected
WithExplicitType
(TypeDescription.Generic target, AnnotationDescription.Loadable<MemberSubstitution.FieldValue> annotation, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type.WithExplicitType
(TypeDescription.Generic target, Assigner.Typing typing, String name, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type.WithExplicitType
(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access, String name, TypeDescription declaringType) Creates an offset mapping for an unresolved field handle with an explicit declaring type.protected
WithoutArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that expects the original frames to be preserved.protected
WithoutExceptionHandling
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, int writerFlags, int readerFlags) Creates a new advice visitor that does not capture exceptions.protected
WithoutExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, int writerFlags, int readerFlags) Creates an advice visitor that does not apply exit advice.protected
WithPreservedArguments
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.Constructor parameters in net.bytebuddy.asm with type arguments of type TypeDescriptionModifierConstructorDescriptionprotected
AdviceVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates a new advice visitor.protected
Default
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default meta data handler that recomputes the space requirements of an instrumented method.protected
Default
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new default stack map frame handler.protected
ForAdvice
(MethodDescription.TypeToken typeToken, List<? extends TypeDescription> startTypes, List<? extends TypeDescription> intermediateTypes, List<? extends TypeDescription> endTypes, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, Advice.StackMapFrameHandler.Default.Initialization initialization) Creates a new metadata handler for an advice method.ForDynamicConstant
(String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, String bootstrapName, TypeDescription bootstrapReturnType, List<? extends TypeDescription> bootstrapParameterTypes, List<JavaConstant> arguments, boolean invokedynamic) ForDynamicConstant
(String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, String bootstrapName, TypeDescription bootstrapReturnType, List<? extends TypeDescription> bootstrapParameterTypes, List<JavaConstant> arguments, boolean invokedynamic) Creates an offset mapping for a dynamic constant.protected
ForHandle
(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new offset mapping for a method handle.protected
ForHandle
(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates an offset mapping for a method handle.protected
ModifierAdjustingClassVisitor
(org.objectweb.asm.ClassVisitor classVisitor, List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments, TypeDescription instrumentedType, Map<String, FieldDescription.InDefinedShape> fields, Map<String, MethodDescription> methods) Creates a new modifier adjusting visitor.protected
ModifierAdjustment
(List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments) Creates a new modifier adjustment.protected
Trivial
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> latentTypes, boolean expandFrames) Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.protected
TypeReferenceAdjustment
(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter) Creates a type reference adjustment.protected
TypeReferenceClassVisitor
(org.objectweb.asm.ClassVisitor classVisitor, boolean strict, ElementMatcher<? super TypeDescription> filter, TypePool typePool) Creates a type reference class visitor.protected
WithArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames) Creates a new stack map frame handler that expects an argument copy.protected
WithCopiedArguments
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default method size handler that expects the original arguments to be copied.protected
WithExitAdvice
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, StackManipulation exceptionHandler, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Advice.Dispatcher.Resolved.ForMethodEnter methodEnter, Advice.Dispatcher.Resolved.ForMethodExit methodExit, List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags) Creates an advice visitor that applies exit advice.protected
WithoutArgumentCopy
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that expects the original frames to be preserved.protected
WithPreservedArguments
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> latentTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame) Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.protected
WithRetainedArguments
(MethodDescription instrumentedMethod, List<? extends TypeDescription> initialTypes, List<? extends TypeDescription> preMethodTypes, List<? extends TypeDescription> postMethodTypes) Creates a new default method size handler that expects that the original arguments are retained. -
Uses of TypeDescription in net.bytebuddy.build
Fields in net.bytebuddy.build declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor.instrumentedType
The instrumented type.private final TypeDescription
AccessControllerPlugin.Initializer.instrumentedType
The instrumented type.private final TypeDescription
RepeatedAnnotationPlugin.RepeatedAnnotationAppender.target
The repeated type.private final TypeDescription
Plugin.Engine.Default.Preprocessor.Ignored.typeDescription
A description of the ignored type.private final TypeDescription
Plugin.Engine.Default.Preprocessor.Resolved.typeDescription
A description of the resolved type.private final TypeDescription
Plugin.Engine.Dispatcher.Materializable.ForFailedElement.typeDescription
The type description for the represented type.Fields in net.bytebuddy.build with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final Map
<TypeDescription, List<Throwable>> Plugin.Engine.Dispatcher.ForParallelTransformation.failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private final Map
<TypeDescription, List<Throwable>> Plugin.Engine.Dispatcher.ForSerialTransformation.failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private final Map
<TypeDescription, List<Throwable>> Plugin.Engine.Summary.failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private final ElementMatcher.Junction
<? super TypeDescription> Plugin.Engine.Default.ignoredTypeMatcher
A matcher for types to exclude from transformation.private final ElementMatcher
<? super TypeDescription> Plugin.ForElementMatcher.matcher
The element matcher to apply.private final ElementMatcher
<? super TypeDescription> RenamingPlugin.matcher
A matcher that determines what types to consider for renaming.private final List
<TypeDescription> Plugin.Engine.Dispatcher.ForParallelTransformation.transformed
A list of all types that are transformed.private final List
<TypeDescription> Plugin.Engine.Dispatcher.ForSerialTransformation.transformed
A list of all types that are transformed.private final List
<TypeDescription> Plugin.Engine.Summary.transformed
A list of all types that were transformed.Methods in net.bytebuddy.build that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionPlugin.Engine.Summary.getFailed()
Returns a mapping of all types that failed during transformation to the exceptions that explain the failure.Plugin.Engine.Summary.getTransformed()
Returns a list of all types that were transformed.Map
<TypeDescription, byte[]> Plugin.WithInitialization.initialize
(ClassFileLocator classFileLocator) Returns a mapping of classes that should be created before discovering any types.Methods in net.bytebuddy.build with parameters of type TypeDescriptionModifier and TypeMethodDescriptionAccessControllerPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.CachedReturnPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.DispatcherAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.HashCodeAndEqualsPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.NoOp.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RenamingPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RepeatedAnnotationPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.void
RepeatedAnnotationPlugin.RepeatedAnnotationAppender.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.ToStringPlugin.apply
(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.Engine.TypeStrategy.builder
(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.Plugin.Engine.TypeStrategy.ForEntryPoint.builder
(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.protected abstract EqualsMethod
HashCodeAndEqualsPlugin.Enhance.InvokeSuper.equalsMethod
(TypeDescription instrumentedType) Resolves the equals method to use.AndroidDescriptor.getTypeScope
(TypeDescription typeDescription) Provides the scope of the passedTypeDescription
instance.AndroidDescriptor.Trivial.getTypeScope
(TypeDescription typeDescription) Provides the scope of the passedTypeDescription
instance.protected abstract HashCodeMethod
HashCodeAndEqualsPlugin.Enhance.InvokeSuper.hashCodeMethod
(TypeDescription instrumentedType, boolean typeHash, boolean subclassEquality) Resolves the hash code method to use.DispatcherAnnotationPlugin.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.HashCodeAndEqualsPlugin.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.boolean
HashCodeAndEqualsPlugin.matches
(TypeDescription target) Matches a target against this element matcher.boolean
Plugin.ForElementMatcher.matches
(TypeDescription target) Matches a target against this element matcher.boolean
Plugin.NoOp.matches
(TypeDescription target) Matches a target against this element matcher.boolean
RenamingPlugin.matches
(TypeDescription target) Matches a target against this element matcher.boolean
ToStringPlugin.matches
(TypeDescription target) Matches a target against this element matcher.void
Plugin.Engine.Listener.Adapter.onComplete
(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.void
Plugin.Engine.Listener.Compound.onComplete
(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.void
Plugin.Engine.Listener.NoOp.onComplete
(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.void
Plugin.Engine.Listener.onComplete
(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.void
Plugin.Engine.Listener.StreamWriting.onComplete
(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.void
Plugin.Engine.ErrorHandler.Compound.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.ErrorHandler.Compound.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.ErrorHandler.Enforcing.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.ErrorHandler.Enforcing.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.ErrorHandler.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.ErrorHandler.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.Adapter.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.Listener.Adapter.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.Compound.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.Listener.Compound.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.ForErrorHandler.onError
(TypeDescription typeDescription, List<Throwable> throwables) void
Plugin.Engine.Listener.ForErrorHandler.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
Plugin.Engine.Listener.NoOp.onError
(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
Plugin.Engine.Listener.NoOp.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.StreamWriting.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.WithErrorsOnly.onError
(TypeDescription typeDescription, List<Throwable> throwables) void
Plugin.Engine.Listener.WithErrorsOnly.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
Plugin.Engine.Listener.WithTransformationsOnly.onError
(TypeDescription typeDescription, List<Throwable> throwables) void
Plugin.Engine.Listener.WithTransformationsOnly.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
Plugin.Engine.Listener.Adapter.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.Adapter.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.Compound.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.Compound.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.NoOp.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.NoOp.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.StreamWriting.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.ErrorHandler.Compound.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.ErrorHandler.Enforcing.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.ErrorHandler.Failing.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.ErrorHandler.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.Listener.Adapter.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.Listener.Compound.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.Listener.ForErrorHandler.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) void
Plugin.Engine.Listener.NoOp.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.Engine.Listener.StreamWriting.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.void
Plugin.WithPreprocessor.onPreprocess
(TypeDescription typeDescription, ClassFileLocator classFileLocator) Invoked upon the discovery of a type that is not explicitly ignored.void
Plugin.Engine.Listener.Adapter.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.Adapter.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.Compound.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.Compound.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.NoOp.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.NoOp.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.StreamWriting.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) void
Plugin.Engine.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, Plugin plugin) CachedReturnPlugin.CacheFieldOffsetMapping.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort) Resolves an offset mapping to a given target offset.EntryPoint.transform
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.EntryPoint.Unvalidated.transform
(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.org.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
.Method parameters in net.bytebuddy.build with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionprivate static void
Plugin.Engine.Target.ForFolder.doStore
(File folder, Map<TypeDescription, byte[]> binaryRepresentations) Stores binary representations to a folder.Plugin.Engine.Default.ignore
(ElementMatcher<? super TypeDescription> matcher) Ignores all types that are matched by this matcher or any previously registered ignore matcher.Plugin.Engine.ignore
(ElementMatcher<? super TypeDescription> matcher) Ignores all types that are matched by this matcher or any previously registered ignore matcher.Plugin.Engine.Dispatcher.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForParallelTransformation.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForParallelTransformation.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForSerialTransformation.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.Plugin.Engine.Dispatcher.ForSerialTransformation.Factory.make
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.void
Plugin.Engine.Dispatcher.Materializable.ForFailedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForFailedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForRetainedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForRetainedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForTransformedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForTransformedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.void
Plugin.Engine.Dispatcher.Materializable.materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.static Plugin.Engine.Source
Plugin.Engine.Source.InMemory.ofTypes
(Map<TypeDescription, byte[]> binaryRepresentations) Represents a map of type names to their binary representation as an in-memory source.static Plugin.Engine.Source
Plugin.Engine.Source.InMemory.ofTypes
(Map<TypeDescription, byte[]> binaryRepresentations, Map<ClassFileVersion, Map<TypeDescription, byte[]>> versionedBinaryRepresentations) Represents a map of type names to their binary representation as an in-memory source.void
Plugin.Engine.ErrorHandler.Compound.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.ErrorHandler.Enforcing.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.ErrorHandler.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.Adapter.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.Compound.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.ForErrorHandler.onError
(Map<TypeDescription, List<Throwable>> throwables) void
Plugin.Engine.Listener.NoOp.onError
(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.WithErrorsOnly.onError
(Map<TypeDescription, List<Throwable>> throwables) void
Plugin.Engine.Listener.WithTransformationsOnly.onError
(Map<TypeDescription, List<Throwable>> throwables) void
Plugin.Engine.Target.Discarding.store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Discarding.store
(ClassFileVersion classFileVersion, Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.ForFolder.store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.ForFolder.store
(ClassFileVersion classFileVersion, Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.InMemory.store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.InMemory.store
(ClassFileVersion classFileVersion, Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink.ForJarOutputStream.store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink.ForJarOutputStream.store
(ClassFileVersion classFileVersion, Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink.store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink.store
(ClassFileVersion classFileVersion, Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.Constructors in net.bytebuddy.build with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
ForFailedElement
(Plugin.Engine.Source.Element element, TypeDescription typeDescription, List<Throwable> errored) Creates a new materializable for an element that failed to be transformed.private
Ignored
(TypeDescription typeDescription) A materializable for an ignored element.protected
Initializer
(TypeDescription instrumentedType, String name) Creates a new initializer.protected
PrefixingMethodVisitor
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription.SignatureToken token, String name, int offset, Implementation.Context.FrameGeneration frameGeneration) Creates a new prefixing method visitor.protected
Creates a new appender.private
Resolved
(ClassFileVersion classFileVersion, TypeDescription typeDescription) Creates a new resolved materializable.protected
WithoutProperty
(TypeDescription instrumentedType, String name) Creates an initializer that always uses the access controller if it is available.protected
WithProperty
(TypeDescription instrumentedType, String name, String property) Creates an initializer that uses a property to determine if the access controller should be actually used even if it is available.Constructor parameters in net.bytebuddy.build with type arguments of type TypeDescriptionModifierConstructorDescriptionprotected
Default
(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher) Creates a new default plugin engine.protected
ForElementMatcher
(ElementMatcher<? super TypeDescription> matcher) Creates a new plugin that matches types using an element matcher.protected
ForParallelTransformation
(Executor executor, Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher that applies transformations in parallel.protected
ForParallelTransformation
(Executor executor, Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher that applies transformations in parallel.protected
ForSerialTransformation
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a dispatcher for a serial transformation.protected
ForSerialTransformation
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a dispatcher for a serial transformation.RenamingPlugin
(RenamingPlugin.Renaming renaming, ElementMatcher<? super TypeDescription> matcher) Creates a renaming plugin for the given renaming and type matcher.Summary
(List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new summary.Summary
(List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new summary.protected
WithThrowawayExecutorService
(ExecutorService executorService, Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher that applies transformations in parallel and that closes the supplies executor service.protected
WithThrowawayExecutorService
(ExecutorService executorService, Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher that applies transformations in parallel and that closes the supplies executor service. -
Uses of TypeDescription in net.bytebuddy.build.maven
Methods in net.bytebuddy.build.maven with parameters of type TypeDescriptionModifier and TypeMethodDescriptionvoid
ByteBuddyMojo.TransformationLogger.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
ByteBuddyMojo.TransformationLogger.onLiveInitializer
(TypeDescription typeDescription, TypeDescription definingType) void
ByteBuddyMojo.TransformationLogger.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Method parameters in net.bytebuddy.build.maven with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionvoid
ByteBuddyMojo.TransformationLogger.onError
(Map<TypeDescription, List<Throwable>> throwables) -
Uses of TypeDescription in net.bytebuddy.description
Methods in net.bytebuddy.description with parameters of type TypeDescriptionModifier and TypeMethodDescriptionboolean
ByteCodeElement.isAccessibleTo
(TypeDescription typeDescription) Checks if this element is accessible from a given type.boolean
ByteCodeElement.isVisibleTo
(TypeDescription typeDescription) Checks if this element is visible from a given type.TypeVariableSource.Visitor.NoOp.onType
(TypeDescription typeDescription) Applies the visitor on a type.TypeVariableSource.Visitor.onType
(TypeDescription typeDescription) Applies the visitor on a type.Method parameters in net.bytebuddy.description with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionByteCodeElement.TypeDependant.asToken
(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant. -
Uses of TypeDescription in net.bytebuddy.description.annotation
Fields in net.bytebuddy.description.annotation declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
AnnotationDescription.Builder.annotationType
The annotation type.private final TypeDescription
AnnotationDescription.Latent.annotationType
The type of the annotation.private final TypeDescription
AnnotationValue.ForDescriptionArray.componentType
A description of the component type when it is loaded.private final TypeDescription
AnnotationValue.ForEnumerationDescription.WithUnknownConstant.typeDescription
A description of the enumeration type.private final TypeDescription
AnnotationValue.ForIncompatibleType.typeDescription
A description of the type that does not fulfil an expectation.private final TypeDescription
AnnotationValue.ForMissingValue.typeDescription
The annotation type for which a property is not defined.private final TypeDescription
AnnotationValue.ForTypeDescription.typeDescription
A description of the represented type.Fields in net.bytebuddy.description.annotation with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate static final Map
<TypeDescription, Class<?>> AnnotationValue.ForTypeDescription.PRIMITIVE_TYPES
A map of primitive types to their loaded representation.Methods in net.bytebuddy.description.annotation that return TypeDescriptionModifier and TypeMethodDescriptionAnnotationDescription.ForLoadedAnnotation.getAnnotationType()
Returns a description of the annotation type of this annotation.AnnotationDescription.getAnnotationType()
Returns a description of the annotation type of this annotation.AnnotationDescription.Latent.getAnnotationType()
Returns a description of the annotation type of this annotation.AnnotationDescription.Latent.Loadable.getAnnotationType()
Returns a description of the annotation type of this annotation.AnnotationValue.ForTypeDescription.resolve()
Resolves the unloaded value of this annotation.Methods in net.bytebuddy.description.annotation that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionAnnotationValue.ForTypeDescription.filter
(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition) Filters this annotation value as a valid value of the provided property.static <V extends Class<V>>
AnnotationValue<TypeDescription, V> AnnotationValue.ForTypeDescription.of
(TypeDescription typeDescription) Creates an annotation value for representing the given type.Methods in net.bytebuddy.description.annotation with parameters of type TypeDescriptionModifier and TypeMethodDescriptionvoid
AnnotationDescription.RenderingDispatcher.appendType
(StringBuilder toString, TypeDescription typeDescription) Appends the type name of the annotation being rendered.AnnotationDescription.Builder.define
(String property, TypeDescription typeDescription) Returns a builder with the additional class property.AnnotationDescription.Builder.define
(String property, TypeDescription enumerationType, String value) Returns a builder with the additional enumeration property.AnnotationDescription.Builder.defineAnnotationArray
(String property, TypeDescription annotationType, AnnotationDescription... annotationDescription) Returns a builder with the additional annotation array property.AnnotationDescription.Builder.defineEnumerationArray
(String property, TypeDescription enumerationType, String... value) Returns a builder with the additional enumeration array property.AnnotationDescription.Builder.defineEnumerationArray
(String property, TypeDescription enumerationType, EnumerationDescription... value) Returns a builder with the additional enumeration array property.AnnotationDescription.Builder.defineTypeArray
(String property, TypeDescription... typeDescription) Returns a builder with the additional type array property.boolean
AnnotationList.AbstractBase.isAnnotationPresent
(TypeDescription annotationType) Checks if this list contains an annotation of the given type.boolean
AnnotationList.Empty.isAnnotationPresent
(TypeDescription annotationType) Checks if this list contains an annotation of the given type.boolean
AnnotationList.isAnnotationPresent
(TypeDescription annotationType) Checks if this list contains an annotation of the given type.static <V extends Annotation>
AnnotationValue<AnnotationDescription, V> AnnotationValue.ForAnnotationDescription.of
(TypeDescription annotationType, Map<String, ? extends AnnotationValue<?, ?>> annotationValues) Creates an annotation value instance for describing the given annotation type and values.static AnnotationValue
<TypeDescription[], Class<?>[]> AnnotationValue.ForDescriptionArray.of
(TypeDescription[] typeDescription) Creates a new complex array of annotation descriptions.static <W extends Annotation>
AnnotationValue<AnnotationDescription[], W[]> AnnotationValue.ForDescriptionArray.of
(TypeDescription annotationType, AnnotationDescription[] annotationDescription) Creates a new complex array of annotation descriptions.static <W extends Enum<W>>
AnnotationValue<EnumerationDescription[], W[]> AnnotationValue.ForDescriptionArray.of
(TypeDescription enumerationType, EnumerationDescription[] enumerationDescription) Creates a new complex array of enumeration descriptions.static <V extends Class<V>>
AnnotationValue<TypeDescription, V> AnnotationValue.ForTypeDescription.of
(TypeDescription typeDescription) Creates an annotation value for representing the given type.AnnotationDescription.Builder.ofType
(TypeDescription annotationType) Creates a builder for creating an annotation of the given type.AnnotationList.AbstractBase.ofType
(TypeDescription annotationType) Finds the first annotation of the given type and returns it.AnnotationList.Empty.ofType
(TypeDescription annotationType) Finds the first annotation of the given type and returns it.AnnotationList.ofType
(TypeDescription annotationType) Finds the first annotation of the given type and returns it.abstract String
AnnotationValue.RenderingDispatcher.toSourceString
(TypeDescription value) Represents the suppliedTypeDescription
value as aString
.Method parameters in net.bytebuddy.description.annotation with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionAnnotationList.AbstractBase.inherited
(Set<? extends TypeDescription> ignoredTypes) Returns only annotations that are marked asInherited
as long as they are not contained by the set of ignored annotation types.AnnotationList.Empty.inherited
(Set<? extends TypeDescription> ignoredTypes) Returns only annotations that are marked asInherited
as long as they are not contained by the set of ignored annotation types.AnnotationList.inherited
(Set<? extends TypeDescription> ignoredTypes) Returns only annotations that are marked asInherited
as long as they are not contained by the set of ignored annotation types.Constructors in net.bytebuddy.description.annotation with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
Builder
(TypeDescription annotationType, Map<String, AnnotationValue<?, ?>> annotationValues) Creates a builder for an annotation description.ForDescriptionArray
(Class<?> unloadedComponentType, TypeDescription componentType, List<? extends AnnotationValue<?, ?>> values) Creates a new complex array.ForIncompatibleType
(TypeDescription typeDescription) Creates a new description for an annotation value that does not fulfil expectations.ForMissingValue
(TypeDescription typeDescription, String property) Creates a new missing annotation value.ForTypeDescription
(TypeDescription typeDescription) Creates a new annotation value that represents a type.protected
Latent
(TypeDescription annotationType, Map<String, ? extends AnnotationValue<?, ?>> annotationValues) Creates a new latent annotation description.WithUnknownConstant
(TypeDescription typeDescription, String value) Creates a property description for an enumeration value that does not exist for the enumeration type. -
Uses of TypeDescription in net.bytebuddy.description.enumeration
Fields in net.bytebuddy.description.enumeration declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
EnumerationDescription.Latent.enumerationType
The type of the enumeration.Methods in net.bytebuddy.description.enumeration that return TypeDescriptionModifier and TypeMethodDescriptionEnumerationDescription.ForLoadedEnumeration.getEnumerationType()
Returns the type of this enumeration.EnumerationDescription.getEnumerationType()
Returns the type of this enumeration.EnumerationDescription.Latent.getEnumerationType()
Returns the type of this enumeration.Constructors in net.bytebuddy.description.enumeration with parameters of type TypeDescriptionModifierConstructorDescriptionLatent
(TypeDescription enumerationType, String value) Creates a latent description of an enumeration value. -
Uses of TypeDescription in net.bytebuddy.description.field
Fields in net.bytebuddy.description.field declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
FieldDescription.Latent.declaringType
The type for which this field is defined.private final TypeDescription
FieldList.ForTokens.declaringType
The declaring type of the represented fields.private final TypeDescription
FieldDescription.SignatureToken.type
The field's raw type.Methods in net.bytebuddy.description.field that return TypeDescriptionModifier and TypeMethodDescriptionFieldDescription.ForLoadedField.getDeclaringType()
Returns the declaring type of this instance.FieldDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.FieldDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.FieldDescription.SignatureToken.getType()
Returns the type of the represented field.Methods in net.bytebuddy.description.field with parameters of type TypeDescriptionModifier and TypeMethodDescriptionFieldDescription.Token.asSignatureToken
(TypeDescription declaringType) Creates a signature token that represents the method that is represented by this token.boolean
FieldDescription.AbstractBase.isAccessibleTo
(TypeDescription typeDescription) Checks if this element is accessible from a given type.boolean
FieldDescription.AbstractBase.isVisibleTo
(TypeDescription typeDescription) Checks if this element is visible from a given type.Method parameters in net.bytebuddy.description.field with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionFieldDescription.AbstractBase.asToken
(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.FieldList.AbstractBase.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.FieldList.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.FieldList.Empty.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.Constructors in net.bytebuddy.description.field with parameters of type TypeDescriptionModifierConstructorDescriptionForTokens
(TypeDescription declaringType, List<? extends FieldDescription.Token> tokens) Creates a new field list from a list of field tokens.ForTokens
(TypeDescription declaringType, FieldDescription.Token... token) Creates a new field list from a list of field tokens.Latent
(TypeDescription declaringType, String name, int modifiers, TypeDescription.Generic fieldType, List<? extends AnnotationDescription> declaredAnnotations) Creates a new latent field description.Latent
(TypeDescription declaringType, FieldDescription.Token token) Creates a new latent field description.SignatureToken
(String name, TypeDescription type) Creates a new signature token. -
Uses of TypeDescription in net.bytebuddy.description.method
Fields in net.bytebuddy.description.method declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
MethodDescription.Latent.declaringType
The type that is declaring this method.private final TypeDescription
MethodList.ForTokens.declaringType
The method's declaring type.private final TypeDescription
MethodDescription.SignatureToken.returnType
The represented method's raw return type.private final TypeDescription
MethodDescription.TypeToken.returnType
The represented method's raw return type.private final TypeDescription
MethodDescription.Latent.TypeInitializer.typeDescription
The type for which the type initializer should be represented.Fields in net.bytebuddy.description.method with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<? extends TypeDescription> MethodDescription.SignatureToken.parameterTypes
The represented method's raw parameter types.private final List
<? extends TypeDescription> MethodDescription.TypeToken.parameterTypes
The represented method's raw parameter types.Methods in net.bytebuddy.description.method that return TypeDescriptionModifier and TypeMethodDescriptionMethodDescription.ForLoadedConstructor.getDeclaringType()
Returns the declaring type of this instance.MethodDescription.ForLoadedMethod.getDeclaringType()
Returns the declaring type of this instance.MethodDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.MethodDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.MethodDescription.Latent.TypeInitializer.getDeclaringType()
Returns the declaring type of this instance.MethodDescription.SignatureToken.getReturnType()
Returns this token's return type.MethodDescription.TypeToken.getReturnType()
Returns this token's return type.Methods in net.bytebuddy.description.method that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionMethodDescription.SignatureToken.getParameterTypes()
Returns this token's parameter types.MethodDescription.TypeToken.getParameterTypes()
Returns this token's parameter types.Methods in net.bytebuddy.description.method with parameters of type TypeDescriptionModifier and TypeMethodDescriptionMethodDescription.Token.asSignatureToken
(TypeDescription declaringType) Creates a signature token that represents the method that is represented by this token.MethodList.AbstractBase.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.Empty.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.boolean
MethodDescription.AbstractBase.isAccessibleTo
(TypeDescription typeDescription) Checks if this element is accessible from a given type.private static boolean
MethodDescription.AbstractBase.isAnnotationType
(TypeDescription annotationType, AnnotationDescription... annotationDescription) Checks if the supplied enumeration descriptions describe the correct annotation type.private boolean
MethodDescription.AbstractBase.isBootstrap
(TypeDescription bootstrapped) Checks if this method is a bootstrap method while expecting the supplied type as a type representation.private static boolean
MethodDescription.AbstractBase.isEnumerationType
(TypeDescription enumerationType, EnumerationDescription... enumerationDescription) Checks if the supplied enumeration descriptions describe the correct enumeration type.boolean
MethodDescription.AbstractBase.isInvokableOn
(TypeDescription typeDescription) Asserts if this method is invokable on an instance of the given type, i.e.boolean
MethodDescription.isInvokableOn
(TypeDescription typeDescription) Asserts if this method is invokable on an instance of the given type, i.e.boolean
MethodDescription.AbstractBase.isSpecializableFor
(TypeDescription targetType) Checks if this method can be called using theINVOKESPECIAL
for a given type.boolean
MethodDescription.isSpecializableFor
(TypeDescription typeDescription) Checks if this method can be called using theINVOKESPECIAL
for a given type.boolean
MethodDescription.AbstractBase.isVisibleTo
(TypeDescription typeDescription) Checks if this element is visible from a given type.Method parameters in net.bytebuddy.description.method with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionMethodList.AbstractBase.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.Empty.asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodDescription.AbstractBase.asToken
(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.ParameterDescription.AbstractBase.asToken
(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.MethodList.AbstractBase.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.MethodList.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.MethodList.Empty.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.ParameterList.AbstractBase.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.ParameterList.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.ParameterList.Empty.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.Constructors in net.bytebuddy.description.method with parameters of type TypeDescriptionModifierConstructorDescriptionForTokens
(TypeDescription declaringType, List<? extends MethodDescription.Token> tokens) Creates a new list of method descriptions for a list of detached tokens.ForTokens
(TypeDescription declaringType, MethodDescription.Token... token) Creates a new list of method descriptions for a list of detached tokens.Latent
(TypeDescription declaringType, String internalName, int modifiers, List<? extends TypeVariableToken> typeVariables, TypeDescription.Generic returnType, List<? extends ParameterDescription.Token> parameterTokens, List<? extends TypeDescription.Generic> exceptionTypes, List<? extends AnnotationDescription> declaredAnnotations, AnnotationValue<?, ?> defaultValue, TypeDescription.Generic receiverType) Creates a new latent method description.Latent
(TypeDescription declaringType, MethodDescription.Token token) Creates a new latent method description.SignatureToken
(String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token.SignatureToken
(String name, TypeDescription returnType, TypeDescription... parameterType) Creates a new type token.TypeInitializer
(TypeDescription typeDescription) Creates a new method description representing the type initializer.TypeToken
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token.Constructor parameters in net.bytebuddy.description.method with type arguments of type TypeDescriptionModifierConstructorDescriptionSignatureToken
(String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token.TypeToken
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token. -
Uses of TypeDescription in net.bytebuddy.description.type
Classes in net.bytebuddy.description.type that implement TypeDescriptionModifier and TypeClassDescriptionstatic class
An abstract base implementation of a type description.static class
An adapter implementation of aTypeDescription
that describes any type that is not an array or a primitive type.static class
An implementation of a type description that delegates all properties but the type's name to a delegate.static class
A projection for an array type based on an existingTypeDescription
.static class
A type description implementation that represents a loaded type.static class
A type representation of a package description.static class
A latent type description for a type without methods or fields.static class
A delegating type description that always attempts to load the super types of a delegate type.Fields in net.bytebuddy.description.type declared as TypeDescriptionModifier and TypeFieldDescriptionstatic final TypeDescription
TypeDescription.CLASS
Deprecated.private final TypeDescription
TypeDescription.ArrayProjection.componentType
The base component type which is itself not an array.private final TypeDescription
RecordComponentDescription.Latent.declaringType
The record component's declaring type.private final TypeDescription
TypeDescription.Generic.Visitor.ForRawType.declaringType
The type description that is potentially a raw type.private final TypeDescription
TypeDescription.Generic.Visitor.Reducing.declaringType
The generic type's declaring type.private final TypeDescription
TypeDescription.Generic.Visitor.Substitutor.ForAttachment.declaringType
The declaring type which is filled in forTargetType
.private final TypeDescription
TypeDescription.SuperTypeLoading.delegate
The delegate type description.static final TypeDescription
TypeDescription.OBJECT
Deprecated.UseTypeDescription.ForLoadedType.of(Class)
instead.private final TypeDescription
TypeDescription.Generic.Builder.OfParameterizedType.rawType
The raw base type.private final TypeDescription
TypeDescription.Generic.OfParameterizedType.Latent.rawType
The raw type of the described parameterized type.static final TypeDescription
TypeDescription.STRING
Deprecated.UseTypeDescription.ForLoadedType.of(Class)
instead.static final TypeDescription
TypeDescription.THROWABLE
Deprecated.UseTypeDescription.ForLoadedType.of(Class)
instead.private final TypeDescription
RecordComponentList.ForTokens.typeDescription
The record component's declaring type.private final TypeDescription
TypeDescription.Generic.Builder.OfNonGenericType.typeDescription
The type's erasure.private final TypeDescription
TypeDescription.Generic.OfNonGenericType.ForErasure.typeDescription
The represented type erasure.private final TypeDescription
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.typeDescription
The represented type erasure.private final TypeDescription
TypeDescription.Generic.OfNonGenericType.Latent.typeDescription
The non-generic type's raw type.private final TypeDescription
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure.typeDescription
The represented erasure.private final TypeDescription
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType.typeDescription
The description of the type to which another type is assigned.private final TypeDescription
TypeDescription.Generic.Visitor.Substitutor.ForReplacement.typeDescription
The type description to substitute.private final TypeDescription
TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization.typeDescription
The type description to substitute allTargetType
representations with.static final TypeDescription
TypeDescription.UNDEFINED
Represents any undefined property representing a type description that is instead represented asnull
in order to resemble the Java reflection API which returnsnull
and is intuitive to many Java developers.static final TypeDescription
TypeDescription.VOID
Deprecated.UseTypeDescription.ForLoadedType.of(Class)
instead.Fields in net.bytebuddy.description.type with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate static final Map
<Class<?>, TypeDescription> TypeDescription.ForLoadedType.TYPE_CACHE
A cache of type descriptions for commonly used types to avoid unnecessary allocations.private final List
<? extends TypeDescription> TypeList.Explicit.typeDescriptions
The list of type descriptions this list represents.private final ElementMatcher
<? super TypeDescription> TypeDescription.Generic.Visitor.Substitutor.ForDetachment.typeMatcher
A type matcher for identifying the declaring type.Methods in net.bytebuddy.description.type that return TypeDescriptionModifier and TypeMethodDescriptionTypeDescription.AbstractBase.asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless itsvoid
.TypeDescription.asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless itsvoid
.TypeDefinition.asErasure()
Returns the erasure of this type.TypeDescription.AbstractBase.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.ForLoadedFieldType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.ForLoadedReturnType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.ForLoadedSuperClass.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.OfConstructorParameter.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.OfMethodParameter.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.OfRecordComponent.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass.asErasure()
Returns the erasure of this type.TypeDescription.Generic.LazyProjection.WithResolvedErasure.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfGenericArray.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfNonGenericType.ForErasure.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfNonGenericType.ForLoadedType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfNonGenericType.Latent.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfParameterizedType.ForLoadedType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfParameterizedType.ForReifiedType.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfParameterizedType.Latent.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfTypeVariable.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfTypeVariable.Symbolic.asErasure()
Returns the erasure of this type.TypeDescription.Generic.OfWildcardType.asErasure()
Returns the erasure of this type.TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection.asErasure()
Returns the erasure of this type.TypeList.Generic.OfConstructorExceptionTypes.TypeProjection.asErasure()
Returns the erasure of this type.TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection.asErasure()
Returns the erasure of this type.TypeList.Generic.OfMethodExceptionTypes.TypeProjection.asErasure()
Returns the erasure of this type.TypeDescription.AbstractBase.asUnboxed()
Returns a description of this type that represents this type as an unboxed type for boxing types, unless itsVoid
.TypeDescription.asUnboxed()
Returns a description of this type that represents this type as an unboxed type for boxing types, unless itsVoid
.protected abstract TypeDescription
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.delegate()
Returns the delegate type description to this type instance.TypeList.Explicit.get
(int index) TypeList.ForLoadedTypes.get
(int index) TypeDescription.AbstractBase.OfSimpleType.getComponentType()
Returns the component type of this type.TypeDescription.ArrayProjection.getComponentType()
Returns the component type of this type.TypeDescription.ForLoadedType.getComponentType()
Returns the component type of this type.TypeDescription.getComponentType()
Returns the component type of this type.TypeDescription.SuperTypeLoading.getComponentType()
Returns the component type of this type.RecordComponentDescription.ForLoadedRecordComponent.getDeclaringType()
Returns the declaring type of this instance.RecordComponentDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.RecordComponentDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.ArrayProjection.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.ForLoadedType.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.ForPackageDescription.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.SuperTypeLoading.getDeclaringType()
Returns the declaring type of this instance.TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.ArrayProjection.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.ForLoadedType.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.ForPackageDescription.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.Latent.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.SuperTypeLoading.getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getNestHost()
Returns the nest host of this type.TypeDescription.ArrayProjection.getNestHost()
Returns the nest host of this type.TypeDescription.ForLoadedType.getNestHost()
Returns the nest host of this type.TypeDescription.ForPackageDescription.getNestHost()
Returns the nest host of this type.TypeDescription.getNestHost()
Returns the nest host of this type.TypeDescription.Latent.getNestHost()
Returns the nest host of this type.TypeDescription.SuperTypeLoading.getNestHost()
Returns the nest host of this type.static TypeDescription
TypeDescription.ArrayProjection.of
(TypeDescription componentType) Creates an array projection of an arity of one.static TypeDescription
TypeDescription.ArrayProjection.of
(TypeDescription componentType, int arity) Creates an array projection.static TypeDescription
Returns a new immutable type description for a loaded type.protected static TypeDescription
Resolves a lazy proxy for a loaded type as a type description.TypeDescription.Generic.Visitor.Reducing.onGenericArray
(TypeDescription.Generic genericArray) Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).TypeDescription.Generic.Visitor.Reducing.onNonGenericType
(TypeDescription.Generic typeDescription) Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).TypeDescription.Generic.Visitor.Reducing.onParameterizedType
(TypeDescription.Generic parameterizedType) Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).TypeDescription.Generic.Visitor.Reducing.onTypeVariable
(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).TypeDescription.Generic.Visitor.Reducing.onWildcard
(TypeDescription.Generic wildcard) Visits a wildcard (TypeDefinition.Sort.WILDCARD
).Methods in net.bytebuddy.description.type with parameters of type TypeDescriptionModifier and TypeMethodDescriptionprotected abstract void
TypeDescription.Generic.OfParameterizedType.RenderingDelegate.apply
(StringBuilder stringBuilder, TypeDescription erasure, TypeDescription.Generic ownerType) Applies this rendering delegate.static TypeList.Generic
TypeList.Generic.ForDetachedTypes.attachVariables
(TypeDescription typeDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided type.boolean
PackageDescription.AbstractBase.contains
(TypeDescription typeDescription) Checks if this package contains the provided type.boolean
PackageDescription.contains
(TypeDescription typeDescription) Checks if this package contains the provided type.boolean
TypeDescription.AbstractBase.isAccessibleTo
(TypeDescription typeDescription) Checks if this element is accessible from a given type.private static boolean
TypeDescription.AbstractBase.isAssignable
(TypeDescription sourceType, TypeDescription targetType) Checks if a specific type is assignable to another type where the source type must be a super type of the target type.boolean
TypeDescription.AbstractBase.isAssignableFrom
(TypeDescription typeDescription) Checks if this type is assignable from the type described by this instance, for example forclass Foo
andclass Bar extends Foo
, this method would returntrue
forFoo.class.isAssignableFrom(Bar.class)
.boolean
TypeDescription.ForLoadedType.isAssignableFrom
(TypeDescription typeDescription) boolean
TypeDescription.isAssignableFrom
(TypeDescription typeDescription) Checks if this type is assignable from the type described by this instance, for example forclass Foo
andclass Bar extends Foo
, this method would returntrue
forFoo.class.isAssignableFrom(Bar.class)
.boolean
TypeDescription.AbstractBase.isAssignableTo
(TypeDescription typeDescription) Checks if this type is assignable from the type described by this instance, for example forclass Foo
andclass Bar extends Foo
, this method would returntrue
forBar.class.isAssignableFrom(Foo.class)
.boolean
TypeDescription.ForLoadedType.isAssignableTo
(TypeDescription typeDescription) boolean
TypeDescription.isAssignableTo
(TypeDescription typeDescription) Checks if this type is assignable from the type described by this instance, for example forclass Foo
andclass Bar extends Foo
, this method would returntrue
forBar.class.isAssignableFrom(Foo.class)
.boolean
TypeDescription.AbstractBase.isInHierarchyWith
(TypeDescription typeDescription) Returnstrue
if this type and the supplied type are in a type hierarchy with each other, i.e.boolean
TypeDescription.ForLoadedType.isInHierarchyWith
(TypeDescription typeDescription) boolean
TypeDescription.isInHierarchyWith
(TypeDescription typeDescription) Returnstrue
if this type and the supplied type are in a type hierarchy with each other, i.e.boolean
TypeDescription.AbstractBase.isNestMateOf
(TypeDescription typeDescription) Checks if this type and the supplied type are members of the same nest group.boolean
TypeDescription.ForLoadedType.isNestMateOf
(TypeDescription typeDescription) boolean
TypeDescription.isNestMateOf
(TypeDescription typeDescription) Checks if this type and the supplied type are members of the same nest group.boolean
TypeDescription.AbstractBase.isSamePackage
(TypeDescription typeDescription) Checks if two types are defined in the same package.boolean
TypeDescription.isSamePackage
(TypeDescription typeDescription) Checks if two types are defined in the same package.boolean
TypeDescription.AbstractBase.isVisibleTo
(TypeDescription typeDescription) Checks if this element is visible from a given type.static TypeDescription
TypeDescription.ArrayProjection.of
(TypeDescription componentType) Creates an array projection of an arity of one.static TypeDescription
TypeDescription.ArrayProjection.of
(TypeDescription componentType, int arity) Creates an array projection.protected static TypeDescription.Generic
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.of
(TypeDescription typeDescription) Creates a new generic type representation for an erasure where any generified type is reified.static TypeDescription.Generic
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure.of
(TypeDescription typeDescription) Represents the supplied type description as a generified erasure if it is generified or as a non-generic type if not so.TypeDescription.Generic.Visitor.Substitutor.ForAttachment.of
(TypeDescription typeDescription) Attaches all types to the given type description.TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor.onType
(TypeDescription typeDescription) Applies the visitor on a type.TypeDescription.Generic.Builder.parameterizedType
(TypeDescription rawType, Collection<? extends TypeDefinition> parameters) Creates a parameterized type without an owner type or with a non-generic owner type.TypeDescription.Generic.Builder.parameterizedType
(TypeDescription rawType, TypeDefinition... parameter) Creates a parameterized type without an owner type or with a non-generic owner type.TypeDescription.Generic.Builder.parameterizedType
(TypeDescription rawType, TypeDescription.Generic ownerType, Collection<? extends TypeDefinition> parameters) Creates a parameterized type.TypeDescription.Generic.Builder.rawType
(TypeDescription type) Creates a raw type of a type description.TypeDescription.Generic.Builder.rawType
(TypeDescription type, TypeDescription.Generic ownerType) Creates a raw type of a type description.Method parameters in net.bytebuddy.description.type with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionRecordComponentDescription.AbstractBase.asToken
(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.RecordComponentDescription.asToken
(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.RecordComponentList.AbstractBase.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.RecordComponentList.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.RecordComponentList.Empty.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.TypeList.Generic.AbstractBase.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms a list of attached type variables into their tokenized form.TypeList.Generic.asTokenList
(ElementMatcher<? super TypeDescription> visitor) Transforms a list of attached type variables into their tokenized form.TypeList.Generic.Empty.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms a list of attached type variables into their tokenized form.static TypeVariableToken
TypeVariableToken.of
(TypeDescription.Generic typeVariable, ElementMatcher<? super TypeDescription> matcher) Transforms a type variable into a type variable token with its bounds detached.protected TypeList
TypeList.AbstractBase.wrap
(List<TypeDescription> values) Constructors in net.bytebuddy.description.type with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
ArrayProjection
(TypeDescription componentType, int arity) Creates a new array projection.Explicit
(TypeDescription... typeDescription) Creates an immutable wrapper.protected
ForAttachment
(TypeDescription declaringType, TypeVariableSource typeVariableSource) Creates a visitor for attaching type variables.ForErasure
(TypeDescription typeDescription) Creates a new description of a non-generic type as an erasure.protected
ForGenerifiedErasure
(TypeDescription typeDescription) Creates a new generified erasure.protected
ForNonGenericType
(TypeDescription typeDescription) Creates a new dispatcher of a non-generic type.ForRawType
(TypeDescription declaringType) Creates a visitor for representing declared types of a potentially raw type.protected
ForReifiedErasure
(TypeDescription typeDescription) Creates a new reified non-generic type.ForReplacement
(TypeDescription typeDescription) Creates a new substitutor for a type description replacement.ForTokenNormalization
(TypeDescription typeDescription) Creates a new token normalization visitor.ForTokens
(TypeDescription typeDescription, List<? extends RecordComponentDescription.Token> tokens) Creates a new list of record components that are described as tokens.ForTokens
(TypeDescription typeDescription, RecordComponentDescription.Token... token) Creates a new list of record components that are described as tokens.Latent
(TypeDescription declaringType, String name, TypeDescription.Generic type, List<? extends AnnotationDescription> annotations) Creates a new latent record component.Latent
(TypeDescription declaringType, RecordComponentDescription.Token token) Creates a new latent record component.Latent
(TypeDescription typeDescription, AnnotationSource annotationSource) Creates a non-generic type with an implicit owner type.protected
Latent
(TypeDescription typeDescription, TypeDescription.Generic declaringType, AnnotationSource annotationSource) Creates a non-generic type.private
Latent
(TypeDescription typeDescription, TypeDescription declaringType, AnnotationSource annotationSource) Creates a non-generic type with a raw owner type.Latent
(TypeDescription rawType, TypeDescription.Generic ownerType, List<? extends TypeDescription.Generic> parameters, AnnotationSource annotationSource) Creates a description of a latent parameterized type.protected
OfNonGenericType
(TypeDescription typeDescription) Creates a builder for a non-generic type.protected
OfNonGenericType
(TypeDescription typeDescription, TypeDescription ownerType) Creates a builder for a non-generic type.protected
OfNonGenericType
(TypeDescription typeDescription, TypeDescription.Generic ownerType) Creates a builder for a non-generic type.protected
OfNonGenericType
(TypeDescription typeDescription, TypeDescription.Generic ownerType, List<? extends AnnotationDescription> annotations) Creates a builder for a non-generic type.protected
OfParameterizedType
(TypeDescription rawType, TypeDescription.Generic ownerType, List<? extends TypeDescription.Generic> parameterTypes) Creates a builder for a parameterized type.protected
OfParameterizedType
(TypeDescription rawType, TypeDescription.Generic ownerType, List<? extends TypeDescription.Generic> parameterTypes, List<? extends AnnotationDescription> annotations) Creates a builder for a parameterized type.Reducing
(TypeDescription declaringType, List<? extends TypeVariableToken> typeVariableTokens) Creates a new reducing type visitor.Reducing
(TypeDescription declaringType, TypeVariableToken... typeVariableToken) Creates a new reducing type visitor.SuperTypeLoading
(TypeDescription delegate, ClassLoader classLoader) Creates a super type loading type description.SuperTypeLoading
(TypeDescription delegate, ClassLoader classLoader, TypeDescription.SuperTypeLoading.ClassLoadingDelegate classLoadingDelegate) Creates a super type loading type description.Constructor parameters in net.bytebuddy.description.type with type arguments of type TypeDescriptionModifierConstructorDescriptionExplicit
(List<? extends TypeDescription> typeDescriptions) Creates an immutable wrapper.ForDetachment
(ElementMatcher<? super TypeDescription> typeMatcher) Creates a visitor for detaching a type. -
Uses of TypeDescription in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as TypeDescriptionModifier and TypeFieldDescriptionstatic final TypeDescription
TargetType.DESCRIPTION
A description of theTargetType
.private final TypeDescription
Transformer.ForField.TransformedField.instrumentedType
The instrumented type for which this field is transformed.private final TypeDescription
Transformer.ForMethod.TransformedMethod.instrumentedType
The instrumented type for which this method is transformed.private final TypeDescription
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.typeDescription
A description of the type that is the defined outer type.protected final TypeDescription
DynamicType.Default.typeDescription
A type description of this dynamic type.Fields in net.bytebuddy.dynamic with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final Map
<TypeDescription, Class<?>> DynamicType.Default.Loaded.loadedTypes
The loaded types for the given loaded dynamic type.Methods in net.bytebuddy.dynamic that return TypeDescriptionModifier and TypeMethodDescriptionDynamicType.Default.getTypeDescription()
Returns a description of this dynamic type.DynamicType.getTypeDescription()
Returns a description of this dynamic type.static TypeDescription
TargetType.resolve
(TypeDescription typeDescription, TypeDescription targetType) Resolves the given type description to the supplied target type if it represents theTargetType
placeholder.DynamicType.Builder.AbstractBase.Adapter.toTypeDescription()
Returns aTypeDescription
for the currently built type.DynamicType.Builder.AbstractBase.Delegator.toTypeDescription()
Returns aTypeDescription
for the currently built type.DynamicType.Builder.toTypeDescription()
Returns aTypeDescription
for the currently built type.Methods in net.bytebuddy.dynamic that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionMap
<TypeDescription, Class<?>> DynamicType.Default.Loaded.getAllLoaded()
Returns all loaded types that are implied by this dynamic type.Map
<TypeDescription, Class<?>> DynamicType.Loaded.getAllLoaded()
Returns all loaded types that are implied by this dynamic type.DynamicType.AbstractBase.getAllTypeDescriptions()
Returns a set of all types that are represented by this dynamic type.DynamicType.getAllTypeDescriptions()
Returns a set of all types that are represented by this dynamic type.Map
<TypeDescription, byte[]> DynamicType.AbstractBase.getAllTypes()
Returns all types that are implied by this dynamic type.Map
<TypeDescription, byte[]> DynamicType.getAllTypes()
Returns all types that are implied by this dynamic type.DynamicType.AbstractBase.getAuxiliaryTypeDescriptions()
Returns a set of all auxiliary types that are represented by this dynamic type.DynamicType.getAuxiliaryTypeDescriptions()
Returns a set of all auxiliary types that are represented by this dynamic type.Map
<TypeDescription, byte[]> DynamicType.AbstractBase.getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.Map
<TypeDescription, byte[]> DynamicType.getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.Map
<TypeDescription, Class<?>> DynamicType.Default.Loaded.getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.Map
<TypeDescription, Class<?>> DynamicType.Loaded.getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.DynamicType.AbstractBase.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.DynamicType.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.<S extends ClassLoader>
Map<TypeDescription, Class<?>> TypeResolutionStrategy.Active.Resolved.initialize
(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy) Loads and initializes a dynamic type.<S extends ClassLoader>
Map<TypeDescription, Class<?>> TypeResolutionStrategy.Disabled.initialize
(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy) Loads and initializes a dynamic type.<S extends ClassLoader>
Map<TypeDescription, Class<?>> TypeResolutionStrategy.Lazy.initialize
(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy) Loads and initializes a dynamic type.<S extends ClassLoader>
Map<TypeDescription, Class<?>> TypeResolutionStrategy.Passive.initialize
(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy) Loads and initializes a dynamic type.<S extends ClassLoader>
Map<TypeDescription, Class<?>> TypeResolutionStrategy.Resolved.initialize
(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy) Loads and initializes a dynamic type.Saves a dynamic type in a given folder using the Java class file format while respecting the naming conventions for saving compiled Java classes.Saves a dynamic type in a given folder using the Java class file format while respecting the naming conventions for saving compiled Java classes.Methods in net.bytebuddy.dynamic with parameters of type TypeDescriptionModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.declaredTypes
(TypeDescription... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(TypeDescription... type) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.Adapter.innerTypeOf
(TypeDescription type) Defines this type as an inner type of the supplied type.DynamicType.Builder.AbstractBase.Delegator.innerTypeOf
(TypeDescription type) Defines this type as an inner type of the supplied type.DynamicType.Builder.innerTypeOf
(TypeDescription type) Defines this type as an inner type of the supplied type.DynamicType.Builder.AbstractBase.Adapter.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.AbstractBase.Delegator.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder.AbstractBase.nestMembers
(TypeDescription... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(TypeDescription... type) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.permittedSubclass
(TypeDescription... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(TypeDescription... type) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.require
(TypeDescription type, byte[] binaryRepresentation) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.AbstractBase.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.require
(TypeDescription type, byte[] binaryRepresentation) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.static TypeDescription
TargetType.resolve
(TypeDescription typeDescription, TypeDescription targetType) Resolves the given type description to the supplied target type if it represents theTargetType
placeholder.Transformer.Compound.transform
(TypeDescription instrumentedType, S target) Transforms the supplied target.Transformer.ForField.FieldModifierTransformer.transform
(TypeDescription instrumentedType, FieldDescription.Token target) Transforms the supplied target.Transformer.ForField.transform
(TypeDescription instrumentedType, FieldDescription fieldDescription) Transforms the supplied target.Transformer.ForMethod.MethodModifierTransformer.transform
(TypeDescription instrumentedType, MethodDescription.Token target) Transforms the supplied target.Transformer.ForMethod.transform
(TypeDescription instrumentedType, MethodDescription methodDescription) Transforms the supplied target.Transformer.NoOp.transform
(TypeDescription instrumentedType, Object target) Transforms the supplied target.Transformer.transform
(TypeDescription instrumentedType, T target) Transforms the supplied target.Method parameters in net.bytebuddy.dynamic with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.Adapter.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.Delegator.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DynamicType.Builder.AbstractBase.Adapter.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.AbstractBase.Delegator.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DynamicType.Builder.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.static ClassFileLocator
ClassFileLocator.Simple.of
(Map<TypeDescription, byte[]> binaryRepresentations) Creates a class file locator that represents all types of a dynamic type.DynamicType.Builder.AbstractBase.Adapter.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.AbstractBase.Delegator.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.Constructors in net.bytebuddy.dynamic with parameters of type TypeDescriptionModifierConstructorDescriptionDefault
(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes) Creates a new dynamic type.protected
InnerTypeDefinitionForTypeAdapter
(TypeDescription typeDescription) Creates a new adapter for an inner type definition for an outer type.protected
Loaded
(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes, Map<TypeDescription, Class<?>> loadedTypes) Creates a new representation of a loaded dynamic type.protected
TransformedField
(TypeDescription instrumentedType, TypeDefinition declaringType, FieldDescription.Token token, FieldDescription.InDefinedShape fieldDescription) Creates a new transformed field.protected
TransformedMethod
(TypeDescription instrumentedType, TypeDefinition declaringType, MethodDescription.Token token, MethodDescription.InDefinedShape methodDescription) Creates a new transformed method.Unloaded
(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes, TypeResolutionStrategy.Resolved typeResolutionStrategy) Creates a new unloaded representation of a dynamic type.Constructor parameters in net.bytebuddy.dynamic with type arguments of type TypeDescriptionModifierConstructorDescriptionprotected
Loaded
(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes, Map<TypeDescription, Class<?>> loadedTypes) Creates a new representation of a loaded dynamic type. -
Uses of TypeDescription in net.bytebuddy.dynamic.loading
Methods in net.bytebuddy.dynamic.loading that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionMap
<TypeDescription, Class<?>> ClassInjector.AbstractBase.inject
(Map<? extends TypeDescription, byte[]> types) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.AbstractBase.inject
(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.inject
(Map<? extends TypeDescription, byte[]> types) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.inject
(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.ChildFirst.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given set of class descriptions and their binary representations using a child-first class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.ChildFirst.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types, ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed) Loads a given set of class descriptions and their binary representations using a child-first class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given set of class descriptions and their binary representations.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types, ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed) Loads a given set of class descriptions and their binary representations.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.InjectionDispatcher.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.WrappingDispatcher.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForBootstrapInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForJnaInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForUnsafeInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.load
(T classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.UsingLookup.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassReloadingStrategy.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> InjectionClassLoader.Strategy.load
(InjectionClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Method parameters in net.bytebuddy.dynamic.loading with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionMap
<TypeDescription, Class<?>> ClassInjector.AbstractBase.inject
(Map<? extends TypeDescription, byte[]> types) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.AbstractBase.inject
(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.inject
(Map<? extends TypeDescription, byte[]> types) Injects the given types into the represented class loader.Map
<TypeDescription, Class<?>> ClassInjector.inject
(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.ChildFirst.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given set of class descriptions and their binary representations using a child-first class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.ChildFirst.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types, ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed) Loads a given set of class descriptions and their binary representations using a child-first class loader.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given set of class descriptions and their binary representations.static Map
<TypeDescription, Class<?>> ByteArrayClassLoader.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types, ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed) Loads a given set of class descriptions and their binary representations.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.InjectionDispatcher.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.Default.WrappingDispatcher.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForBootstrapInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForJnaInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.ForUnsafeInjection.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.load
(T classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassLoadingStrategy.UsingLookup.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> ClassReloadingStrategy.load
(ClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation.Map
<TypeDescription, Class<?>> InjectionClassLoader.Strategy.load
(InjectionClassLoader classLoader, Map<TypeDescription, byte[]> types) Loads a given collection of classes given their binary representation. -
Uses of TypeDescription in net.bytebuddy.dynamic.scaffold
Subinterfaces of TypeDescription in net.bytebuddy.dynamic.scaffoldModifier and TypeInterfaceDescriptioninterface
Implementations of this interface represent an instrumented type that is subject to change.static interface
Implementations represent anInstrumentedType
with a flexible name.Classes in net.bytebuddy.dynamic.scaffold that implement TypeDescriptionModifier and TypeClassDescriptionstatic class
A default implementation of an instrumented type.static class
A frozen representation of an instrumented type of which the structure must not be modified.Fields in net.bytebuddy.dynamic.scaffold declared as TypeDescriptionModifier and TypeFieldDescriptionprotected final TypeDescription
FieldLocator.AbstractBase.accessingType
The type accessing the field.private final TypeDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.bridgeType
The type on which the bridge method is invoked.private final TypeDescription
InstrumentedType.Default.declaringType
The declaring type of the instrumented type ornull
if no such type exists.private final TypeDescription
InstrumentedType.Default.enclosingType
The enclosing type of the instrumented type ornull
if no such type exists.private final TypeDescription
FieldRegistry.Default.Compiled.instrumentedType
The instrumented type for which this registry was compiled for.private final TypeDescription
MethodRegistry.Default.Compiled.instrumentedType
The instrumented type.private final TypeDescription
MethodRegistry.Default.Prepared.instrumentedType
The instrumented type.private final TypeDescription
MethodRegistry.Handler.ForVisibilityBridge.Compiled.instrumentedType
The instrumented type.private final TypeDescription
RecordComponentRegistry.Default.Compiled.instrumentedType
The instrumented type for which this registry was compiled for.protected final TypeDescription
TypeInitializer.Drain.Default.instrumentedType
The instrumented type.private final TypeDescription
TypeWriter.Default.ClassDumpAction.instrumentedType
The instrumented type.private final TypeDescription
TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList.instrumentedType
The instrumented type.protected final TypeDescription
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.instrumentedType
The instrumented type.protected final TypeDescription
TypeWriter.Default.instrumentedType
The instrumented type to be created.private final TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.instrumentedType
The instrumented type defining the bridge target.private final TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.instrumentedType
The instrumented type defining the bridge target.private final TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.instrumentedType
The instrumented type that defines the bridge methods and the bridge target.private final TypeDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.instrumentedType
The instrumented type.private final TypeDescription
InstrumentedType.Default.nestHost
The nest host of this instrumented type or a description ofTargetType
if this type is its own nest host.protected final TypeDescription
TypeWriter.Default.ForInlining.originalType
The original type's description.private final TypeDescription
FieldLocator.ForClassHierarchy.typeDescription
The type for which to look up a field within its class hierarchy.private final TypeDescription
FieldLocator.ForExactType.Factory.typeDescription
The type for which to locate a field.private final TypeDescription
FieldLocator.ForExactType.typeDescription
The type for which to look up fields.private final TypeDescription
InstrumentedType.Frozen.typeDescription
The represented type description.Fields in net.bytebuddy.dynamic.scaffold with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<? extends TypeDescription> InstrumentedType.Default.declaredTypes
A list of types that are declared by this type.private final LinkedHashMap
<String, TypeDescription> TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.declaredTypes
A mapping of the internal names of all declared types to their description.private final Map
<TypeDescription, MethodGraph> MethodGraph.Linked.Delegation.interfaceGraphs
A mapping of method graphs of the represented type's directly implemented interfaces to their graph representatives.private final List
<? extends TypeDescription> InstrumentedType.Default.nestMembers
A list of all members of this types nest group excluding this type.private final List
<? extends TypeDescription> InstrumentedType.Default.permittedSubclasses
A list of permitted subclasses ornull
if this type is not sealed.Methods in net.bytebuddy.dynamic.scaffold that return TypeDescriptionModifier and TypeMethodDescriptionInstrumentedType.Default.getDeclaringType()
Returns the declaring type of this instance.InstrumentedType.Frozen.getDeclaringType()
Returns the declaring type of this instance.TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.getDeclaringType()
Returns the declaring type of this instance.TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.getDeclaringType()
Returns the declaring type of this instance.TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.getDeclaringType()
Returns the declaring type of this instance.InstrumentedType.Default.getEnclosingType()
Returns a description of this type's enclosing type if any.InstrumentedType.Frozen.getEnclosingType()
Returns a description of this type's enclosing type if any.MethodRegistry.Compiled.getInstrumentedType()
Returns the instrumented type that is to be created.MethodRegistry.Default.Compiled.getInstrumentedType()
Returns the instrumented type that is to be created.MethodRegistry.Default.Prepared.getInstrumentedType()
Returns the fully prepared instrumented type.MethodRegistry.Prepared.getInstrumentedType()
Returns the fully prepared instrumented type.InstrumentedType.Default.getNestHost()
Returns the nest host of this type.InstrumentedType.Frozen.getNestHost()
Returns the nest host of this type.InstrumentedType.Default.validated()
Validates the instrumented type to define a legal Java type.InstrumentedType.Frozen.validated()
Validates the instrumented type to define a legal Java type.InstrumentedType.validated()
Validates the instrumented type to define a legal Java type.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TypeDescriptionModifier and TypeMethodDescriptionprotected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry.asPreparedEntry
(TypeDescription instrumentedType, MethodDescription methodDescription, Set<MethodDescription.TypeToken> methodTypes, Visibility visibility) Transforms this entry into a prepared state.protected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry.asPreparedEntry
(TypeDescription instrumentedType, MethodDescription methodDescription, Visibility visibility) Transforms this entry into a prepared state.protected TypeWriter.FieldPool.Record
FieldRegistry.Default.Compiled.Entry.bind
(TypeDescription instrumentedType, FieldDescription fieldDescription) Binds this entry to the provided field description.protected TypeWriter.MethodPool.Record
MethodRegistry.Default.Compiled.Entry.bind
(TypeDescription instrumentedType, boolean supportsBridges) Transforms this entry into a method record.protected TypeWriter.RecordComponentPool.Record
RecordComponentRegistry.Default.Compiled.Entry.bind
(TypeDescription instrumentedType, RecordComponentDescription recordComponentDescription) Binds this entry to the provided record component description.FieldRegistry.compile
(TypeDescription instrumentedType) Prepares the field registry for a given instrumented type.FieldRegistry.Default.compile
(TypeDescription instrumentedType) Prepares the field registry for a given instrumented type.MethodGraph.Compiler.AbstractBase.compile
(TypeDescription typeDescription) Deprecated.MethodGraph.Compiler.AbstractBase.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.MethodGraph.Compiler.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.MethodGraph.Compiler.compile
(TypeDescription typeDescription) Deprecated.MethodGraph.Compiler.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.MethodGraph.Compiler.Default.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.MethodGraph.Compiler.ForDeclaredMethods.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.MethodGraph.Compiler.ForDeclaredMethods.compile
(TypeDescription typeDescription) Deprecated.MethodGraph.Compiler.ForDeclaredMethods.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.MethodGraph.Empty.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.MethodGraph.Empty.compile
(TypeDescription typeDescription) Deprecated.MethodGraph.Empty.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.RecordComponentRegistry.compile
(TypeDescription instrumentedType) Prepares the record component registry for a given instrumented type.RecordComponentRegistry.Default.compile
(TypeDescription instrumentedType) Prepares the record component registry for a given instrumented type.void
TypeWriter.Default.ClassDumpAction.Dispatcher.Disabled.dump
(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation) Dumps a class file to the file system.void
TypeWriter.Default.ClassDumpAction.Dispatcher.dump
(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation) Dumps a class file to the file system.void
TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled.dump
(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation) Dumps a class file to the file system.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.MethodGraph.Empty.getInterfaceGraph
(TypeDescription typeDescription) Returns a graph representing the view on this represented type's directly implemented interface type.MethodGraph.Linked.Delegation.getInterfaceGraph
(TypeDescription typeDescription) Returns a graph representing the view on this represented type's directly implemented interface type.MethodGraph.Linked.getInterfaceGraph
(TypeDescription typeDescription) Returns a graph representing the view on this represented type's directly implemented interface type.FieldLocator.AbstractBase.locate
(String name, TypeDescription type) Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator.locate
(String name, TypeDescription type) Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator.NoOp.locate
(String name, TypeDescription type) Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator.Factory.make
(TypeDescription typeDescription) Creates a field locator for a given type.FieldLocator.ForClassHierarchy.Factory.make
(TypeDescription typeDescription) Creates a field locator for a given type.FieldLocator.ForExactType.Factory.make
(TypeDescription typeDescription) Creates a field locator for a given type.FieldLocator.ForTopLevelType.Factory.make
(TypeDescription typeDescription) Creates a field locator for a given type.FieldLocator.NoOp.make
(TypeDescription typeDescription) Creates a field locator for a given type.TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.of
(boolean enabled, org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Resolves an initialization handler.static TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of
(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender) Wraps the given record in an accessor bridge wrapper if necessary.static TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.of
(TypeDescription instrumentedType, MethodDescription bridgeTarget, MethodAttributeAppender attributeAppender) Creates a record for a visibility bridge.InstrumentedType.Factory.represent
(TypeDescription typeDescription) Creates an instrumented type that represents the provided type.ElementMatcher
<? super FieldDescription> FieldRegistry.Default.Entry.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super MethodDescription> MethodRegistry.Default.Entry.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super RecordComponentDescription> RecordComponentRegistry.Default.Entry.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.InstrumentedType.Default.withDeclaringType
(TypeDescription declaringType) Creates a new instrumented type that is declared by the supplied type.InstrumentedType.Frozen.withDeclaringType
(TypeDescription declaringType) Creates a new instrumented type that is declared by the supplied type.InstrumentedType.withDeclaringType
(TypeDescription declaringType) Creates a new instrumented type that is declared by the supplied type.InstrumentedType.WithFlexibleName.withDeclaringType
(TypeDescription declaringType) Creates a new instrumented type that is declared by the supplied type.private static TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithDrain
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.withDrain
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Resolves an initialization handler with a drain.InstrumentedType.Default.withEnclosingType
(TypeDescription enclosingType) Creates a new instrumented type with the supplied enclosing type.InstrumentedType.Frozen.withEnclosingType
(TypeDescription enclosingType) Creates a new instrumented type with the supplied enclosing type.InstrumentedType.withEnclosingType
(TypeDescription enclosingType) Creates a new instrumented type with the supplied enclosing type.InstrumentedType.WithFlexibleName.withEnclosingType
(TypeDescription enclosingType) Creates a new instrumented type with the supplied enclosing type.InstrumentedType.Default.withNestHost
(TypeDescription nestHost) Creates a new instrumented type with the supplied nest host.InstrumentedType.Frozen.withNestHost
(TypeDescription nestHost) Creates a new instrumented type with the supplied nest host.InstrumentedType.WithFlexibleName.withNestHost
(TypeDescription nestHost) Creates a new instrumented type with the supplied nest host.InstrumentedType.withNestHost
(TypeDescription nestHost) Creates a new instrumented type with the supplied nest host.private static TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithoutDrain
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.withoutDrain
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Resolves an initialization handler without a drain.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
AbstractBase
(TypeDescription accessingType) Creates a new field locator.protected
AccessBridgeWrapper
(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender) Creates a wrapper for adding accessor bridges.protected
AccessorBridge
(MethodDescription bridgeTarget, MethodDescription.TypeToken bridgeType, TypeDescription instrumentedType) Creates a new accessor bridge method.protected
Appending
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler.protected
BridgeTarget
(MethodDescription bridgeTarget, TypeDescription instrumentedType) Creates a new bridge target.protected
ClassDumpAction
(String target, TypeDescription instrumentedType, boolean original, long suffix, byte[] binaryRepresentation) Creates a new class dump action.protected
Compiled
(TypeDescription instrumentedType, List<FieldRegistry.Default.Compiled.Entry> entries) Creates a new compiled field registry.protected
Compiled
(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, LinkedHashMap<MethodDescription, MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges) Creates a new compiled version of a default method registry.protected
Compiled
(TypeDescription instrumentedType) Creates a new compiled handler for a visibility bridge.protected
Compiled
(TypeDescription instrumentedType, List<RecordComponentRegistry.Default.Compiled.Entry> entries) Creates a new compiled record component registry.protected
Creating
(TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory) Creates a new creating initialization handler.protected
Default
(String name, int modifiers, TypeDescription.Generic superClass, List<? extends TypeVariableToken> typeVariables, List<? extends TypeDescription.Generic> interfaceTypes, List<? extends FieldDescription.Token> fieldTokens, Map<String, Object> auxiliaryFieldValues, List<? extends MethodDescription.Token> methodTokens, List<? extends RecordComponentDescription.Token> recordComponentTokens, List<? extends AnnotationDescription> annotationDescriptions, TypeInitializer typeInitializer, LoadedTypeInitializer loadedTypeInitializer, TypeDescription declaringType, MethodDescription.InDefinedShape enclosingMethod, TypeDescription enclosingType, List<? extends TypeDescription> declaredTypes, List<? extends TypeDescription> permittedSubclasses, boolean anonymousClass, boolean localClass, boolean record, TypeDescription nestHost, List<? extends TypeDescription> nestMembers) Creates a new instrumented type.Default
(TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory) Creates a new default type initializer drain.protected
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.Factory
(TypeDescription typeDescription) Creates a new factory for a field locator that locates a field for an exact type.ForClassHierarchy
(TypeDescription typeDescription) Creates a field locator that looks up fields that are declared within a class's class hierarchy.ForClassHierarchy
(TypeDescription typeDescription, TypeDescription accessingType) Creates a field locator that looks up fields that are declared within a class's class hierarchy.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.ForExactType
(TypeDescription typeDescription) Creates a new field locator for locating fields from a declared type.ForExactType
(TypeDescription typeDescription, TypeDescription accessingType) Creates a new field locator for locating fields from a declared type.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.protected
ForTopLevelType
(TypeDescription typeDescription) Creates a new type locator for a top-level type.protected
Frozen
(TypeDescription typeDescription, LoadedTypeInitializer loadedTypeInitializer) Creates a new frozen representation of an instrumented type.protected
LazyFieldList
(TypeDescription instrumentedType) Creates a lazy field list.protected
OfVisibilityBridge
(MethodDescription visibilityBridge, MethodDescription bridgeTarget, TypeDescription bridgeType, MethodAttributeAppender attributeAppender) Creates a new record for a visibility bridge.protected
Prepared
(LinkedHashMap<MethodDescription, MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods) Creates a prepared version of a default method registry.protected
VisibilityBridge
(TypeDescription instrumentedType, MethodDescription bridgeTarget) Creates a new visibility bridge.protected
WithActiveRecord
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler with a drain and with an active record.protected
WithActiveRecord
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler without a drain and with an active record.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
WithDrain
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler with a drain.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.protected
WithoutActiveRecord
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler with a drain and without an active record.protected
WithoutActiveRecord
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory) Creates a new appending initialization handler without a drain and without an active record.protected
WithoutDrain
(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames) Creates a new appending initialization handler without a drain.Constructor parameters in net.bytebuddy.dynamic.scaffold with type arguments of type TypeDescriptionModifierConstructorDescriptionDelegation
(MethodGraph methodGraph, MethodGraph superClassGraph, Map<TypeDescription, MethodGraph> interfaceGraphs) Creates a new delegation method graph. -
Uses of TypeDescription in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
DecoratingDynamicTypeBuilder.instrumentedType
The instrumented type to decorate.private final TypeDescription
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.instrumentedType
The instrumented type.private final TypeDescription
RebaseImplementationTarget.RebasedMethodInvocation.instrumentedType
The instrumented type on which the method should be invoked on.protected final TypeDescription
AbstractInliningDynamicTypeBuilder.originalType
The original type that is being redefined or rebased.private final TypeDescription
MethodRebaseResolver.Resolution.ForRebasedConstructor.placeholderType
The placeholder type that is prepended to the constructor signature.private final TypeDescription
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.placeholderType
The placeholder type that is used to distinguish the constructor's signature.Methods in net.bytebuddy.dynamic.scaffold.inline that return TypeDescriptionModifier and TypeMethodDescriptionMethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.getDeclaringType()
Returns the declaring type of this instance.MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.getDeclaringType()
Returns the declaring type of this instance.RebaseImplementationTarget.getOriginType()
Identifies the origin type of an implementation.RebaseImplementationTarget.RebasedMethodInvocation.getTypeDescription()
Returns the target type the represented method is invoked on.DecoratingDynamicTypeBuilder.toTypeDescription()
Returns aTypeDescription
for the currently built type.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type TypeDescriptionModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.innerTypeOf
(TypeDescription type) Defines this type as an inner type of the supplied type.static MethodRebaseResolver
MethodRebaseResolver.Default.make
(TypeDescription instrumentedType, Set<? extends MethodDescription.SignatureToken> rebaseables, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, MethodNameTransformer methodNameTransformer) Creates a new method rebase resolver.RebaseImplementationTarget.Factory.make
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.DecoratingDynamicTypeBuilder.nestHost
(TypeDescription type) Defines this type as a nest member of the supplied type as a nest host.protected static LatentMatcher
<MethodDescription> InliningImplementationMatcher.of
(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType) Creates a matcher where only overridable or declared methods are matched unless those are ignored.MethodRebaseResolver.Resolution.ForRebasedConstructor.of
(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType) Resolves a constructor rebasement.MethodRebaseResolver.Resolution.ForRebasedMethod.of
(TypeDescription instrumentedType, MethodDescription.InDefinedShape methodDescription, MethodNameTransformer methodNameTransformer) Resolves a rebasement for the provided method.protected static Implementation.Target
RebaseImplementationTarget.of
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion, MethodRebaseResolver methodRebaseResolver) Creates a new rebase implementation target.protected static Implementation.SpecialMethodInvocation
RebaseImplementationTarget.RebasedMethodInvocation.of
(MethodDescription.InDefinedShape resolvedMethod, TypeDescription instrumentedType, TypeList prependedParameters) Creates a special method invocation for the given method.ElementMatcher
<? super MethodDescription> InliningImplementationMatcher.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Method parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.declaredTypes
(Collection<? extends TypeDescription> types) Defines this type as an the outer type of the supplied types.DecoratingDynamicTypeBuilder.nestMembers
(Collection<? extends TypeDescription> types) Defines this type as a nest host for the supplied types.DecoratingDynamicTypeBuilder.permittedSubclass
(Collection<? extends TypeDescription> types) Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
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.protected
ForRebasedConstructor
(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType) Creates a new resolution for a rebased constructor.protected
RebasedConstructor
(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType) Creates a new rebased constructor.protected
RebasedMethod
(TypeDescription instrumentedType, MethodDescription.InDefinedShape methodDescription, MethodNameTransformer methodNameTransformer) Creates a new rebased method.protected
RebasedMethodInvocation
(MethodDescription.InDefinedShape methodDescription, TypeDescription instrumentedType, StackManipulation stackManipulation, TypeList prependedParameters) Creates a new rebased method invocation.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.protected
RebaseImplementationTarget
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation, Map<MethodDescription.SignatureToken, MethodRebaseResolver.Resolution> rebaseableMethods) Creates a rebase implementation target.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 TypeDescription in net.bytebuddy.dynamic.scaffold.subclass
Methods in net.bytebuddy.dynamic.scaffold.subclass with parameters of type TypeDescriptionModifier and TypeMethodDescriptionprotected abstract List
<MethodDescription.Token> ConstructorStrategy.Default.doExtractConstructors
(TypeDescription instrumentedType) Extracts the relevant method tokens of the instrumented type's constructors.ConstructorStrategy.Default.extractConstructors
(TypeDescription instrumentedType) Extracts constructors for a given super type.ConstructorStrategy.Default.WithMethodAttributeAppenderFactory.extractConstructors
(TypeDescription instrumentedType) Extracts constructors for a given super type.ConstructorStrategy.extractConstructors
(TypeDescription instrumentedType) Extracts constructors for a given super type.ConstructorStrategy.ForDefaultConstructor.extractConstructors
(TypeDescription instrumentedType) Extracts constructors for a given super type.protected abstract TypeDefinition
SubclassImplementationTarget.OriginTypeResolver.identify
(TypeDescription typeDescription) Identifies the origin type to a given type description.ConstructorStrategy.Default.inject
(TypeDescription instrumentedType, MethodRegistry methodRegistry) Returns a method registry that is capable of creating byte code for the constructors that were provided by theConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.ConstructorStrategy.Default.WithMethodAttributeAppenderFactory.inject
(TypeDescription instrumentedType, MethodRegistry methodRegistry) Returns a method registry that is capable of creating byte code for the constructors that were provided by theConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.ConstructorStrategy.ForDefaultConstructor.inject
(TypeDescription instrumentedType, MethodRegistry methodRegistry) Returns a method registry that is capable of creating byte code for the constructors that were provided by theConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.ConstructorStrategy.inject
(TypeDescription instrumentedType, MethodRegistry methodRegistry) Returns a method registry that is capable of creating byte code for the constructors that were provided by theConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.SubclassImplementationTarget.Factory.make
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.ElementMatcher
<? super MethodDescription> SubclassDynamicTypeBuilder.InstrumentableMatcher.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
SubclassImplementationTarget
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation, SubclassImplementationTarget.OriginTypeResolver originTypeResolver) Creates a new subclass implementation target. -
Uses of TypeDescription in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
Implementation.Context.Default.FieldCacheEntry.fieldType
The field type that is represented by this field cache entry.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance.fieldType
The type of the static field.private final TypeDescription
EqualsMethod.Appender.instrumentedType
The instrumented type.private final TypeDescription
FieldAccessor.ForSetter.Appender.instrumentedType
The instrumented type.private final TypeDescription
FixedValue.ForThisValue.Appender.instrumentedType
The instrumented type.private final TypeDescription
Implementation.Context.Default.AccessorMethod.instrumentedType
The instrumented type.private final TypeDescription
Implementation.Context.Default.CacheValueField.instrumentedType
The instrumented type.private final TypeDescription
Implementation.Context.Default.FieldGetter.instrumentedType
The instrumented type.private final TypeDescription
Implementation.Context.Default.FieldSetter.instrumentedType
The instrumented type.protected final TypeDescription
Implementation.Context.ExtractableView.AbstractBase.instrumentedType
The instrumented type.protected final TypeDescription
Implementation.Target.AbstractBase.instrumentedType
The instrumented type.private final TypeDescription
InvocationHandlerAdapter.ForInstance.Appender.instrumentedType
The instrumented type for which the methods are being intercepted.private final TypeDescription
InvokeDynamic.Appender.instrumentedType
The instrumented type of the current implementation.private final TypeDescription
MethodCall.ArgumentLoader.ForInstrumentedType.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.ArgumentLoader.ForThisReference.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.MethodInvoker.ForContextualInvocation.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.MethodInvoker.ForDefaultMethodInvocation.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.MethodInvoker.ForSuperMethodInvocation.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.MethodLocator.ForElementMatcher.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.TargetHandler.ForConstructingInvocation.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation.instrumentedType
The instrumented type.private final TypeDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved.instrumentedType
The instrumented type.private final TypeDescription
FixedValue.ForConstantValue.loadedType
The type of the fixed value.private final TypeDescription
FixedValue.ForOriginType.Appender.originType
The instrumented type.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.primitiveType
The primitive type that can be stored on the constant pool.private final TypeDescription
InvokeDynamic.InvocationProvider.Default.Target.returnType
The return type to be requested from the bootstrapping method.private final TypeDescription
InvokeDynamic.InvocationProvider.Target.Resolved.Simple.returnType
The requested return type.private final TypeDescription
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor.throwableType
The type of the exception that is to be thrown.private final TypeDescription
ExceptionMethod.ConstructionDelegate.ForStringConstructor.throwableType
The type of the exception that is to be thrown.private final TypeDescription
Implementation.SpecialMethodInvocation.Simple.typeDescription
The type description that is represented by this legal special method invocation.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant.typeDescription
The type that is represented by this constant.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType.typeDescription
The explicit type.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.WithExplicitType.typeDescription
The explicit type.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue.typeDescription
The type to be represented by thenull
value.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance.typeDescription
The type as which the intercepted instance should be loaded onto the operand stack.private final TypeDescription
InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType.typeDescription
The requested return type.private final TypeDescription
MethodCall.MethodInvoker.ForVirtualInvocation.Factory.typeDescription
The type on which the virtual method is invoked.private final TypeDescription
MethodCall.MethodInvoker.ForVirtualInvocation.typeDescription
The type description to virtually invoke the method upon.private final TypeDescription
MethodCall.TargetHandler.Simple.typeDescription
The type resolved by the stack manipulation.private final TypeDescription
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction.typeDescription
The type to be constructed.private final TypeDescription
MethodDelegation.ImplementationDelegate.ForConstruction.typeDescription
The type being constructed.private final TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.wrapperType
The wrapper type that is to be represented.Fields in net.bytebuddy.implementation with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<TypeDescription> InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.loadedTypes
A list of all types of the arguments that were loaded onto the operand stack.private final Set
<TypeDescription> DefaultMethodCall.Appender.nonPrioritizedInterfaces
The relevant non-prioritized interfaces to be considered by this appender.private final List
<TypeDescription> InvokeDynamic.InvocationProvider.Target.Resolved.Simple.parameterTypes
The types of the values on the operand stack.private final List
<TypeDescription> DefaultMethodCall.Appender.prioritizedInterfaces
The relevant prioritized interfaces to be considered by this appender.private final List
<TypeDescription> DefaultMethodCall.prioritizedInterfaces
A list of prioritized interfaces in the order in which a method should be attempted to be called.Methods in net.bytebuddy.implementation that return TypeDescriptionModifier and TypeMethodDescriptionImplementation.Context.Default.AccessorMethod.getDeclaringType()
Returns the declaring type of this instance.Implementation.Context.Default.CacheValueField.getDeclaringType()
Returns the declaring type of this instance.Implementation.Context.Default.FieldGetter.getDeclaringType()
Returns the declaring type of this instance.Implementation.Context.Default.FieldSetter.getDeclaringType()
Returns the declaring type of this instance.protected TypeDescription
Implementation.Context.Default.FieldCacheEntry.getFieldType()
Returns the field type that is represented by this field cache entry.Implementation.Context.ExtractableView.AbstractBase.getInstrumentedType()
Returns the instrumented type of the current implementation.Implementation.Context.getInstrumentedType()
Returns the instrumented type of the current implementation.Implementation.Target.AbstractBase.getInstrumentedType()
Returns a description of the instrumented type.Implementation.Target.getInstrumentedType()
Returns a description of the instrumented type.InvokeDynamic.InvocationProvider.Target.Resolved.getReturnType()
Returns the requested return type.InvokeDynamic.InvocationProvider.Target.Resolved.Simple.getReturnType()
Returns the requested return type.Implementation.SpecialMethodInvocation.getTypeDescription()
Returns the target type the represented method is invoked on.Implementation.SpecialMethodInvocation.Illegal.getTypeDescription()
Returns the target type the represented method is invoked on.Implementation.SpecialMethodInvocation.Simple.getTypeDescription()
Returns the target type the represented method is invoked on.MethodCall.TargetHandler.ForConstructingInvocation.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.ForField.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.ForMethodCall.Resolved.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.ForMethodParameter.Resolved.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.ForValue.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.Resolved.getTypeDescription()
Returns the target's type description.MethodCall.TargetHandler.Simple.getTypeDescription()
Returns the target's type description.Implementation.Context.Default.register
(AuxiliaryType auxiliaryType) Registers an auxiliary type as required for the current implementation.Implementation.Context.Disabled.register
(AuxiliaryType auxiliaryType) Registers an auxiliary type as required for the current implementation.Implementation.Context.register
(AuxiliaryType auxiliaryType) Registers an auxiliary type as required for the current implementation.InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForInterceptedMethod.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.InvokeDynamic.InvocationProvider.ReturnTypeProvider.resolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.Methods in net.bytebuddy.implementation that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionprivate List
<TypeDescription> DefaultMethodCall.filterRelevant
(TypeDescription typeDescription) Filters the relevant prioritized interfaces for a given type, i.e.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.InvokeDynamic.InvocationProvider.Target.Resolved.getParameterTypes()
Returns the types of the values on the operand stack.InvokeDynamic.InvocationProvider.Target.Resolved.Simple.getParameterTypes()
Returns the types of the values on the operand stack.Methods in net.bytebuddy.implementation with parameters of type TypeDescriptionModifier and TypeMethodDescriptionprotected abstract Implementation.SpecialMethodInvocation
Implementation.Target.AbstractBase.DefaultMethodInvocation.apply
(MethodGraph.Node node, TypeDescription targetType) Resolves a default method invocation for a given node.abstract InvokeDynamic
InvokeDynamic.WithImplicitType.as
(TypeDescription typeDescription) Represents the last value as an instance of the given type.InvokeDynamic.WithImplicitType.OfArgument.as
(TypeDescription typeDescription) InvokeDynamic.WithImplicitType.OfField.as
(TypeDescription typeDescription) InvokeDynamic.WithImplicitType.OfInstance.as
(TypeDescription typeDescription) Implementation.Context.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.Implementation.Context.Default.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.Implementation.Context.Disabled.cache
(StackManipulation fieldValue, TypeDescription fieldType) Caches a single value by storing it in form of aprivate
,final
andstatic
field.MethodDelegation.ImplementationDelegate.compile
(TypeDescription instrumentedType) Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.ForConstruction.compile
(TypeDescription instrumentedType) Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.ForField.compile
(TypeDescription instrumentedType) Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.ForMethodReturn.compile
(TypeDescription instrumentedType) Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.ForStaticMethod.compile
(TypeDescription instrumentedType) Compiles this implementation delegate.private List
<TypeDescription> DefaultMethodCall.filterRelevant
(TypeDescription typeDescription) Filters the relevant prioritized interfaces for a given type, i.e.FieldAccessor.ForImplicitProperty.in
(TypeDescription typeDescription) Determines that a field should only be considered when it was defined in a given type.FieldAccessor.OwnerTypeLocatable.in
(TypeDescription typeDescription) Determines that a field should only be considered when it was defined in a given type.protected abstract T
FieldAccessor.ForSetter.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.protected Void
FieldAccessor.ForSetter.OfConstantValue.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.protected Void
FieldAccessor.ForSetter.OfDefaultValue.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.protected FieldAccessor.FieldLocation.Prepared
FieldAccessor.ForSetter.OfFieldValue.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.protected Void
FieldAccessor.ForSetter.OfParameterValue.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.protected FieldDescription.InDefinedShape
FieldAccessor.ForSetter.OfReferenceValue.initialize
(TypeDescription instrumentedType) Initializes a value to be used during method instrumentation.InvokeDynamic.WithImplicitTarget.invoke
(String methodName, TypeDescription returnType) Requests the bootstrap method to bind a method with the given return type.InvokeDynamic.WithImplicitTarget.invoke
(TypeDescription returnType) Requests the bootstrap method to bind a method with the given return type.Implementation.Target.AbstractBase.invokeDefault
(MethodDescription.SignatureToken token, TypeDescription targetType) Creates a special method invocation for invoking a default method.Implementation.Target.invokeDefault
(MethodDescription.SignatureToken token, TypeDescription targetType) Creates a special method invocation for invoking a default method.Implementation.Context.Default.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion) Deprecated.Implementation.Context.Default.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion, Implementation.Context.FrameGeneration frameGeneration) Creates a new implementation context.Implementation.Context.Default.Factory.WithFixedSuffix.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion) Deprecated.Implementation.Context.Default.Factory.WithFixedSuffix.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion, Implementation.Context.FrameGeneration frameGeneration) Creates a new implementation context.Implementation.Context.Disabled.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion) Deprecated.Implementation.Context.Disabled.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion, Implementation.Context.FrameGeneration frameGeneration) Creates a new implementation context.Implementation.Context.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion) Implementation.Context.Factory.make
(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion, Implementation.Context.FrameGeneration frameGeneration) Creates a new implementation context.Implementation.Target.Factory.make
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.MethodCall.MethodInvoker.Factory.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodInvoker.ForContextualInvocation.Factory.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodInvoker.ForDefaultMethodInvocation.Factory.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodInvoker.ForSuperMethodInvocation.Factory.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodInvoker.ForVirtualInvocation.Factory.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType.make
(TypeDescription instrumentedType) Creates a method invoker.MethodCall.MethodLocator.Factory.make
(TypeDescription instrumentedType) Creates a method locator for a given instrumented type.MethodCall.MethodLocator.ForElementMatcher.Factory.make
(TypeDescription instrumentedType) Creates a method locator for a given instrumented type.MethodCall.MethodLocator.ForExplicitMethod.make
(TypeDescription instrumentedType) Creates a method locator for a given instrumented type.MethodCall.MethodLocator.ForInstrumentedMethod.make
(TypeDescription instrumentedType) Creates a method locator for a given instrumented type.MethodCall.TerminationHandler.Factory.make
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler.FieldSetting.Explicit.make
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler.FieldSetting.Implicit.make
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler.Simple.make
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.Implementation.SpecialMethodInvocation.Simple.of
(MethodDescription methodDescription, TypeDescription typeDescription) Creates a special method invocation for a given invocation target.protected static MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.ForConstruction.of
(TypeDescription typeDescription, MethodList<?> methods, MethodDelegationBinder methodDelegationBinder) Creates an implementation delegate for constructing a new instance.protected static StackManipulation
ToStringMethod.ValueConsumer.of
(TypeDescription typeDescription) Resolves an appropriate value resolver for a given type.MethodCall.WithoutSpecifiedTarget.on
(StackManipulation stackManipulation, TypeDescription typeDescription) Invokes the specified method on an instance that is loaded by the provided stack manipulation.FieldAccessor.FieldLocation.Absolute.prepare
(TypeDescription instrumentedType) A prepared field location.FieldAccessor.FieldLocation.prepare
(TypeDescription instrumentedType) A prepared field location.FieldAccessor.FieldLocation.Relative.prepare
(TypeDescription instrumentedType) A prepared field location.static Implementation
DefaultMethodCall.prioritize
(TypeDescription... prioritizedInterface) Creates aDefaultMethodCall
implementation which searches the given list of interface types for a suitable default method in their order.protected abstract StackManipulation
EqualsMethod.SuperClassCheck.resolve
(TypeDescription instrumentedType) Resolves a stack manipulation for the required super class check.protected abstract StackManipulation
EqualsMethod.TypeCompatibilityCheck.resolve
(TypeDescription instrumentedType) Resolves a stack manipulation for the required type compatibility check.protected StackManipulation
FieldAccessor.ForSetter.OfConstantValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfDefaultValue.resolve
(Void initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfFieldValue.resolve
(FieldAccessor.FieldLocation.Prepared target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfParameterValue.resolve
(Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfReferenceValue.resolve
(FieldDescription.InDefinedShape target, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.protected abstract StackManipulation
FieldAccessor.ForSetter.resolve
(T initialized, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the stack manipulation to load the value being set.HashCodeMethod.OffsetProvider.ForDynamicTypeHash.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForFixedValue.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForStaticTypeHash.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.ForSuperMethodCall.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.HashCodeMethod.OffsetProvider.resolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForBooleanConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForByteConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForCharacterConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForDoubleConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForEnumerationValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForFloatConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForIntegerConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodInstanceAndParameters.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodParameters.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForLongConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForShortConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForStringConstant.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.InvokeDynamic.InvocationProvider.Default.Target.resolve
(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing) Resolves the target.InvokeDynamic.InvocationProvider.Target.resolve
(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing) Resolves the target.protected abstract StackManipulation
InvokeDynamic.TerminationHandler.resolve
(MethodDescription interceptedMethod, TypeDescription returnType, Assigner assigner, Assigner.Typing typing) Returns a stack manipulation that handles the method return.MethodCall.MethodLocator.ForElementMatcher.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForExplicitMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.ForInstrumentedMethod.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.MethodLocator.resolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.MethodCall.TargetHandler.ForField.Location.ForExplicitField.resolve
(TypeDescription instrumentedType) Resolves the field to invoke the method upon.MethodCall.TargetHandler.ForField.Location.ForImplicitField.resolve
(TypeDescription instrumentedType) Resolves the field to invoke the method upon.MethodCall.TargetHandler.ForField.Location.resolve
(TypeDescription instrumentedType) Resolves the field to invoke the method upon.protected abstract FieldDescription
MethodDelegation.ImplementationDelegate.ForField.resolve
(TypeDescription instrumentedType) Resolves the field to which is delegated.protected FieldDescription
MethodDelegation.ImplementationDelegate.ForField.WithInstance.resolve
(TypeDescription instrumentedType) protected FieldDescription
MethodDelegation.ImplementationDelegate.ForField.WithLookup.resolve
(TypeDescription instrumentedType) ToStringMethod.PrefixResolver.ForFixedValue.resolve
(TypeDescription instrumentedType) Resolves the prefixed value.ToStringMethod.PrefixResolver.resolve
(TypeDescription instrumentedType) Resolves the prefixed value.FieldAccessor.ForImplicitProperty.setsValue
(TypeDescription typeDescription) Defines a setter of a given class constant value for the described field.FieldAccessor.PropertyConfigurable.setsValue
(TypeDescription typeDescription) Defines a setter of a given class constant value for the described field.static Implementation
ExceptionMethod.throwing
(TypeDescription throwableType) Creates an implementation that creates a new instance of the givenThrowable
type on each method invocation which is then thrown immediately.static Implementation
ExceptionMethod.throwing
(TypeDescription throwableType, String message) Creates an implementation that creates a new instance of the givenThrowable
type on each method invocation which is then thrown immediately.static MethodDelegation
MethodDelegation.to
(TypeDescription typeDescription) Delegates any intercepted method to invoke astatic
method that is declared by the supplied type.MethodDelegation.WithCustomProperties.to
(TypeDescription typeDescription) Delegates any intercepted method to invoke astatic
method that is declared by the supplied type.static MethodDelegation
MethodDelegation.toConstructor
(TypeDescription typeDescription) Delegates any intercepted method to invoke a constructor of the supplied type.MethodDelegation.WithCustomProperties.toConstructor
(TypeDescription typeDescription) Delegates any intercepted method to invoke a constructor of the supplied type.FixedValue.value
(TypeDescription type) Returns the given type in form of a loaded type.MethodCall.with
(TypeDescription... typeDescription) Defines the given types to be provided as arguments to the invoked method where the represented types are stored in the generated class's constant pool.InvokeDynamic.AbstractDelegator.withNullValue
(TypeDescription... typeDescription) Passesnull
values of the given types to the bootstrapped method.InvokeDynamic.withNullValue
(TypeDescription... typeDescription) Passesnull
values of the given types to the bootstrapped method.InvokeDynamic.AbstractDelegator.withThis
(TypeDescription... typeDescription) Passes references tothis
onto the operand stack where the instance is represented as the given types.InvokeDynamic.withThis
(TypeDescription... typeDescription) Passes references tothis
onto the operand stack where the instance is represented as the given types.InvokeDynamic.AbstractDelegator.withType
(TypeDescription... typeDescription) Hands the provided types to the dynamically bound method.InvokeDynamic.withType
(TypeDescription... typeDescription) Hands the provided types to the dynamically bound method.Method parameters in net.bytebuddy.implementation with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionstatic Implementation
DefaultMethodCall.prioritize
(Collection<? extends TypeDescription> prioritizedInterfaces) Creates aDefaultMethodCall
implementation which searches the given list of interface types for a suitable default method in their order.Constructors in net.bytebuddy.implementation with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
AbstractBase
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, Implementation.Context.FrameGeneration frameGeneration) Create a new extractable view.protected
AbstractBase
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation) Creates a new implementation target.protected
AccessorMethod
(TypeDescription instrumentedType, MethodDescription methodDescription, TypeDescription typeDescription, String suffix) Creates a new accessor method.protected
AccessorMethodDelegation
(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, Implementation.SpecialMethodInvocation specialMethodInvocation) Creates a delegation to an accessor method.protected
Appender
(TypeDescription instrumentedType, StackManipulation baseline, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender.protected
Appender
(TypeDescription instrumentedType, T initialized, FieldAccessor.FieldLocation.Prepared fieldLocation) Creates a new appender for a field setter.protected
Appender
(TypeDescription originType) Creates a new appender.protected
Appender
(TypeDescription instrumentedType) Creates a new byte code appender for returningthis
.protected
Appender
(TypeDescription instrumentedType) Creates a new appender.Appender
(TypeDescription instrumentedType) Creates a new byte code appender for an invoke dynamic implementation.protected
CacheValueField
(TypeDescription instrumentedType, TypeDescription.Generic fieldType, String suffix, int hashCode) Creates a new cache value field.protected
Default
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion auxiliaryClassFileVersion, Implementation.Context.FrameGeneration frameGeneration, String suffix) Creates a new default implementation context.protected
Disabled
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, Implementation.Context.FrameGeneration frameGeneration) Creates a new disabled implementation context.protected
Factory
(TypeDescription typeDescription) Creates a new method invoker factory for a virtual method call.protected
FieldCacheEntry
(StackManipulation fieldValue, TypeDescription fieldType) Creates a new field cache entry.protected
FieldGetter
(TypeDescription instrumentedType, FieldDescription fieldDescription, String suffix) Creates a new field getter.protected
FieldGetterDelegation
(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription) Creates a new field getter implementation.protected
FieldSetter
(TypeDescription instrumentedType, FieldDescription fieldDescription, String suffix) Creates a new field setter.protected
FieldSetterDelegation
(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription) Creates a new field setter implementation.protected
ForClassConstant
(TypeDescription typeDescription) Creates a new argument provider for the given type description.private
ForConstantValue
(Assigner assigner, Assigner.Typing typing, StackManipulation valueLoadInstruction, TypeDescription loadedType) Creates a new constant pool fixed value implementation.protected
ForConstantValue
(StackManipulation valueLoadInstruction, TypeDescription loadedType) Creates a new constant pool fixed value implementation.protected
ForConstructingInvocation
(TypeDescription instrumentedType) Creates a new target handle constructor invocation.protected
ForConstruction
(TypeDescription typeDescription, List<MethodDelegationBinder.Record> records) Creates a new compiled implementation delegate for a constructor delegation.protected
ForConstruction
(TypeDescription typeDescription, List<MethodDelegationBinder.Record> records) Creates an implementation delegate for constructing a new instance.protected
ForContextualInvocation
(TypeDescription instrumentedType) Creates a new method invoker for a contextual invocation.ForDefaultConstructor
(TypeDescription throwableType) Creates a new construction delegate that calls a default constructor.protected
ForDefaultMethodInvocation
(TypeDescription instrumentedType) Creates a new method invoker for a default method invocation.protected
ForElementMatcher
(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a new method locator for an element matcher.protected
ForExplicitType
(TypeDescription typeDescription) Creates a new return type provider for an explicit return type.protected
ForInstance
(Object value, TypeDescription fieldType) Creates a new argument provider that stores the given value in a static field.ForInstrumentedType
(TypeDescription instrumentedType) Creates an argument loader for supporting the instrumented type as a type constant as an argument.protected
ForNullValue
(TypeDescription typeDescription) Creates a new argument provider for thenull
value.protected
ForSelfOrStaticInvocation
(TypeDescription instrumentedType) Creates a new target handler for a static or self-declared invocation.ForStringConstructor
(TypeDescription throwableType, String message) Creates a new construction delegate that calls a constructor by handing it the given string.protected
ForSuperMethodInvocation
(TypeDescription instrumentedType) Creates a method invoker for a super method invocation.protected
ForThisInstance
(TypeDescription typeDescription) Creates a new argument provider for the instance of the instrumented type.ForThisReference
(TypeDescription instrumentedType) Creates an argument loader that supplies thethis
instance as an argument.protected
ForVirtualInvocation
(TypeDescription typeDescription) Creates a new method invoking for a virtual method invocation.protected
Resolved
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a resolved target handler for a static or self-declared invocation.protected
Simple
(MethodDescription methodDescription, TypeDescription typeDescription, StackManipulation stackManipulation) Creates a new legal special method invocation.Simple
(StackManipulation stackManipulation, TypeDescription loadedType) Creates a simple resolved argument provider.Simple
(StackManipulation stackManipulation, String internalName, TypeDescription returnType, List<TypeDescription> parameterTypes) Creates a new simple instance.protected
Simple
(TypeDescription typeDescription, StackManipulation stackManipulation) Creates a simple target handler.private
StaticFieldByteCodeAppender
(TypeDescription instrumentedType) Creates a new byte code appender for returning a value of a static field from an instrumented method.protected
Target
(String internalName, TypeDescription returnType, List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod) Creates a new target.protected
WithExplicitType
(String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription) Creates an argument provider for a field value with an explicit type.protected
WithExplicitType
(int index, TypeDescription typeDescription) Creates a new argument provider for a method parameter with an explicit type.Constructor parameters in net.bytebuddy.implementation with type arguments of type TypeDescriptionModifierConstructorDescriptionprotected
Appender
(Implementation.Target implementationTarget, List<TypeDescription> prioritizedInterfaces) Creates a new appender for implementing aDefaultMethodCall
.protected
DefaultMethodCall
(List<TypeDescription> prioritizedInterfaces) Creates a newDefaultMethodCall
implementation for a given list of prioritized interfaces.Simple
(StackManipulation stackManipulation, List<TypeDescription> loadedTypes) Creates a simple resolved argument provider.Simple
(StackManipulation stackManipulation, String internalName, TypeDescription returnType, List<TypeDescription> parameterTypes) Creates a new simple instance. -
Uses of TypeDescription in net.bytebuddy.implementation.attribute
Methods in net.bytebuddy.implementation.attribute with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic void
AnnotationAppender.Default.apply
(org.objectweb.asm.AnnotationVisitor annotationVisitor, TypeDescription valueType, String name, Object value) Performs the writing of a given annotation value to an annotation visitor.void
TypeAttributeAppender.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.void
TypeAttributeAppender.Compound.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.void
TypeAttributeAppender.Explicit.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.void
TypeAttributeAppender.ForInstrumentedType.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.void
TypeAttributeAppender.ForInstrumentedType.Differentiating.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.void
TypeAttributeAppender.NoOp.apply
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.FieldAttributeAppender.Explicit.make
(TypeDescription typeDescription) Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender.Factory.Compound.make
(TypeDescription typeDescription) Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender.Factory.make
(TypeDescription typeDescription) Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender.ForInstrumentedField.make
(TypeDescription typeDescription) Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender.NoOp.make
(TypeDescription typeDescription) Returns a field attribute appender that is applicable for a given type description.MethodAttributeAppender.Explicit.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender.Factory.Compound.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender.Factory.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender.ForInstrumentedMethod.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender.ForReceiverType.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender.NoOp.make
(TypeDescription typeDescription) Returns a method attribute appender that is applicable for a given type description.RecordComponentAttributeAppender.Explicit.make
(TypeDescription typeDescription) Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender.Factory.Compound.make
(TypeDescription typeDescription) Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender.Factory.make
(TypeDescription typeDescription) Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender.ForInstrumentedRecordComponent.make
(TypeDescription typeDescription) Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender.NoOp.make
(TypeDescription typeDescription) Returns a record component attribute appender that is applicable for a given type description.AnnotationValueFilter.Default.on
(TypeDescription instrumentedType) Creates an annotation value filter for writing annotations on an instrumented type.AnnotationValueFilter.Factory.on
(TypeDescription instrumentedType) Creates an annotation value filter for writing annotations on an instrumented type.Constructors in net.bytebuddy.implementation.attribute with parameters of type TypeDescriptionModifierConstructorDescriptionDifferentiating
(TypeDescription typeDescription) Creates a new differentiating type attribute appender. -
Uses of TypeDescription in net.bytebuddy.implementation.auxiliary
Fields in net.bytebuddy.implementation.auxiliary declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
MethodCallProxy.ConstructorCall.Appender.instrumentedType
The instrumented type being created.private final TypeDescription
MethodCallProxy.MethodCall.Appender.instrumentedType
The instrumented type that is implemented.private final TypeDescription
TypeProxy.SilentConstruction.Appender.instrumentedType
The instrumented type that this factory method is created for.private final TypeDescription
TypeProxy.ForDefaultMethod.proxiedType
The proxied interface type.private final TypeDescription
TypeProxy.ForSuperMethodByConstructor.proxiedType
The type for the type proxy to subclass or implement.private final TypeDescription
TypeProxy.ForSuperMethodByReflectionFactory.proxiedType
The type for which a proxy type is created.private final TypeDescription
TypeProxy.proxiedType
The type that is proxied, i.e.Methods in net.bytebuddy.implementation.auxiliary that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionprivate static LinkedHashMap
<String, TypeDescription> MethodCallProxy.extractFields
(MethodDescription methodDescription) Creates a linked hash map of field names to their types where each field represents a parameter of the method.Methods in net.bytebuddy.implementation.auxiliary with parameters of type TypeDescriptionModifier and TypeMethodDescriptionMethodCallProxy.PrecomputedMethodGraph.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.MethodCallProxy.PrecomputedMethodGraph.compile
(TypeDescription typeDescription) Deprecated.MethodCallProxy.PrecomputedMethodGraph.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.TypeProxy.InvocationFactory.invoke
(Implementation.Target implementationTarget, TypeDescription proxiedType, MethodDescription instrumentedMethod) Creates a special method invocation to implement for a given method.AuxiliaryType.NamingStrategy.Enumerating.name
(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Names an auxiliary type.AuxiliaryType.NamingStrategy.name
(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Names an auxiliary type.AuxiliaryType.NamingStrategy.Suffixing.name
(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Names an auxiliary type.AuxiliaryType.NamingStrategy.SuffixingRandom.name
(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Names an auxiliary type.Constructors in net.bytebuddy.implementation.auxiliary with parameters of type TypeDescriptionModifierConstructorDescriptionprivate
Appender
(TypeDescription instrumentedType) Creates a new appender.private
Appender
(TypeDescription instrumentedType) Creates a new appender.protected
Appender
(TypeDescription instrumentedType) Creates a new appender.private
Appender
(TypeDescription instrumentedType) Creates a new appender.ForDefaultMethod
(TypeDescription proxiedType, Implementation.Target implementationTarget, boolean serializableProxy) Creates a new proxy creation for a default interface type proxy.ForSuperMethodByConstructor
(TypeDescription proxiedType, MethodDescription.InDefinedShape constructor, Implementation.Target implementationTarget, boolean ignoreFinalizer, boolean serializableProxy) Creates a new stack operation for creating a type proxy by calling one of its constructors.ForSuperMethodByReflectionFactory
(TypeDescription proxiedType, Implementation.Target implementationTarget, boolean ignoreFinalizer, boolean serializableProxy) Creates a new stack operation for reflectively creating a type proxy for the given arguments.TypeProxy
(TypeDescription proxiedType, Implementation.Target implementationTarget, TypeProxy.InvocationFactory invocationFactory, boolean ignoreFinalizer, boolean serializableProxy) Creates a new type proxy. -
Uses of TypeDescription in net.bytebuddy.implementation.bind
Fields in net.bytebuddy.implementation.bind declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
MethodDelegationBinder.MethodInvoker.Virtual.typeDescription
The type on which a method should be invoked virtually.Methods in net.bytebuddy.implementation.bind with parameters of type TypeDescriptionModifier and TypeMethodDescriptionArgumentTypeResolver.PrimitiveTypePrecedence.forPrimitive
(TypeDescription typeDescription) Locates the primitive type precedence for a given type.private static MethodDelegationBinder.AmbiguityResolver.Resolution
ArgumentTypeResolver.resolveRivalBinding
(TypeDescription sourceParameterType, int leftParameterIndex, MethodDelegationBinder.MethodBinding left, int rightParameterIndex, MethodDelegationBinder.MethodBinding right) Resolves two bindings by comparing their binding of similar arguments and determining their most specific types.Constructors in net.bytebuddy.implementation.bind with parameters of type TypeDescriptionModifierConstructorDescriptionVirtual
(TypeDescription typeDescription) Creates an immutable method invoker that dispatches all methods on a given type. -
Uses of TypeDescription in net.bytebuddy.implementation.bind.annotation
Fields in net.bytebuddy.implementation.bind.annotation declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
Pipe.Binder.RedirectionProxy.forwardingType
The type that declares the method for forwarding a method invocation.private final TypeDescription
FieldProxy.Binder.AccessorProxy.instrumentedType
The type which is accessed.private final TypeDescription
FieldProxy.Binder.InstanceFieldConstructor.instrumentedType
The instrumented type from which a field is to be accessed.private final TypeDescription
Morph.Binder.RedirectionProxy.InstanceFieldConstructor.instrumentedType
The instrumented type.private final TypeDescription
Morph.Binder.RedirectionProxy.instrumentedType
The type that is instrumented on which the super method is invoked.private final TypeDescription
Pipe.Binder.RedirectionProxy.ConstructorCall.Appender.instrumentedType
The instrumented type being created.private final TypeDescription
Pipe.Binder.RedirectionProxy.MethodCall.Appender.instrumentedType
The instrumented type that is implemented.private final TypeDescription
Morph.Binder.RedirectionProxy.morphingType
The interface type that is implemented by the generated proxy.private final TypeDescription
FieldProxy.Binder.FieldResolver.Factory.Duplex.proxyType
The type of the accessor proxy.private final TypeDescription
FieldProxy.Binder.FieldResolver.ForGetterSetterPair.proxyType
The type of the accessor proxy.private final TypeDescription
Default.Binder.TypeLocator.ForType.typeDescription
The type to be returned upon resolution.private final TypeDescription
DefaultCall.Binder.DefaultMethodLocator.Explicit.typeDescription
A description of the type on which the default method should be invoked.private final TypeDescription
DefaultCallHandle.Binder.DefaultMethodLocator.Explicit.typeDescription
A description of the type on which the default method should be invoked.private final TypeDescription
DefaultMethod.Binder.MethodLocator.ForExplicitType.typeDescription
The explicit target type.private final TypeDescription
DefaultMethodHandle.Binder.MethodLocator.ForExplicitType.typeDescription
The explicit target type.private final TypeDescription
FieldProxy.Binder.FieldGetter.Appender.typeDescription
The generated accessor type.private final TypeDescription
FieldProxy.Binder.FieldSetter.Appender.typeDescription
The generated accessor type.private final TypeDescription
Morph.Binder.DefaultMethodLocator.Explicit.typeDescription
A description of the type on which the default method should be invoked.private final TypeDescription
Morph.Binder.RedirectionProxy.MethodCall.Appender.typeDescription
The proxy type.private final TypeDescription
Super.Binder.TypeLocator.ForType.typeDescription
The type to be returned upon resolution.Fields in net.bytebuddy.implementation.bind.annotation with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final Map
<? extends TypeDescription, ? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> TargetMethodAnnotationDrivenBinder.DelegationProcessor.parameterBinders
A map of registered annotation types to the binder that is responsible for binding a parameter that is annotated with the given annotation.Methods in net.bytebuddy.implementation.bind.annotation that return TypeDescriptionModifier and TypeMethodDescriptionprotected TypeDescription
FieldGetterHandle.Binder.Delegate.declaringType
(AnnotationDescription.Loadable<FieldGetterHandle> annotation) protected TypeDescription
FieldProxy.Binder.declaringType
(AnnotationDescription.Loadable<FieldProxy> annotation) protected TypeDescription
FieldSetterHandle.Binder.Delegate.declaringType
(AnnotationDescription.Loadable<FieldSetterHandle> annotation) protected TypeDescription
FieldValue.Binder.Delegate.declaringType
(AnnotationDescription.Loadable<FieldValue> annotation) protected abstract TypeDescription
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.declaringType
(AnnotationDescription.Loadable<S> annotation) Extracts the declaring type from an annotation.FieldProxy.Binder.FieldResolver.ForGetter.getProxyType()
Returns the type of the field access proxy.FieldProxy.Binder.FieldResolver.ForGetterSetterPair.getProxyType()
Returns the type of the field access proxy.FieldProxy.Binder.FieldResolver.ForSetter.getProxyType()
Returns the type of the field access proxy.FieldProxy.Binder.FieldResolver.getProxyType()
Returns the type of the field access proxy.FieldProxy.Binder.FieldResolver.Unresolved.getProxyType()
Returns the type of the field access proxy.Default.Binder.TypeLocator.ForParameterType.resolve
(TypeDescription.Generic parameterType) Resolves the target type.Default.Binder.TypeLocator.ForType.resolve
(TypeDescription.Generic parameterType) Resolves the target type.Default.Binder.TypeLocator.resolve
(TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.ForInstrumentedType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.ForParameterType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.ForType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Methods in net.bytebuddy.implementation.bind.annotation that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionprivate static LinkedHashMap
<String, TypeDescription> Pipe.Binder.RedirectionProxy.extractFields
(MethodDescription methodDescription) Extracts all parameters of a method to fields.Methods in net.bytebuddy.implementation.bind.annotation with parameters of type TypeDescriptionModifier and TypeMethodDescriptionFieldProxy.Binder.install
(TypeDescription typeDescription) Creates a binder by installing a single proxy type where annotating a parameter withFieldProxy
allows getting and setting values for a given field.FieldProxy.Binder.install
(TypeDescription getterType, TypeDescription setterType) Creates a binder by installing two proxy types which are implemented by this binder if a field getter or a field setter is requested by using theFieldProxy
annotation.Morph.Binder.install
(TypeDescription typeDescription) Installs a given type for use on aMorph
annotation.Pipe.Binder.install
(TypeDescription typeDescription) Installs a given type for use on aPipe
annotation.protected static Default.Binder.TypeLocator
Default.Binder.TypeLocator.ForType.of
(TypeDescription typeDescription) Resolves a type locator based upon an annotation value.protected static Super.Binder.TypeLocator
Super.Binder.TypeLocator.ForType.of
(TypeDescription typeDescription) Resolves a type locator based upon an annotation value.private static MethodDescription.InDefinedShape
FieldProxy.Binder.onlyMethod
(TypeDescription typeDescription) Extracts the only method from a given type description which is validated for the required properties for using the type as a proxy base type.private static MethodDescription
Morph.Binder.onlyMethod
(TypeDescription typeDescription) Extracts the only method of a given type and validates to fit the constraints of the morph annotation.private static MethodDescription
Pipe.Binder.onlyMethod
(TypeDescription typeDescription) Locates the only method of a type that is compatible to being overridden for invoking the proxy.protected abstract StackManipulation
Super.Instantiation.proxyFor
(TypeDescription proxyType, Implementation.Target implementationTarget, AnnotationDescription.Loadable<Super> annotation) Creates a stack manipulation which loads asuper
-call proxy onto the stack.FieldProxy.Binder.FieldResolver.Factory.Duplex.resolve
(TypeDescription parameterType, FieldDescription fieldDescription) Creates a field resolver.FieldProxy.Binder.FieldResolver.Factory.resolve
(TypeDescription parameterType, FieldDescription fieldDescription) Creates a field resolver.FieldProxy.Binder.FieldResolver.Factory.Simplex.resolve
(TypeDescription parameterType, FieldDescription fieldDescription) Creates a field resolver.Super.Binder.TypeLocator.ForInstrumentedType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.ForParameterType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.ForType.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.Binder.TypeLocator.resolve
(TypeDescription instrumentedType, TypeDescription.Generic parameterType) Resolves the target type.Super.ConstructorResolver.Default.resolve
(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.Super.ConstructorResolver.resolve
(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.Method parameters in net.bytebuddy.implementation.bind.annotation with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionSuper.ConstructorResolver.Default.resolve
(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.Super.ConstructorResolver.resolve
(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.Constructors in net.bytebuddy.implementation.bind.annotation with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
AccessorProxy
(FieldDescription fieldDescription, TypeDescription instrumentedType, FieldProxy.Binder.FieldResolver fieldResolver, Assigner assigner, boolean serializableProxy) private
Appender
(TypeDescription instrumentedType) Creates a new appender.private
Appender
(TypeDescription instrumentedType) Creates a new appender.protected
Binder
(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a new binder for aFieldProxy
in duplex mode.protected
Duplex
(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a new duplex factory.Explicit
(TypeDescription typeDescription) Creates a new explicit default method locator.Explicit
(TypeDescription typeDescription) Creates a new explicit default method locator.Explicit
(TypeDescription typeDescription) Creates a new explicit default method locator.protected
ForExplicitType
(TypeDescription typeDescription) Creates a method locator for an explicit target.protected
ForExplicitType
(TypeDescription typeDescription) Creates a method locator for an explicit target.protected
ForGetterSetterPair
(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) Creates a new field resolver for an accessor that both gets and sets a field value.protected
ForType
(TypeDescription typeDescription) Creates a new type locator for a given type.protected
ForType
(TypeDescription typeDescription) Creates a new type locator for a given type.protected
InstanceFieldConstructor
(TypeDescription instrumentedType) Creates a new implementation for implementing a field accessor proxy's constructor when accessing a non-static field.protected
InstanceFieldConstructor
(TypeDescription instrumentedType) Creates a new instance field constructor implementation.protected
RedirectionProxy
(TypeDescription morphingType, TypeDescription instrumentedType, Implementation.SpecialMethodInvocation specialMethodInvocation, Assigner assigner, boolean serializableProxy) Creates a new redirection proxy.protected
RedirectionProxy
(TypeDescription forwardingType, MethodDescription sourceMethod, Assigner assigner, boolean serializableProxy) Creates a new redirection.Constructor parameters in net.bytebuddy.implementation.bind.annotation with type arguments of type TypeDescriptionModifierConstructorDescriptionprotected
DelegationProcessor
(Map<? extends TypeDescription, ? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders) Creates a new delegation processor. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode
Fields in net.bytebuddy.implementation.bytecode declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
TypeCreation.typeDescription
The type that is being created.Methods in net.bytebuddy.implementation.bytecode with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic StackManipulation
TypeCreation.of
(TypeDescription typeDescription) Creates a type creation for the given type.Constructors in net.bytebuddy.implementation.bytecode with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
TypeCreation
(TypeDescription typeDescription) Constructs a new type creation. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode.assign
Fields in net.bytebuddy.implementation.bytecode.assign declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
InstanceCheck.typeDescription
The type to apply the instance check against.private final TypeDescription
TypeCasting.typeDescription
The type description to which a value should be casted.Methods in net.bytebuddy.implementation.bytecode.assign with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic StackManipulation
InstanceCheck.of
(TypeDescription typeDescription) Creates a new instance check.Constructors in net.bytebuddy.implementation.bytecode.assign with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
InstanceCheck
(TypeDescription typeDescription) Creates a new instance check.protected
TypeCasting
(TypeDescription typeDescription) Creates a new type casting. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode.assign.primitive
Fields in net.bytebuddy.implementation.bytecode.assign.primitive declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
PrimitiveUnboxingDelegate.primitiveType
The represented primitive type.private final TypeDescription
PrimitiveBoxingDelegate.wrapperType
A description of a wrapper type.private final TypeDescription
PrimitiveUnboxingDelegate.wrapperType
The wrapper type of the represented primitive type. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode.collection
Constructors in net.bytebuddy.implementation.bytecode.collection with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
ForReferenceType
(TypeDescription referenceType) Creates a new array creator for a reference type. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode.constant
Fields in net.bytebuddy.implementation.bytecode.constant declared as TypeDescriptionModifier and TypeFieldDescriptionprivate static final TypeDescription
MethodConstant.CachedConstructor.CONSTRUCTOR_TYPE
A description of theConstructor
type.private static final TypeDescription
MethodConstant.CachedMethod.METHOD_TYPE
A description of theMethod
type.private final TypeDescription
ClassConstant.ForReferenceType.typeDescription
The type which should be loaded onto the operand stack as a class value.Methods in net.bytebuddy.implementation.bytecode.constant with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic StackManipulation
ClassConstant.of
(TypeDescription typeDescription) Returns a stack manipulation that loads aClass
type onto the operand stack which represents the given type.Method parameters in net.bytebuddy.implementation.bytecode.constant with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionorg.objectweb.asm.Type
JavaConstantValue.Visitor.onType
(JavaConstant.Simple<TypeDescription> constant) Invoked on aJavaConstant.Simple
constant that represents aTypeDescription
.protected static List
<StackManipulation> MethodConstant.typeConstantsFor
(List<TypeDescription> parameterTypes) Returns a list of type constant load operations for the given list of parameters.Constructors in net.bytebuddy.implementation.bytecode.constant with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
ForReferenceType
(TypeDescription typeDescription) Creates a stack manipulation that represents loading a class constant onto the stack. -
Uses of TypeDescription in net.bytebuddy.implementation.bytecode.member
Fields in net.bytebuddy.implementation.bytecode.member declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
MethodInvocation.OfGenericMethod.targetType
The generically resolved return type of the method.private final TypeDescription
MethodInvocation.Invocation.typeDescription
The method to be invoked.Methods in net.bytebuddy.implementation.bytecode.member with parameters of type TypeDescriptionModifier and TypeMethodDescriptionMethodInvocation.IllegalInvocation.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.Invocation.dynamic
(String name, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.OfGenericMethod.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.WithImplicitInvocationTargetType.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget.ofIndex
(TypeDescription parameterType, int index) Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.MethodVariableAccess.MethodLoading.TypeCastingHandler.NoOp.ofIndex
(TypeDescription parameterType, int index) Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.MethodVariableAccess.MethodLoading.TypeCastingHandler.ofIndex
(TypeDescription parameterType, int index) Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.MethodInvocation.IllegalInvocation.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.Invocation.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.OfGenericMethod.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.WithImplicitInvocationTargetType.special
(TypeDescription invocationTarget) Transforms this method invocation into a special invocation on the given type.MethodInvocation.IllegalInvocation.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.Invocation.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.OfGenericMethod.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.MethodInvocation.WithImplicitInvocationTargetType.virtual
(TypeDescription invocationTarget) Transforms this method invocation into a virtual (or interface) method invocation on the given type.Method parameters in net.bytebuddy.implementation.bytecode.member with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionMethodInvocation.IllegalInvocation.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.Invocation.dynamic
(String name, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.OfGenericMethod.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.MethodInvocation.WithImplicitInvocationTargetType.dynamic
(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments) Invokes the method as a bootstrap method to bind a call site with the given properties.Constructors in net.bytebuddy.implementation.bytecode.member with parameters of type TypeDescriptionModifierConstructorDescriptionprotected
Invocation
(MethodDescription.InDefinedShape methodDescription, TypeDescription typeDescription) Creates an invocation of a given method on a given invocation target type.protected
OfGenericMethod
(TypeDescription targetType, MethodInvocation.WithImplicitInvocationTargetType invocation) Creates a generic method invocation. -
Uses of TypeDescription in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher with type parameters of type TypeDescriptionModifier and TypeClassDescriptionclass
ClassFileVersionMatcher<T extends TypeDescription>
A matcher to consider if a class file version reaches a given boundary.class
HasSuperClassMatcher<T extends TypeDescription>
An element matcher that matches a super class.class
HasSuperTypeMatcher<T extends TypeDescription>
An element matcher that matches a super type.class
InheritedAnnotationMatcher<T extends TypeDescription>
An element matcher that matches the list of inherited annotations of a type description.class
SubTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's subtype.class
SuperTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's super type.Fields in net.bytebuddy.matcher declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
AccessibilityMatcher.typeDescription
The type that is to be checked for its viewing rights.private final TypeDescription
SubTypeMatcher.typeDescription
The type to be matched being a super type of the matched type.private final TypeDescription
SuperTypeMatcher.typeDescription
The type to be matched being a sub type of the matched type.private final TypeDescription
VisibilityMatcher.typeDescription
The type that is to be checked for its viewing rights.Fields in net.bytebuddy.matcher with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super TypeDescription> AnnotationTypeMatcher.matcher
The type matcher to apply to an annotation's type.private final ElementMatcher
<? super Iterable<? extends TypeDescription>> CollectionErasureMatcher.matcher
The matcher to be applied to the raw types.private final ElementMatcher
<? super TypeDescription> ErasureMatcher.matcher
The matcher to apply to the raw type of the matched element.private final ElementMatcher
<? super TypeDescription> InstanceTypeMatcher.matcher
The matcher to apply to the object's type.Methods in net.bytebuddy.matcher with type parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasAnnotation
(ElementMatcher<? super AnnotationDescription> matcher) Matches a list of annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasClassFileVersionAtLeast
(ClassFileVersion classFileVersion) Matches a type to have a minimal class file version.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasClassFileVersionAtMost
(ClassFileVersion classFileVersion) Matches a type to have a maximal class file version.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperClass
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperType
(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperClass
(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperType
(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation
(Class<?> type) Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation
(TypeDescription type) Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation
(ElementMatcher<? super TypeDescription> matcher) Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isAnnotation()
Matches aTypeDescription
that is an annotation type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isInterface()
Matches aTypeDescription
that is an interface.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSubTypeOf
(Class<?> type) Matches any type description that is a subtype of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSubTypeOf
(TypeDescription type) Matches any type description that is a subtype of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSuperTypeOf
(Class<?> type) Matches any type description that is a super type of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSuperTypeOf
(TypeDescription type) Matches any type description that is a super type of the given type.Methods in net.bytebuddy.matcher with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType
(TypeDescription type) Matches if an annotation is of a given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.canThrow
(TypeDescription exceptionType) Matches aMethodDescription
by its capability to throw a given checked exception.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresException
(TypeDescription exceptionType) Matches a method that declares the given generic exception type as a (erased) exception type.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> ElementMatchers.erasure
(TypeDescription type) Matches a generic type's erasure against the provided type.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures
(TypeDescription... type) Matches an iteration of generic types' erasures against the provided types.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.fieldType
(TypeDescription fieldType) Matches a field's raw type against the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation
(TypeDescription type) Matches any annotations by their type on a type that declared these annotations or inherited them from its super classes.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isAccessibleTo
(TypeDescription type) Matches aByteCodeElement
that is accessible to a givenClass
.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith
(TypeDescription type) Matches anAnnotationSource
for declared annotations.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy
(TypeDescription type) Matches aByteCodeElement
for being declared by a givenTypeDescription
.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter
(TypeDescription type) Matches any Java bean getter method which returns the given type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom
(TypeDescription type) Matches any virtual method with a signature that is compatible to a method that is declared the supplied type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter
(TypeDescription type) Matches any Java bean setter method which takes an argument the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSubTypeOf
(TypeDescription type) Matches any type description that is a subtype of the given type.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.isSuperTypeOf
(TypeDescription type) Matches any type description that is a super type of the given type.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isVisibleTo
(TypeDescription type) Matches aByteCodeElement
that is visible to a givenTypeDescription
.ElementMatcher
<? super S> LatentMatcher.Conjunction.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super S> LatentMatcher.Disjunction.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super FieldDescription> LatentMatcher.ForFieldToken.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super MethodDescription> LatentMatcher.ForMethodToken.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super RecordComponentDescription> LatentMatcher.ForRecordComponentToken.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super MethodDescription> LatentMatcher.ForSelfDeclaredMethod.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super T> LatentMatcher.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher
<? super S> LatentMatcher.Resolved.resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns
(TypeDescription type) MatchesMethodDescription
s that return a given erasure type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument
(int index, TypeDescription type) MatchesMethodDescription
s that define a given type erasure as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(TypeDescription... type) Matches a method description that takes the provided raw arguments.Method parameters in net.bytebuddy.matcher with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionstatic <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType
(ElementMatcher<? super TypeDescription> matcher) Matches if an annotation's type matches the supplied matcher.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> ElementMatchers.erasure
(ElementMatcher<? super TypeDescription> matcher) Converts a matcher for a type description into a matcher for the matched type's erasure.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures
(Iterable<? extends TypeDescription> types) Matches an iteration of generic types' erasures against the provided types.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures
(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher) Applies the provided matchers to an iteration og generic types' erasures.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.fieldType
(ElementMatcher<? super TypeDescription> matcher) Matches a field's raw type against the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperClass
(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperType
(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.hasType
(ElementMatcher<? super TypeDescription> matcher) Matches a parameter's type by the given matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation
(ElementMatcher<? super TypeDescription> matcher) Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith
(ElementMatcher<? super TypeDescription> matcher) Matches anAnnotationSource
for declared annotations.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy
(ElementMatcher<? super TypeDescription> matcher) Matches aByteCodeElement
for being declared by aTypeDescription
that is matched by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGetter
(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom
(ElementMatcher<? super TypeDescription> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isSetter
(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean setter method which takes an argument that matches the supplied matcher.private boolean
MethodOverrideMatcher.matches
(MethodDescription target, List<? extends TypeDefinition> typeDefinitions, Set<TypeDescription> duplicates) Matches a method against a list of types.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.ofType
(ElementMatcher<? super TypeDescription> matcher) Matches a class loader's type unless it is the bootstrap class loader which is never matched.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns
(ElementMatcher<? super TypeDescription> matcher) Matches a method's return type's erasure by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument
(int index, ElementMatcher<? super TypeDescription> matcher) MatchesMethodDescription
s that define a type erasure as a parameter at the given index that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(Iterable<? extends TypeDescription> types) Matches a method description that takes the provided raw arguments.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments
(ElementMatcher<? super Iterable<? extends TypeDescription>> matchers) Matches aMethodDescription
by applying an iterable collection of element matcher on any parameter'sTypeDescription
.Constructors in net.bytebuddy.matcher with parameters of type TypeDescriptionModifierConstructorDescriptionAccessibilityMatcher
(TypeDescription typeDescription) Creates a matcher that validates that a byte code element can be seen by a given type.SubTypeMatcher
(TypeDescription typeDescription) Creates a new matcher for matching its input for being a sub type of the giventypeDescription
.SuperTypeMatcher
(TypeDescription typeDescription) Creates a new matcher for matching its input for being a super type of the giventypeDescription
.VisibilityMatcher
(TypeDescription typeDescription) Creates a matcher that validates that a byte code element can be seen by a given type.Constructor parameters in net.bytebuddy.matcher with type arguments of type TypeDescriptionModifierConstructorDescriptionAnnotationTypeMatcher
(ElementMatcher<? super TypeDescription> matcher) Creates a new matcher for an annotation description's type.CollectionErasureMatcher
(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher) Creates a new raw type matcher.ErasureMatcher
(ElementMatcher<? super TypeDescription> matcher) Creates a new raw type matcher.InstanceTypeMatcher
(ElementMatcher<? super TypeDescription> matcher) Creates a new instance type matcher. -
Uses of TypeDescription in net.bytebuddy.pool
Classes in net.bytebuddy.pool that implement TypeDescriptionModifier and TypeClassDescriptionprotected static class
A type description that looks up any referencedByteCodeElement
orAnnotationDescription
by querying a type pool at lookup time.protected class
A lazy type description that resolves any property that is not the name only when requested.protected static class
A description of a type that delegates to another type pool once a property that is not the name is resolved.Fields in net.bytebuddy.pool declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.annotationType
The type of this annotation.private final TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType.typeDescription
The represented type's description.private final TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.typeDescription
A description of this primitive type token.private final TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.typeDescription
The represented non-generic type.private final TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType.typeDescription
The type description of the non-generic receiver type.private final TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType.typeDescription
The erasure of the type to be represented as a parameterized receiver type.private final TypeDescription
TypePool.Default.LazyTypeDescription.LazyNestMemberList.typeDescription
The type for which the nest members are represented.private final TypeDescription
TypePool.Resolution.Simple.typeDescription
The represented type description.Fields in net.bytebuddy.pool with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprotected static final Map
<String, TypeDescription> TypePool.AbstractBase.PRIMITIVE_TYPES
A map of primitive types by their name.private final Map
<String, TypeDescription> TypePool.Explicit.types
A mapping from type names to type descriptions of that name.Methods in net.bytebuddy.pool that return TypeDescriptionModifier and TypeMethodDescriptionTypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.TokenizedGenericType.asErasure()
Returns the erasure of this type.TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed.asErasure()
Returns the erasure of this type.protected TypeDescription
TypePool.Default.WithLazyResolution.LazyTypeDescription.delegate()
protected TypeDescription
TypePool.LazyFacade.LazyTypeDescription.delegate()
TypePool.Default.LazyTypeDescription.LazyNestMemberList.get
(int index) TypePool.Default.LazyTypeDescription.LazyTypeList.get
(int index) TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.getAnnotationType()
Returns a description of the annotation type of this annotation.TypePool.Default.LazyTypeDescription.getDeclaringType()
Returns the declaring type of this instance.TypePool.Default.LazyTypeDescription.LazyFieldDescription.getDeclaringType()
Returns the declaring type of this instance.TypePool.Default.LazyTypeDescription.LazyMethodDescription.getDeclaringType()
Returns the declaring type of this instance.TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription.getDeclaringType()
Returns the declaring type of this instance.TypePool.Default.LazyTypeDescription.getEnclosingType()
Returns a description of this type's enclosing type if any.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.TypePool.Default.LazyTypeDescription.getNestHost()
Returns the nest host of this type.private TypeDescription
TypePool.Default.parse
(byte[] binaryRepresentation) Parses a binary representation and transforms it into a type description.TypePool.AbstractBase.ArrayTypeResolution.resolve()
Resolves this resolution to aTypeDescription
.TypePool.Default.WithLazyResolution.LazyResolution.resolve()
Resolves this resolution to aTypeDescription
.TypePool.LazyFacade.LazyResolution.resolve()
Resolves this resolution to aTypeDescription
.TypePool.Resolution.Illegal.resolve()
Resolves this resolution to aTypeDescription
.TypePool.Resolution.resolve()
Resolves this resolution to aTypeDescription
.TypePool.Resolution.Simple.resolve()
Resolves this resolution to aTypeDescription
.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.protected TypeDescription
TypePool.Default.TypeExtractor.toTypeDescription()
Creates a type description from all data that is currently collected.Methods in net.bytebuddy.pool that return types with arguments of type TypeDescriptionModifier and TypeMethodDescriptionprotected AnnotationValue
<TypeDescription, Class<?>> TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForTypeValue.doResolve()
Methods in net.bytebuddy.pool with parameters of type TypeDescriptionModifier and TypeMethodDescriptionTypePool.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.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.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 TypeDescriptionModifierConstructorDescriptionprivate
LazyAnnotationDescription
(TypePool typePool, TypeDescription annotationType, Map<String, AnnotationValue<?, ?>> values) Creates a new lazy annotation description.protected
LazyNestMemberList
(TypeDescription typeDescription, TypePool typePool, List<String> nestMembers) Creates a new lazy type list of all nest members of this group.protected
LazyNonGenericReceiverType
(TypeDescription typeDescription) Creates a new non-generic receiver type of the supplied type.protected
LazyParameterizedReceiverType
(TypeDescription typeDescription) Creates a new lazy parameterized receiver type of the supplied receiver type.protected
LazyPrimitiveType
(TypePool typePool, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription typeDescription) Creates a new lazy primitive type.protected
RawAnnotatedType
(TypePool typePool, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription typeDescription) Creates a new raw annotated type.Simple
(TypeDescription typeDescription) Creates a new successful resolution of a given type description.Constructor parameters in net.bytebuddy.pool with type arguments of type TypeDescriptionModifierConstructorDescriptionExplicit
(Map<String, TypeDescription> types) Creates a new explicit type pool without a parent.Explicit
(TypePool parent, Map<String, TypeDescription> types) Creates a new explicit type pool. -
Uses of TypeDescription in net.bytebuddy.utility
Classes in net.bytebuddy.utility that implement TypeDescriptionModifier and TypeClassDescriptionprotected static class
A latent type that resolves the simple name without considering the declaring type which is not normally available.Fields in net.bytebuddy.utility declared as TypeDescriptionModifier and TypeFieldDescriptionprivate final TypeDescription
JavaConstant.MethodHandle.ownerType
The owner type that is represented by this instance.private final TypeDescription
JavaConstant.MethodHandle.returnType
The return type that is represented by this instance.private final TypeDescription
JavaConstant.MethodType.returnType
The return type of this method type.private final TypeDescription
ConstantValue.Simple.typeDescription
The description of the constant value's type.private final TypeDescription
JavaConstant.Dynamic.typeDescription
A description of the represented value's type.private final TypeDescription
JavaConstant.Simple.typeDescription
A description of the type of the constant.private final TypeDescription
JavaType.typeDescription
The type description to represent this type which is either a loaded type or a stub.Fields in net.bytebuddy.utility with type parameters of type TypeDescriptionModifier and TypeFieldDescriptionprivate final List
<? extends TypeDescription> JavaConstant.MethodHandle.parameterTypes
The parameter types that is represented by this instance.private final List
<? extends TypeDescription> JavaConstant.MethodType.parameterTypes
The parameter types of this method type.Methods in net.bytebuddy.utility that return TypeDescriptionModifier and TypeMethodDescriptionJavaConstant.MethodHandle.getOwnerType()
Returns the owner type of this instance.JavaConstant.MethodHandle.getReturnType()
Returns the return type represented by this instance.JavaConstant.MethodType.getReturnType()
Returns the return type of this method type.ConstantValue.getTypeDescription()
Returns a description of the type of this constant.ConstantValue.Simple.getTypeDescription()
Returns a description of the type of this constant.JavaConstant.Dynamic.getTypeDescription()
Returns a description of the type of this constant.JavaConstant.MethodHandle.getTypeDescription()
Returns a description of the type of this constant.JavaConstant.MethodType.getTypeDescription()
Returns a description of the type of this constant.JavaConstant.Simple.getTypeDescription()
Returns a description of the type of this constant.JavaType.getTypeStub()
Returns at least a stub representing this type where the stub does not define any methods or fields.JavaType.loadAsDescription()
Loads the class that is represented by this Java type and represents it as aTypeDescription
.Methods in net.bytebuddy.utility with parameters of type TypeDescriptionModifier and TypeMethodDescriptionstatic JavaConstant.MethodType
JavaConstant.MethodType.of
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Returns a method type description of the given return type and parameter types.static JavaConstant.MethodType
JavaConstant.MethodType.of
(TypeDescription returnType, TypeDescription... parameterType) Returns a method type description of the given return type and parameter types.static JavaConstant
JavaConstant.Simple.of
(TypeDescription typeDescription) Returns a Java constant representation for aTypeDescription
.static JavaConstant
JavaConstant.Dynamic.ofArrayVarHandle
(TypeDescription typeDescription) Resolves a var handle constant for an array.static JavaConstant.MethodType
JavaConstant.MethodType.ofConstant
(TypeDescription typeDescription) Returns a method type for the given constant type.static JavaConstant
JavaConstant.Dynamic.ofPrimitiveType
(TypeDescription typeDescription) Returns aClass
constant for a primitive type.static JavaConstant.MethodHandle
JavaConstant.MethodHandle.ofSpecial
(MethodDescription.InDefinedShape methodDescription, TypeDescription typeDescription) Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.JavaConstant.Dynamic.withType
(TypeDescription typeDescription) Resolves thisJavaConstant.Dynamic
constant to resolve the returned instance to the supplied type.Method parameters in net.bytebuddy.utility with type arguments of type TypeDescriptionModifier and TypeMethodDescriptionstatic JavaConstant.MethodType
JavaConstant.MethodType.of
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Returns a method type description of the given return type and parameter types.JavaConstant.Visitor.NoOp.onType
(JavaConstant.Simple<TypeDescription> constant) Invoked on aJavaConstant.Simple
constant that represents aTypeDescription
.JavaConstant.Visitor.onType
(JavaConstant.Simple<TypeDescription> constant) Invoked on aJavaConstant.Simple
constant that represents aTypeDescription
.Constructors in net.bytebuddy.utility with parameters of type TypeDescriptionModifierConstructorDescriptionDynamic
(String name, TypeDescription typeDescription, JavaConstant.MethodHandle bootstrap, List<JavaConstant> arguments) Creates a dynamic resolved constant.MethodHandle
(JavaConstant.MethodHandle.HandleType handleType, TypeDescription ownerType, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a method handle representation.protected
MethodType
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a method type for the given types.protected
OfTrivialValue
(S value, TypeDescription typeDescription) Creates a representation of a trivial constant that represents itself.protected
OfTypeDescription
(TypeDescription value) Creates a type constant.protected
Simple
(StackManipulation stackManipulation, TypeDescription typeDescription) Creates a simple constant value.protected
Simple
(T value, TypeDescription typeDescription) Creates a simple Java constant.Constructor parameters in net.bytebuddy.utility with type arguments of type TypeDescriptionModifierConstructorDescriptionMethodHandle
(JavaConstant.MethodHandle.HandleType handleType, TypeDescription ownerType, String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a method handle representation.protected
MethodType
(TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a method type for the given types.
TypeDescription.ForLoadedType.of(Class)
instead.