Uses of Interface
net.bytebuddy.description.type.TypeDescription
-
Packages that use TypeDescription Package Description net.bytebuddy Byte Buddy is a library for creating Java classes at runtime of a Java program.net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.build A package for types that allow for applying Byte Buddy transformation during a build process.net.bytebuddy.build.maven A package containing classes for applying Byte Buddy transformers within a Maven build.net.bytebuddy.description Classes of this package allow the representation of Java classes, their member and their meta data.net.bytebuddy.description.annotation Contains descriptions of annotations and annotation values.net.bytebuddy.description.enumeration A package that contains classes for describing enumeration values.net.bytebuddy.description.field Contains descriptions of Java fields.net.bytebuddy.description.method Contains descriptions of Java methods and constructors as well as their parameters.net.bytebuddy.description.type Contains descriptions of Java types and packages.net.bytebuddy.dynamic This package contains classes and interfaces that are connected to writing the byte stream that represents a Java type that is dynamically created and for loading this type into a running JVM process.net.bytebuddy.dynamic.loading This package contains classes that are responsible for class loading of classes that are represented bybyte
arrays.net.bytebuddy.dynamic.scaffold This package contains helper types and implementations that are responsible for the actual writing of a byte array representing a Java class.net.bytebuddy.dynamic.scaffold.inline All classes and types in this package are related to creating aDynamicType
by enhancing a given type.net.bytebuddy.dynamic.scaffold.subclass All classes and types in this package are related to creating aDynamicType
by creating a subclass of a given type.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.net.bytebuddy.implementation.attribute All types and classes in this package are responsible for writing attributes for a given Java byte code element, i.e.net.bytebuddy.implementation.auxiliary Auxiliary types describe helper types that aid as a supplementary to a givenInstrumentedType
.net.bytebuddy.implementation.bind The types and classes of this package are responsible for binding a method call to calling another method.net.bytebuddy.implementation.bind.annotation 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.net.bytebuddy.implementation.bytecode Types and classes in this package are responsible for creating Java byte code for a given byte code target which is represented by aMethodDescription
.net.bytebuddy.implementation.bytecode.assign AnAssigner
is responsible for transforming a givenTypeDescription
into another one.net.bytebuddy.implementation.bytecode.assign.primitive Assigner
implementations of this package are capable of handling primitive types or thevoid
type.net.bytebuddy.implementation.bytecode.collection This package is dedicated to creatingStackManipulation
s that create collections or arrays from a given number of values.net.bytebuddy.implementation.bytecode.constant StackManipulation
s in this package are responsible for creating compile-time constants and pushing them onto the operand stack.net.bytebuddy.implementation.bytecode.member StackManipulation
s of this package are responsible for accessing type or method members, i.e.net.bytebuddy.matcher Contains an API for matching Java byte code entities.net.bytebuddy.pool Classes of this package allow for the creatingTypeDescription
s without loading any classes.net.bytebuddy.utility 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 TypeDescription Modifier and Type Field Description private TypeDescription
ByteBuddy.EnumerationImplementation.ValuesMethodAppender. instrumentedType
The instrumented enumeration type.private TypeDescription
ByteBuddy.RecordConstructorStrategy.Appender. instrumentedType
The instrumented type.private TypeDescription
ByteBuddy.RecordObjectMethod. returnType
The return type.private TypeDescription
NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType. typeDescription
The type description which represents the resolved name.Fields in net.bytebuddy with type parameters of type TypeDescription Modifier and Type Field Description private java.util.List<? extends TypeDescription>
ByteBuddy.RecordObjectMethod. arguments
The arguments type.Methods in net.bytebuddy with parameters of type TypeDescription Modifier and Type Method Description <T> DynamicType.Builder<T>
ByteBuddy. decorate(TypeDescription type, ClassFileLocator classFileLocator)
Decorates a type withAsmVisitorWrapper
and allows adding attributes and annotations.java.util.List<MethodDescription.Token>
ByteBuddy.RecordConstructorStrategy. extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.MethodRegistry
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 java.lang.String
NamingStrategy.AbstractBase. name(TypeDescription superClass)
Determines a new name when creating a new type that subclasses the provided type.protected java.lang.String
NamingStrategy.PrefixingRandom. name(TypeDescription superClass)
protected java.lang.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.java.lang.String
NamingStrategy.AbstractBase. rebase(TypeDescription typeDescription)
Determines a name for the dynamic type when rebasing the provided type.java.lang.String
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.java.lang.String
NamingStrategy.AbstractBase. redefine(TypeDescription typeDescription)
Determines a name for the dynamic type when redefining the provided type.java.lang.String
NamingStrategy. redefine(TypeDescription typeDescription)
Determines a name for the dynamic type when redefining the provided type.java.lang.String
NamingStrategy.SuffixingRandom.BaseNameResolver.ForFixedValue. resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.java.lang.String
NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType. resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.java.lang.String
NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType. resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.java.lang.String
NamingStrategy.SuffixingRandom.BaseNameResolver. resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.Constructors in net.bytebuddy with parameters of type TypeDescription Constructor Description 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.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 TypeDescription Modifier and Type Field Description private TypeDescription
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer. instrumentedType
The instrumented type.private TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.FactoryImplementation.Appender. instrumentedType
The instrumented type.private TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation. lambdaType
The lambda expression's functional type.private TypeDescription
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation. targetType
The lambda expression's declaring type.private TypeDescription
AgentBuilder.Default.Transformation.TransformerIterator. typeDescription
A description of the matched type.Fields in net.bytebuddy.agent.builder with type parameters of type TypeDescription Modifier and Type Field Description private java.util.Map<TypeDescription,LoadedTypeInitializer>
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer. loadedTypeInitializers
The instrumented types and auxiliary types mapped to their loaded type initializers.private java.util.Collection<? extends ElementMatcher<? super TypeDescription>>
AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping. matchers
The type matchers to apply.private java.util.Map<TypeDescription,byte[]>
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer. rawAuxiliaryTypes
The auxiliary types mapped to their class file representation.private ElementMatcher<? super TypeDescription>
AgentBuilder.RawMatcher.ForElementMatchers. typeMatcher
The type matcher to apply to aTypeDescription
.Methods in net.bytebuddy.agent.builder that return TypeDescription Modifier and Type Method Description TypeDescription
AgentBuilder.DescriptionStrategy. apply(java.lang.String name, java.lang.Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, java.lang.ClassLoader classLoader, JavaModule module)
Describes the given type.TypeDescription
AgentBuilder.DescriptionStrategy.SuperTypeLoading. apply(java.lang.String name, java.lang.Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, java.lang.ClassLoader classLoader, JavaModule module)
Describes the given type.TypeDescription
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous. apply(java.lang.String name, java.lang.Class<?> type, TypePool typePool, AgentBuilder.CircularityLock circularityLock, java.lang.ClassLoader classLoader, JavaModule module)
Describes the given type.Methods in net.bytebuddy.agent.builder with parameters of type TypeDescription Modifier and Type Method Description DynamicType.Builder<?>
AgentBuilder.TypeStrategy. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)
Creates a type builder for a given type.DynamicType.Builder<?>
AgentBuilder.TypeStrategy.ForBuildEntryPoint. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)
Creates a type builder for a given type.protected void
AgentBuilder.RedefinitionStrategy.Collector. consider(AgentBuilder.RawMatcher matcher, AgentBuilder.Listener listener, TypeDescription typeDescription, java.lang.Class<?> type, java.lang.Class<?> classBeingRedefined, JavaModule module, boolean unmodifiable)
Does consider the retransformation or redefinition of a loaded type.protected void
AgentBuilder.RedefinitionStrategy.Collector. consider(AgentBuilder.RawMatcher matcher, AgentBuilder.Listener listener, TypeDescription typeDescription, java.lang.Class<?> type, JavaModule module)
Does consider the retransformation or redefinition of a loaded type without a loaded type representation.java.util.Iterator<AgentBuilder.Transformer>
AgentBuilder.Default.ExecutingTransformer. iterator(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.java.util.Iterator<AgentBuilder.Transformer>
ResettableClassFileTransformer. iterator(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.java.util.Iterator<AgentBuilder.Transformer>
ResettableClassFileTransformer.WithDelegation. iterator(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.boolean
AgentBuilder.Default.Transformation.DifferentialMatcher. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.Default.Transformation.SimpleMatcher. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Conjunction. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Disjunction. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForElementMatchers. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForLoadState. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.ForResolvableTypes. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Inversion. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.boolean
AgentBuilder.RawMatcher.Trivial. matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescription
should be instrumented with the entailedAgentBuilder.Transformer
s.void
AgentBuilder.Listener.Adapter. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Compound. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Filtering. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.NoOp. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.StreamWriting. onIgnored(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
Invoked when a type is not transformed but ignored.void
AgentBuilder.Listener.Adapter. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Compound. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.Filtering. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.ModuleReadEdgeCompleting. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
void
AgentBuilder.Listener.NoOp. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.StreamWriting. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
Invoked prior to a successful transformation being applied.void
AgentBuilder.Listener.WithTransformationsOnly. onTransformation(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
DynamicType.Builder<?>
AgentBuilder.Transformer.ForAdvice. transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder
.DynamicType.Builder<?>
AgentBuilder.Transformer.ForBuildPlugin. transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder
.DynamicType.Builder<?>
AgentBuilder.Transformer. transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder
.org.objectweb.asm.MethodVisitor
AgentBuilder.LambdaInstrumentationStrategy.AlternativeMetaFactoryRedirection. 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
AgentBuilder.LambdaInstrumentationStrategy.MetaFactoryRedirection. wrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags)
Wraps a method visitor.Method parameters in net.bytebuddy.agent.builder with type arguments of type TypeDescription Modifier and Type Method Description S
AgentBuilder.Matchable.AbstractBase. and(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.S
AgentBuilder.Matchable.AbstractBase. and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.S
AgentBuilder.Matchable.AbstractBase. and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.T
AgentBuilder.Matchable. and(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.T
AgentBuilder.Matchable. and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.T
AgentBuilder.Matchable. and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Ignored
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.Ignored
AgentBuilder.Default.Delegator. ignore(ElementMatcher<? super TypeDescription> ignoredTypes, ElementMatcher<? super java.lang.ClassLoader> ignoredClassLoaders)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Ignored
AgentBuilder.Default.Delegator. ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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.Ignored
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.Ignored
AgentBuilder.Default. ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Ignored
AgentBuilder.Default. ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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.Ignored
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.Ignored
AgentBuilder. ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Ignored
AgentBuilder. ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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.S
AgentBuilder.Matchable.AbstractBase. or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.S
AgentBuilder.Matchable.AbstractBase. or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.S
AgentBuilder.Matchable.AbstractBase. or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.T
AgentBuilder.Matchable. or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.T
AgentBuilder.Matchable. or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.T
AgentBuilder.Matchable. or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Identified.Narrowable
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.Identified.Narrowable
AgentBuilder.Default.Delegator. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
AgentBuilder.Default.Delegator. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
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.Identified.Narrowable
AgentBuilder.Default. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
AgentBuilder.Default. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
AgentBuilder. type(ElementMatcher<? super TypeDescription> typeMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
AgentBuilder. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Identified.Narrowable
AgentBuilder. type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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 TypeDescription Constructor Description Appender(TypeDescription instrumentedType)
Creates a new appender.InjectingInitializer(TypeDescription instrumentedType, java.util.Map<TypeDescription,byte[]> rawAuxiliaryTypes, java.util.Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector)
Creates a new injection initializer.SerializationImplementation(TypeDescription targetType, TypeDescription lambdaType, java.lang.String lambdaMethodName, JavaConstant.MethodType lambdaMethod, JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression'swriteReplace
method.TransformerIterator(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, java.util.List<AgentBuilder.Default.Transformation> transformations)
Creates a new iterator.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type TypeDescription Constructor Description ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a newAgentBuilder.RawMatcher
that only matches the suppliedTypeDescription
against a supplied matcher.ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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 java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Creates a newAgentBuilder.RawMatcher
that only matches the suppliedTypeDescription
, itsClassLoader
and module against element suitable matchers.ForMatchedGrouping(java.util.Collection<? extends ElementMatcher<? super TypeDescription>> matchers)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.InjectingInitializer(TypeDescription instrumentedType, java.util.Map<TypeDescription,byte[]> rawAuxiliaryTypes, java.util.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 TypeDescription Modifier and Type Field Description private TypeDescription
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType. declaringType
The type declaring the field.private static TypeDescription
Advice.NoExceptionHandler. DESCRIPTION
A description of theAdvice.NoExceptionHandler
type.private TypeDescription
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter. instrumentedType
The instrumented type.private TypeDescription
Advice.Dispatcher.Inlining.CodeTranslationVisitor. instrumentedType
The instrumented type.protected TypeDescription
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner. instrumentedType
A description of the instrumented type.protected TypeDescription
Advice.StackMapFrameHandler.Default. instrumentedType
The instrumented type.private TypeDescription
AsmVisitorWrapper.ForDeclaredFields.DispatchingVisitor. instrumentedType
The instrumented type.private TypeDescription
AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.Replacement.Binding.Resolved. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.SubstitutingMethodVisitor. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.Substitution.ForFieldAccess. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.Substitution.ForMethodInvocation. instrumentedType
The instrumented type.private TypeDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching. instrumentedType
The instrumented type.private TypeDescription
ModifierAdjustment.ModifierAdjustingClassVisitor. instrumentedType
The instrumented type.private TypeDescription
Advice.Dispatcher.SuppressionHandler.Suppressing.Bound. suppressedType
The suppressed throwable type.private TypeDescription
Advice.Dispatcher.SuppressionHandler.Suppressing. suppressedType
The suppressed throwable type.private TypeDescription
MemberSubstitution.Replacement.Binding.Resolved. targetType
The type on which a field or method was accessed.private TypeDescription
Advice.AdviceVisitor.WithExitAdvice.WithExceptionHandling. throwable
The type of the handled throwable type for which this advice is invoked.private TypeDescription
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler. throwable
The type of the handled throwable type for which this advice is invoked.private TypeDescription
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler. throwable
The type of the handled throwable type for which this advice is invoked.private TypeDescription
Advice.Dispatcher.RelocationHandler.ForType. typeDescription
The type that triggers a relocation.private TypeDescription
Advice.OffsetMapping.ForSerializedValue.Factory. typeDescription
The type description as which to treat the deserialized value.private TypeDescription
Advice.OffsetMapping.ForSerializedValue. typeDescription
The class type of the serialized value.Fields in net.bytebuddy.asm with type parameters of type TypeDescription Modifier and Type Field Description protected java.util.List<? extends TypeDescription>
Advice.StackMapFrameHandler.Default.ForAdvice. endTypes
The types provided after execution of the advice code.private ElementMatcher.Junction<? super TypeDescription>
TypeReferenceAdjustment. filter
A filter for excluding types from type reference analysis.private ElementMatcher<? super TypeDescription>
TypeReferenceAdjustment.TypeReferenceClassVisitor. filter
A filter for excluding types from type reference analysis.protected java.util.List<? extends TypeDescription>
Advice.MethodSizeHandler.Default. initialTypes
A list of virtual method arguments that are explicitly added before any code execution.protected java.util.List<? extends TypeDescription>
Advice.StackMapFrameHandler.Default. initialTypes
A list of virtual method arguments that are explicitly added before any code execution.protected java.util.List<? extends TypeDescription>
Advice.MethodSizeHandler.Default. postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.protected java.util.List<? extends TypeDescription>
Advice.StackMapFrameHandler.Default. postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.protected java.util.List<? extends TypeDescription>
Advice.MethodSizeHandler.Default. preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.protected java.util.List<? extends TypeDescription>
Advice.StackMapFrameHandler.Default. preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.protected java.util.List<? extends TypeDescription>
Advice.StackMapFrameHandler.Default.ForAdvice. startTypes
The types provided before execution of the advice code.private java.util.List<ModifierAdjustment.Adjustment<TypeDescription>>
ModifierAdjustment.ModifierAdjustingClassVisitor. typeAdjustments
A list of type modifier adjustments to apply.private java.util.List<ModifierAdjustment.Adjustment<TypeDescription>>
ModifierAdjustment. typeAdjustments
A list of adjustments to apply to the instrumented type.Methods in net.bytebuddy.asm that return TypeDescription Modifier and Type Method Description TypeDescription
Advice.Dispatcher.Delegating. getAdviceType()
The type that is produced as a result of executing this advice method.TypeDescription
Advice.Dispatcher.Inactive. getAdviceType()
The type that is produced as a result of executing this advice method.TypeDescription
Advice.Dispatcher.Inlining. getAdviceType()
The type that is produced as a result of executing this advice method.TypeDescription
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.TypeDescription
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.TypeDescription
Advice.Dispatcher.Inactive. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.TypeDescription
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.TypeDescription
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.TypeDescription
Advice.Dispatcher.Resolved.ForMethodExit. getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.Methods in net.bytebuddy.asm that return types with arguments of type TypeDescription Modifier and Type Method Description java.util.List<TypeDescription>
Advice.ArgumentHandler.ForInstrumentedMethod.Default. getNamedTypes()
Returns a list of the named types in their declared order.java.util.List<TypeDescription>
Advice.ArgumentHandler.ForInstrumentedMethod. getNamedTypes()
Returns a list of the named types in their declared order.Methods in net.bytebuddy.asm with parameters of type TypeDescription Modifier and Type Method Description void
Advice.Delegator. apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
Materializes an invocation.void
Advice.Delegator.ForDynamicInvocation. apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
Materializes an invocation.void
Advice.Delegator.ForStaticInvocation. apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean exit)
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)
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)
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)
java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.java.lang.String
Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName. apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.Advice.Dispatcher.Bound
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.Bound
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.Bound
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.Bound
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.Bound
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 java.lang.annotation.Annotation>
Advice.WithCustomMappingAdvice.WithCustomMapping. bind(java.lang.Class<T> type, TypeDescription value)
Binds the supplied annotation to the supplied type constant.MemberSubstitution.Replacement.Binding
MemberSubstitution.Replacement. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.Binding
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.Binding
MemberSubstitution.Replacement.ForElementMatchers. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.Binding
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.Binding
MemberSubstitution.Replacement.ForFirstBinding. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.Binding
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.Binding
MemberSubstitution.Replacement.NoOp. bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Binds this replacement for a field that was discovered.MemberSubstitution.Replacement.Binding
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.protected abstract int
Advice.StackMapFrameHandler.Default.TranslationMode. copy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription methodDescription, java.lang.Object[] localVariable, java.lang.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)
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)
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)
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)
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)
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)
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 boolean
Advice.StackMapFrameHandler.Default.TranslationMode. isPossibleThisFrameValue(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.lang.Object frame)
Checks if a variable value in a stack map frame is a legal value for describing athis
reference.MemberSubstitution.Replacement
MemberSubstitution.Replacement.Factory.Compound. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a replacement for an instrumented method.MemberSubstitution.Replacement
MemberSubstitution.Replacement.Factory. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a replacement for an instrumented method.MemberSubstitution.Replacement
MemberSubstitution.Replacement.ForElementMatchers.Factory. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a replacement for an instrumented method.MemberSubstitution.Replacement
MemberSubstitution.Replacement.NoOp. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a replacement for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.Chain.Factory. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Chain.Step
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
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
MemberSubstitution.Substitution.Factory. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.ForFieldAccess.OfGivenField. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod. make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.MemberSubstitution.Substitution
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, TypeDefinition checkedType)
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, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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 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.StackManipulation
Advice.ExceptionHandler. resolve(MethodDescription instrumentedMethod, TypeDescription instrumentedType)
Resolves a stack manipulation to apply.StackManipulation
Advice.ExceptionHandler.Simple. resolve(MethodDescription instrumentedMethod, TypeDescription instrumentedType)
Resolves a stack manipulation to apply.Advice.OffsetMapping.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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)
Advice.OffsetMapping.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.Target
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.StackManipulation
Advice.PostProcessor.Compound. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler)
Resolves this post processor for a given instrumented method.StackManipulation
Advice.PostProcessor.NoOp. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler)
Resolves this post processor for a given instrumented method.StackManipulation
Advice.PostProcessor. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler)
Resolves this post processor for a given instrumented method.StackManipulation
MemberSubstitution.Substitution.Chain. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.Chain.Step.Resolution
MemberSubstitution.Substitution.Chain.Step. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic current, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int freeOffset)
Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.Resolution
MemberSubstitution.Substitution.Chain.Step.Simple. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic current, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int freeOffset)
Resolves this step of a substitution chain.FieldDescription
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the field to substitute with.FieldDescription
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the field to substitute with.FieldDescription
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the field to substitute with.StackManipulation
MemberSubstitution.Substitution.ForFieldAccess. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Resolves this substitution into a stack manipulation.MethodDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.MethodDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.MethodDescription
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.StackManipulation
MemberSubstitution.Substitution.ForMethodInvocation. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Resolves this substitution into a stack manipulation.StackManipulation
MemberSubstitution.Substitution. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Resolves this substitution into a stack manipulation.StackManipulation
MemberSubstitution.Substitution.Stubbing. resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Resolves this substitution into a stack manipulation.TypePool
MemberSubstitution.TypePoolResolver.ForClassFileLocator. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Resolves a type pool to use for locating substituted members.TypePool
MemberSubstitution.TypePoolResolver.ForExplicitPool. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Resolves a type pool to use for locating substituted members.TypePool
MemberSubstitution.TypePoolResolver.OfImplicitPool. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Resolves a type pool to use for locating substituted members.TypePool
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, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator delegator)
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, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator delegator)
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
Advice.WithCustomMapping. to(TypeDescription enterAdvice, TypeDescription exitAdvice)
Implements advice where every matched method is advised by the given type's advisory methods.Advice
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
Advice.WithCustomMapping. to(TypeDescription advice, ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.protected abstract java.lang.Object
Advice.StackMapFrameHandler.Default.Initialization. toFrame(TypeDescription typeDescription)
Initializes a frame value to its frame type.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.ModifierAdjustingClassVisitor
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 TypeDescription Modifier and Type Method Description TypeReferenceAdjustment
TypeReferenceAdjustment. 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, java.util.List<? extends TypeDescription> typesInArray, java.util.List<? extends TypeDescription> typesOnStack)
Injects a full stack map frame after the instrumented method has completed.protected static Advice.MethodSizeHandler.ForInstrumentedMethod
Advice.MethodSizeHandler.Default. of(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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 void
Advice.StackMapFrameHandler.Default. translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, MethodDescription methodDescription, java.util.List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, java.lang.Object[] localVariable, int stackSize, java.lang.Object[] stack)
Translates a frame.protected void
Advice.StackMapFrameHandler.Default.WithPreservedArguments. translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, MethodDescription methodDescription, java.util.List<? extends TypeDescription> additionalTypes, int type, int localVariableLength, java.lang.Object[] localVariable, int stackSize, java.lang.Object[] stack)
ModifierAdjustment
ModifierAdjustment. withTypeModifiers(ElementMatcher<? super TypeDescription> matcher, java.util.List<? extends ModifierContributor.ForType> modifierContributors)
Adjusts an instrumented type's modifiers if it matches the supplied matcher.ModifierAdjustment
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 TypeDescription Constructor Description AbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new resolved version of a dispatcher.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, org.objectweb.asm.ClassReader classReader)
Creates a new advice method inliner.AdviceMethodWriter(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, java.util.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, Advice.Delegator delegator)
Creates a new advice method writer.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, java.util.List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags)
Creates a new advice visitor.Bound(TypeDescription suppressedType, StackManipulation exceptionHandler)
Creates a new active, bound suppression handler.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, java.util.Map<java.lang.Integer,Advice.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, Advice.PostProcessor postProcessor, boolean exit)
Creates a new code translation visitor.Default(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new default stack map frame handler.DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields)
Creates a new dispatching visitor.DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, java.util.Map<java.lang.String,MethodDescription> methods, int writerFlags, int readerFlags)
Creates a new dispatching visitor.Factory(java.lang.Class<T> annotationType, TypeDescription typeDescription, StackManipulation deserialization)
Creates a factory for loading a deserialized value.Factory(java.lang.Class<T> annotationType, TypeDescription typeDescription)
Creates a new factory for binding a type description.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.ForMethodEnter(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, java.util.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, Advice.Delegator delegator)
Creates a new advice method writer.ForMethodExit(MethodDescription.InDefinedShape adviceMethod, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, java.util.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, Advice.Delegator delegator)
Creates a new advice method writer.ForMethodInvocation(TypeDescription instrumentedType, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver methodResolver)
Creates a new method-resolving substitution.ForSerializedValue(TypeDescription.Generic target, TypeDescription typeDescription, StackManipulation deserialization)
Creates a new offset mapping for a serialized value.ForType(TypeDescription typeDescription)
Creates a new relocation handler that triggers a relocation if a value is an instance of a given type.Matching(TypeDescription instrumentedType, MethodGraph.Compiler methodGraphCompiler, ElementMatcher<? super MethodDescription> matcher)
Creates a new matching method resolver.ModifierAdjustingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, java.util.List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, java.util.List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, java.util.List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments, TypeDescription instrumentedType, java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields, java.util.Map<java.lang.String,MethodDescription> methods)
Creates a new modifier adjusting visitor.RequiringConsistentShape(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.Resolved(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.Delegator delegator)
Creates a new resolved version of a dispatcher.Resolved(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, org.objectweb.asm.ClassReader classReader)
Creates a new resolved version of a dispatcher.Resolved(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription targetType, ByteCodeElement target, MemberSubstitution.Substitution substitution)
Creates a new resolved binding.SubstitutingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodGraph.Compiler methodGraphCompiler, boolean strict, MemberSubstitution.Replacement replacement, Implementation.Context implementationContext, TypePool typePool, boolean virtualPrivateCalls)
Creates a new substituting method visitor.Suppressing(TypeDescription suppressedType)
Creates a new suppressing suppression handler.Trivial(TypeDescription instrumentedType, MethodDescription instrumentedMethod, boolean expandFrames)
Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.UsingArgumentCopy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.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.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType, TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.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.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, java.util.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, java.lang.String name, TypeDescription declaringType)
Creates an offset mapping for a field with an explicit declaring type.WithExplicitType(TypeDescription.Generic target, AnnotationDescription.Loadable<Advice.FieldValue> annotation, TypeDescription declaringType)
Creates an offset mapping for a field with an explicit declaring type.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.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.WithPreservedArguments(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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 TypeDescription Constructor Description 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, java.util.List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags)
Creates a new advice visitor.Default(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes)
Creates a new default meta data handler that recomputes the space requirements of an instrumented method.Default(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new default stack map frame handler.ForAdvice(MethodDescription.InDefinedShape adviceMethod, java.util.List<? extends TypeDescription> startTypes, java.util.List<? extends TypeDescription> endTypes, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, Advice.StackMapFrameHandler.Default.Initialization initialization)
Creates a new meta data handler for an advice method.ModifierAdjustingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, java.util.List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, java.util.List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, java.util.List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments, TypeDescription instrumentedType, java.util.Map<java.lang.String,FieldDescription.InDefinedShape> fields, java.util.Map<java.lang.String,MethodDescription> methods)
Creates a new modifier adjusting visitor.ModifierAdjustment(java.util.List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments, java.util.List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments, java.util.List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments)
Creates a new modifier adjustment.RequiringConsistentShape(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames, boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.TypeReferenceAdjustment(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter)
Creates a type reference adjustment.TypeReferenceClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, boolean strict, ElementMatcher<? super TypeDescription> filter, TypePool typePool)
Creates a type reference class visitor.UsingArgumentCopy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes, boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.WithCopiedArguments(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects the original arguments to be copied.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, java.util.List<? extends TypeDescription> postMethodTypes, int writerFlags, int readerFlags)
Creates an advice visitor that applies exit advice.WithPreservedArguments(TypeDescription instrumentedType, MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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.WithRetainedArguments(MethodDescription instrumentedMethod, java.util.List<? extends TypeDescription> initialTypes, java.util.List<? extends TypeDescription> preMethodTypes, java.util.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 TypeDescription Modifier and Type Field Description private TypeDescription
Plugin.Engine.Default.Preprocessor.Ignored. typeDescription
A description of the ignored type.private TypeDescription
Plugin.Engine.Default.Preprocessor.Resolved. typeDescription
A description of the resolved type.private TypeDescription
Plugin.Engine.Dispatcher.Materializable.ForFailedElement. typeDescription
The type description for the represented type.Fields in net.bytebuddy.build with type parameters of type TypeDescription Modifier and Type Field Description private java.util.Map<TypeDescription,TypeDescription>
CachedReturnPlugin. adviceByType
A map of advice types mapped by their argument type.private java.util.Map<TypeDescription,TypeDescription>
CachedReturnPlugin. adviceByType
A map of advice types mapped by their argument type.private java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>>
Plugin.Engine.Dispatcher.ForParallelTransformation. failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>>
Plugin.Engine.Dispatcher.ForSerialTransformation. failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>>
Plugin.Engine.Summary. failed
A mapping of all types that failed during transformation to the exceptions that explain the failure.private ElementMatcher.Junction<? super TypeDescription>
Plugin.Engine.Default. ignoredTypeMatcher
A matcher for types to exclude from transformation.private ElementMatcher<? super TypeDescription>
Plugin.ForElementMatcher. matcher
The element matcher to apply.private java.util.List<TypeDescription>
Plugin.Engine.Dispatcher.ForParallelTransformation. transformed
A list of all types that are transformed.private java.util.List<TypeDescription>
Plugin.Engine.Dispatcher.ForSerialTransformation. transformed
A list of all types that are transformed.private java.util.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 TypeDescription Modifier and Type Method Description java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>>
Plugin.Engine.Summary. getFailed()
Returns a mapping of all types that failed during transformation to the exceptions that explain the failure.java.util.List<TypeDescription>
Plugin.Engine.Summary. getTransformed()
Returns a list of all types that were transformed.Methods in net.bytebuddy.build with parameters of type TypeDescription Modifier and Type Method Description DynamicType.Builder<?>
CachedReturnPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Applies this plugin.DynamicType.Builder<?>
HashCodeAndEqualsPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Applies this plugin.DynamicType.Builder<?>
Plugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Applies this plugin.DynamicType.Builder<?>
Plugin.NoOp. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Applies this plugin.DynamicType.Builder<?>
ToStringPlugin. apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Applies this plugin.DynamicType.Builder<?>
Plugin.Engine.TypeStrategy. builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Creates a builder for a given type.DynamicType.Builder<?>
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.protected abstract HashCodeMethod
HashCodeAndEqualsPlugin.Enhance.InvokeSuper. hashCodeMethod(TypeDescription instrumentedType)
Resolves the hash code method to use.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
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, java.util.List<java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.ErrorHandler.Enforcing. onError(TypeDescription typeDescription, java.util.List<java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.ErrorHandler. onError(TypeDescription typeDescription, java.util.List<java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.Adapter. onError(TypeDescription typeDescription, java.util.List<java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.Compound. onError(TypeDescription typeDescription, java.util.List<java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.ForErrorHandler. onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
void
Plugin.Engine.Listener.ForErrorHandler. onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
void
Plugin.Engine.Listener.NoOp. onError(TypeDescription typeDescription, java.util.List<java.lang.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, java.lang.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, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
Plugin.Engine.Listener.WithErrorsOnly. onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
void
Plugin.Engine.Listener.WithErrorsOnly. onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
void
Plugin.Engine.Listener.WithTransformationsOnly. onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
void
Plugin.Engine.Listener.WithTransformationsOnly. onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
void
Plugin.Engine.Listener.Adapter. onIgnored(TypeDescription typeDescription, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.List<Plugin> plugins)
void
Plugin.Engine.Listener.WithTransformationsOnly. onTransformation(TypeDescription typeDescription, Plugin plugin)
Advice.OffsetMapping.Target
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.DynamicType.Builder<?>
EntryPoint. transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Applies a transformation.Method parameters in net.bytebuddy.build with type arguments of type TypeDescription Modifier and Type Method Description Plugin.Engine
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
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
Plugin.Engine.Dispatcher.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForSerialTransformation.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForSerialTransformation.Factory. make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.void
Plugin.Engine.Dispatcher.Materializable.ForFailedElement. materialize(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Materializes this work result and adds any results to the corresponding collection.static Plugin.Engine.Source
Plugin.Engine.Source.InMemory. ofTypes(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Represents a map of type names to their binary representation as an in-memory source.void
Plugin.Engine.ErrorHandler.Compound. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.ErrorHandler.Enforcing. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.ErrorHandler. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.Adapter. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.Compound. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.ForErrorHandler. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
void
Plugin.Engine.Listener.NoOp. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
Plugin.Engine.Listener.WithErrorsOnly. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
void
Plugin.Engine.Listener.WithTransformationsOnly. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
void
Plugin.Engine.Target.Discarding. store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.ForFolder. store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.InMemory. store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink.ForJarOutputStream. store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.void
Plugin.Engine.Target.Sink. store(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.Constructors in net.bytebuddy.build with parameters of type TypeDescription Constructor Description ForFailedElement(Plugin.Engine.Source.Element element, TypeDescription typeDescription, java.util.List<java.lang.Throwable> errored)
Creates a new materializable for an element that failed to be transformed.Ignored(TypeDescription typeDescription)
A materializable for an ignored element.Resolved(TypeDescription typeDescription)
Creates a new resolved materializable.Constructor parameters in net.bytebuddy.build with type arguments of type TypeDescription Constructor Description Default(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher)
Creates a new default plugin engine.ForElementMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new plugin that matches types using an element matcher.ForParallelTransformation(java.util.concurrent.Executor executor, Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher that applies transformations in parallel.ForParallelTransformation(java.util.concurrent.Executor executor, Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher that applies transformations in parallel.ForSerialTransformation(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a dispatcher for a serial transformation.ForSerialTransformation(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a dispatcher for a serial transformation.Summary(java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new summary.Summary(java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new summary.WithThrowawayExecutorService(java.util.concurrent.ExecutorService executorService, Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher that applies transformations in parallel and that closes the supplies executor service.WithThrowawayExecutorService(java.util.concurrent.ExecutorService executorService, Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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 TypeDescription Modifier and Type Method Description void
ByteBuddyMojo.TransformationLogger. onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
void
ByteBuddyMojo.TransformationLogger. onLiveInitializer(TypeDescription typeDescription, TypeDescription definingType)
void
ByteBuddyMojo.TransformationLogger. onTransformation(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Method parameters in net.bytebuddy.build.maven with type arguments of type TypeDescription Modifier and Type Method Description void
ByteBuddyMojo.TransformationLogger. onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
-
Uses of TypeDescription in net.bytebuddy.description
Methods in net.bytebuddy.description with parameters of type TypeDescription Modifier and Type Method Description boolean
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
TypeVariableSource.Visitor.NoOp. onType(TypeDescription typeDescription)
Applies the visitor on a type.T
TypeVariableSource.Visitor. onType(TypeDescription typeDescription)
Applies the visitor on a type.Method parameters in net.bytebuddy.description with type arguments of type TypeDescription Modifier and Type Method Description S
ByteCodeElement.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 TypeDescription Modifier and Type Field Description private TypeDescription
AnnotationDescription.Builder. annotationType
The annotation type.private TypeDescription
AnnotationDescription.Latent. annotationType
The type of the annotation.private TypeDescription
AnnotationValue.ForDescriptionArray. componentType
A description of the component type when it is loaded.private TypeDescription
AnnotationValue.ForEnumerationDescription.WithUnknownConstant. typeDescription
A description of the enumeration type.private TypeDescription
AnnotationValue.ForIncompatibleType. typeDescription
A description of the type that does not fulfil an expectation.private TypeDescription
AnnotationValue.ForMissingValue. typeDescription
The annotation type for which a property is not defined.private TypeDescription
AnnotationValue.ForTypeDescription. typeDescription
A description of the represented type.Methods in net.bytebuddy.description.annotation that return TypeDescription Modifier and Type Method Description TypeDescription
AnnotationDescription.ForLoadedAnnotation. getAnnotationType()
Returns a description of the annotation type of this annotation.TypeDescription
AnnotationDescription. getAnnotationType()
Returns a description of the annotation type of this annotation.TypeDescription
AnnotationDescription.Latent. getAnnotationType()
Returns a description of the annotation type of this annotation.TypeDescription
AnnotationDescription.Latent.Loadable. getAnnotationType()
Returns a description of the annotation type of this annotation.TypeDescription
AnnotationValue.ForTypeDescription. resolve()
Resolves the unloaded value of this annotation.Methods in net.bytebuddy.description.annotation that return types with arguments of type TypeDescription Modifier and Type Method Description AnnotationValue<TypeDescription,U>
AnnotationValue.ForTypeDescription. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.static <V extends java.lang.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 TypeDescription Modifier and Type Method Description AnnotationDescription.Builder
AnnotationDescription.Builder. define(java.lang.String property, TypeDescription typeDescription)
Returns a builder with the additional class property.AnnotationDescription.Builder
AnnotationDescription.Builder. define(java.lang.String property, TypeDescription enumerationType, java.lang.String value)
Returns a builder with the additional enumeration property.AnnotationDescription.Builder
AnnotationDescription.Builder. defineAnnotationArray(java.lang.String property, TypeDescription annotationType, AnnotationDescription... annotationDescription)
Returns a builder with the additional annotation array property.AnnotationDescription.Builder
AnnotationDescription.Builder. defineEnumerationArray(java.lang.String property, TypeDescription enumerationType, java.lang.String... value)
Returns a builder with the additional enumeration array property.AnnotationDescription.Builder
AnnotationDescription.Builder. defineEnumerationArray(java.lang.String property, TypeDescription enumerationType, EnumerationDescription... value)
Returns a builder with the additional enumeration array property.AnnotationDescription.Builder
AnnotationDescription.Builder. defineTypeArray(java.lang.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 java.lang.annotation.Annotation>
AnnotationValue<AnnotationDescription,V>AnnotationValue.ForAnnotationDescription. of(TypeDescription annotationType, java.util.Map<java.lang.String,? extends AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.static AnnotationValue<TypeDescription[],java.lang.Class<?>[]>
AnnotationValue.ForDescriptionArray. of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.static <W extends java.lang.annotation.Annotation>
AnnotationValue<AnnotationDescription[],W[]>AnnotationValue.ForDescriptionArray. of(TypeDescription annotationType, AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.static <W extends java.lang.Enum<W>>
AnnotationValue<EnumerationDescription[],W[]>AnnotationValue.ForDescriptionArray. of(TypeDescription enumerationType, EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.static <V extends java.lang.Class<V>>
AnnotationValue<TypeDescription,V>AnnotationValue.ForTypeDescription. of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.static AnnotationDescription.Builder
AnnotationDescription.Builder. ofType(TypeDescription annotationType)
Creates a builder for creating an annotation of the given type.AnnotationDescription
AnnotationList.AbstractBase. ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.AnnotationDescription
AnnotationList.Empty. ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.AnnotationDescription
AnnotationList. ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.int
AnnotationValue.RenderingDispatcher. toComponentTag(TypeDescription typeDescription)
Resolves the supplied type description's component tag.abstract java.lang.String
AnnotationValue.RenderingDispatcher. toSourceString(TypeDescription value)
Represents the suppliedTypeDescription
value as aString
.Method parameters in net.bytebuddy.description.annotation with type arguments of type TypeDescription Modifier and Type Method Description AnnotationList
AnnotationList.AbstractBase. inherited(java.util.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
AnnotationList.Empty. inherited(java.util.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
AnnotationList. inherited(java.util.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 TypeDescription Constructor Description Builder(TypeDescription annotationType, java.util.Map<java.lang.String,AnnotationValue<?,?>> annotationValues)
Creates a builder for an annotation description.ForDescriptionArray(java.lang.Class<?> unloadedComponentType, TypeDescription componentType, java.util.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, java.lang.String property)
Creates a new missing annotation value.ForTypeDescription(TypeDescription typeDescription)
Creates a new annotation value that represents a type.Latent(TypeDescription annotationType, java.util.Map<java.lang.String,? extends AnnotationValue<?,?>> annotationValues)
Creates a new latent annotation description.WithUnknownConstant(TypeDescription typeDescription, java.lang.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 TypeDescription Modifier and Type Field Description private TypeDescription
EnumerationDescription.Latent. enumerationType
The type of the enumeration.Methods in net.bytebuddy.description.enumeration that return TypeDescription Modifier and Type Method Description TypeDescription
EnumerationDescription.ForLoadedEnumeration. getEnumerationType()
Returns the type of this enumeration.TypeDescription
EnumerationDescription. getEnumerationType()
Returns the type of this enumeration.TypeDescription
EnumerationDescription.Latent. getEnumerationType()
Returns the type of this enumeration.Constructors in net.bytebuddy.description.enumeration with parameters of type TypeDescription Constructor Description Latent(TypeDescription enumerationType, java.lang.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 TypeDescription Modifier and Type Field Description private TypeDescription
FieldDescription.Latent. declaringType
The type for which this field is defined.private TypeDescription
FieldList.ForTokens. declaringType
The declaring type of the represented fields.private TypeDescription
FieldDescription.SignatureToken. type
The field's raw type.Methods in net.bytebuddy.description.field that return TypeDescription Modifier and Type Method Description TypeDescription
FieldDescription.ForLoadedField. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
FieldDescription.InDefinedShape. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
FieldDescription.Latent. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
FieldDescription.SignatureToken. getType()
Returns the type of the represented field.Methods in net.bytebuddy.description.field with parameters of type TypeDescription Modifier and Type Method Description FieldDescription.SignatureToken
FieldDescription.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 TypeDescription Modifier and Type Method Description FieldDescription.Token
FieldDescription.AbstractBase. asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.ByteCodeElement.Token.TokenList<FieldDescription.Token>
FieldList.AbstractBase. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<FieldDescription.Token>
FieldList. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<FieldDescription.Token>
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 TypeDescription Constructor Description ForTokens(TypeDescription declaringType, java.util.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, java.lang.String name, int modifiers, TypeDescription.Generic fieldType, java.util.List<? extends AnnotationDescription> declaredAnnotations)
Creates a new latent field description.Latent(TypeDescription declaringType, FieldDescription.Token token)
Creates a new latent field description.SignatureToken(java.lang.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 TypeDescription Modifier and Type Field Description private TypeDescription
MethodDescription.Latent. declaringType
The type that is declaring this method.private TypeDescription
MethodList.ForTokens. declaringType
The method's declaring type.private TypeDescription
MethodDescription.SignatureToken. returnType
The represented method's raw return type.private TypeDescription
MethodDescription.TypeToken. returnType
The represented method's raw return type.private 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 TypeDescription Modifier and Type Field Description private java.util.List<? extends TypeDescription>
MethodDescription.SignatureToken. parameterTypes
The represented method's raw parameter types.private java.util.List<? extends TypeDescription>
MethodDescription.TypeToken. parameterTypes
The represented method's raw parameter types.Methods in net.bytebuddy.description.method that return TypeDescription Modifier and Type Method Description TypeDescription
MethodDescription.ForLoadedConstructor. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodDescription.ForLoadedMethod. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodDescription.InDefinedShape. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodDescription.Latent. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodDescription.Latent.TypeInitializer. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodDescription.SignatureToken. getReturnType()
Returns this token's return type.TypeDescription
MethodDescription.TypeToken. getReturnType()
Returns this token's return type.Methods in net.bytebuddy.description.method that return types with arguments of type TypeDescription Modifier and Type Method Description java.util.List<TypeDescription>
MethodDescription.SignatureToken. getParameterTypes()
Returns this token's parameter types.java.util.List<TypeDescription>
MethodDescription.TypeToken. getParameterTypes()
Returns this token's parameter types.Methods in net.bytebuddy.description.method with parameters of type TypeDescription Modifier and Type Method Description MethodDescription.SignatureToken
MethodDescription.Token. asSignatureToken(TypeDescription declaringType)
Creates a signature token that represents the method that is represented by this token.java.util.List<MethodDescription.SignatureToken>
MethodList.AbstractBase. asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.java.util.List<MethodDescription.SignatureToken>
MethodList. asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.java.util.List<MethodDescription.SignatureToken>
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 selfType)
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 TypeDescription Modifier and Type Method Description java.util.List<MethodDescription.SignatureToken>
MethodList.AbstractBase. asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.java.util.List<MethodDescription.SignatureToken>
MethodList. asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.java.util.List<MethodDescription.SignatureToken>
MethodList.Empty. asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.MethodDescription.Token
MethodDescription.AbstractBase. asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.ParameterDescription.Token
ParameterDescription.AbstractBase. asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.ByteCodeElement.Token.TokenList<MethodDescription.Token>
MethodList.AbstractBase. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of method descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<MethodDescription.Token>
MethodList. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of method descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<MethodDescription.Token>
MethodList.Empty. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of method descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<ParameterDescription.Token>
ParameterList.AbstractBase. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of parameter descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<ParameterDescription.Token>
ParameterList. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of parameter descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<ParameterDescription.Token>
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 TypeDescription Constructor Description ForTokens(TypeDescription declaringType, java.util.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, java.lang.String internalName, int modifiers, java.util.List<? extends TypeVariableToken> typeVariables, TypeDescription.Generic returnType, java.util.List<? extends ParameterDescription.Token> parameterTokens, java.util.List<? extends TypeDescription.Generic> exceptionTypes, java.util.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(java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.TypeInitializer(TypeDescription typeDescription)
Creates a new method description representing the type initializer.TypeToken(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.Constructor parameters in net.bytebuddy.description.method with type arguments of type TypeDescription Constructor Description SignatureToken(java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.TypeToken(TypeDescription returnType, java.util.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 TypeDescription Modifier and Type Class Description static class
TypeDescription.AbstractBase
An abstract base implementation of a type description.static class
TypeDescription.AbstractBase.OfSimpleType
An adapter implementation of aTypeDescription
that describes any type that is not an array or a primitive type.static class
TypeDescription.AbstractBase.OfSimpleType.WithDelegation
An implementation of a type description that delegates all properties but the type's name to a delegate.static class
TypeDescription.ArrayProjection
A projection for an array type based on an existingTypeDescription
.static class
TypeDescription.ForLoadedType
A type description implementation that represents a loaded type.protected static class
TypeDescription.ForLoadedType.ClassDescriptionTypeList.InternalNameLazyType
A lazy representation of an internal name for a given class loader.static class
TypeDescription.ForPackageDescription
A type representation of a package description.static class
TypeDescription.Latent
A latent type description for a type without methods or fields.static class
TypeDescription.SuperTypeLoading
A delegating type description that always attempts to load the super types of a delegate type.Fields in net.bytebuddy.description.type declared as TypeDescription Modifier and Type Field Description static TypeDescription
TypeDescription. CLASS
A representation of theClass
type.private TypeDescription
TypeDescription.ArrayProjection. componentType
The base component type which is itself not an array.private TypeDescription
RecordComponentDescription.Latent. declaringType
The record component's declaring type.private TypeDescription
TypeDescription.Generic.Visitor.ForRawType. declaringType
The type description that is potentially a raw type.private TypeDescription
TypeDescription.Generic.Visitor.Reducing. declaringType
The generic type's declaring type.private TypeDescription
TypeDescription.Generic.Visitor.Substitutor.ForAttachment. declaringType
The declaring type which is filled in forTargetType
.private TypeDescription
TypeDescription.SuperTypeLoading. delegate
The delegate type description.static TypeDescription
TypeDescription. OBJECT
A representation of theObject
type.private TypeDescription
TypeDescription.Generic.Builder.OfParameterizedType. rawType
The raw base type.private TypeDescription
TypeDescription.Generic.OfParameterizedType.Latent. rawType
The raw type of the described parameterized type.static TypeDescription
TypeDescription. STRING
A representation of theString
type.static TypeDescription
TypeDescription. THROWABLE
A representation of theThrowable
type.private TypeDescription
RecordComponentList.ForTokens. typeDescription
The record component's declaring type.private TypeDescription
TypeDescription.Generic.Builder.OfNonGenericType. typeDescription
The type's erasure.private TypeDescription
TypeDescription.Generic.OfNonGenericType.ForErasure. typeDescription
The represented type erasure.private TypeDescription
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure. typeDescription
The represented type erasure.private TypeDescription
TypeDescription.Generic.OfNonGenericType.Latent. typeDescription
The non-generic type's raw type.private TypeDescription
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure. typeDescription
The represented erasure.private TypeDescription
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType. typeDescription
The description of the type to which another type is assigned.private TypeDescription
TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization. typeDescription
The type description to substitute allTargetType
representations with.static 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 TypeDescription
TypeDescription. VOID
A representation of thevoid
non-type.Fields in net.bytebuddy.description.type with type parameters of type TypeDescription Modifier and Type Field Description private static java.util.Map<java.lang.Class<?>,TypeDescription>
TypeDescription.ForLoadedType. TYPE_CACHE
A cache of type descriptions for commonly used types to avoid unnecessary allocations.private java.util.List<? extends TypeDescription>
TypeList.Explicit. typeDescriptions
The list of type descriptions this list represents.private 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 TypeDescription Modifier and Type Method Description TypeDescription
TypeDescription.AbstractBase. asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless itsvoid
.TypeDescription
TypeDescription. asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless itsvoid
.TypeDescription
TypeDefinition. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.AbstractBase. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.ForLoadedFieldType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.ForLoadedReturnType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.ForLoadedSuperClass. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.OfConstructorParameter. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.OfMethodParameter. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.OfRecordComponent. asErasure()
TypeDescription
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.LazyProjection.WithResolvedErasure. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfGenericArray. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfNonGenericType.ForErasure. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfNonGenericType.ForLoadedType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfNonGenericType.Latent. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfParameterizedType.ForLoadedType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfParameterizedType.ForReifiedType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfParameterizedType.Latent. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfTypeVariable. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfTypeVariable.Symbolic. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.Generic.OfWildcardType. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection. asErasure()
Returns the erasure of this type.TypeDescription
TypeList.Generic.OfConstructorExceptionTypes.TypeProjection. asErasure()
Returns the erasure of this type.TypeDescription
TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection. asErasure()
Returns the erasure of this type.TypeDescription
TypeList.Generic.OfMethodExceptionTypes.TypeProjection. asErasure()
Returns the erasure of this type.TypeDescription
TypeDescription.AbstractBase. asUnboxed()
Returns a description of this type that represents this type as an unboxed type for boxing types, unless itsVoid
.TypeDescription
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.protected TypeDescription
TypeDescription.ForLoadedType.ClassDescriptionTypeList.InternalNameLazyType. delegate()
TypeDescription
TypeDescription.ForLoadedType.ClassDescriptionTypeList. get(int index)
TypeDescription
TypeList.Explicit. get(int index)
TypeDescription
TypeList.ForLoadedTypes. get(int index)
TypeDescription
TypeDescription.AbstractBase.OfSimpleType. getComponentType()
Returns the component type of this type.TypeDescription
TypeDescription.ArrayProjection. getComponentType()
Returns the component type of this type.TypeDescription
TypeDescription.ForLoadedType. getComponentType()
Returns the component type of this type.TypeDescription
TypeDescription. getComponentType()
Returns the component type of this type.TypeDescription
TypeDescription.SuperTypeLoading. getComponentType()
Returns the component type of this type.TypeDescription
RecordComponentDescription.ForLoadedRecordComponent. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
RecordComponentDescription.InDefinedShape. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
RecordComponentDescription.Latent. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.AbstractBase.OfSimpleType.WithDelegation. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.ArrayProjection. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.ForLoadedType. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.ForPackageDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.Latent. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.SuperTypeLoading. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeDescription.AbstractBase.OfSimpleType.WithDelegation. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.ArrayProjection. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.ForLoadedType. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.ForPackageDescription. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.Latent. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.SuperTypeLoading. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypeDescription.AbstractBase.OfSimpleType.WithDelegation. getNestHost()
Returns the nest host of this type.TypeDescription
TypeDescription.ArrayProjection. getNestHost()
Returns the nest host of this type.TypeDescription
TypeDescription.ForLoadedType. getNestHost()
Returns the nest host of this type.TypeDescription
TypeDescription.ForPackageDescription. getNestHost()
Returns the nest host of this type.TypeDescription
TypeDescription. getNestHost()
Returns the nest host of this type.TypeDescription
TypeDescription.Latent. getNestHost()
Returns the nest host of this type.TypeDescription
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
TypeDescription.ForLoadedType. of(java.lang.Class<?> type)
Returns a new immutable type description for a loaded type.TypeDescription
TypeDescription.Generic.Visitor.Reducing. onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).TypeDescription
TypeDescription.Generic.Visitor.Reducing. onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).TypeDescription
TypeDescription.Generic.Visitor.Reducing. onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).TypeDescription
TypeDescription.Generic.Visitor.Reducing. onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).TypeDescription
TypeDescription.Generic.Visitor.Reducing. onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).Methods in net.bytebuddy.description.type with parameters of type TypeDescription Modifier and Type Method Description protected abstract void
TypeDescription.Generic.OfParameterizedType.RenderingDelegate. apply(java.lang.StringBuilder stringBuilder, TypeDescription erasure, TypeDescription.Generic ownerType)
Applies this rendering delegate.static TypeList.Generic
TypeList.Generic.ForDetachedTypes. attachVariables(TypeDescription typeDescription, java.util.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.static TypeDescription.Generic.Visitor.Substitutor.ForAttachment
TypeDescription.Generic.Visitor.Substitutor.ForAttachment. of(TypeDescription typeDescription)
Attaches all types to the given type description.TypeDescription.Generic
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor. onType(TypeDescription typeDescription)
Applies the visitor on a type.static TypeDescription.Generic.Builder
TypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, java.util.Collection<? extends TypeDefinition> parameters)
Creates a parameterized type without an owner type or with a non-generic owner type.static TypeDescription.Generic.Builder
TypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, TypeDefinition... parameter)
Creates a parameterized type without an owner type or with a non-generic owner type.static TypeDescription.Generic.Builder
TypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, TypeDescription.Generic ownerType, java.util.Collection<? extends TypeDefinition> parameters)
Creates a parameterized type.static TypeDescription.Generic.Builder
TypeDescription.Generic.Builder. rawType(TypeDescription type)
Creates a raw type of a type description.static TypeDescription.Generic.Builder
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 TypeDescription Modifier and Type Method Description RecordComponentDescription.Token
RecordComponentDescription.AbstractBase. asToken(ElementMatcher<? super TypeDescription> matcher)
Resolves this record component to a token where all types are detached.RecordComponentDescription.Token
RecordComponentDescription. asToken(ElementMatcher<? super TypeDescription> matcher)
Resolves this record component to a token where all types are detached.ByteCodeElement.Token.TokenList<RecordComponentDescription.Token>
RecordComponentList.AbstractBase. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of record component descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<RecordComponentDescription.Token>
RecordComponentList. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of record component descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<RecordComponentDescription.Token>
RecordComponentList.Empty. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of record component descriptions into a list of detached tokens.ByteCodeElement.Token.TokenList<TypeVariableToken>
TypeList.Generic.AbstractBase. asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms a list of attached type variables into their tokenized form.ByteCodeElement.Token.TokenList<TypeVariableToken>
TypeList.Generic. asTokenList(ElementMatcher<? super TypeDescription> visitor)
Transforms a list of attached type variables into their tokenized form.ByteCodeElement.Token.TokenList<TypeVariableToken>
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(java.util.List<TypeDescription> values)
Constructors in net.bytebuddy.description.type with parameters of type TypeDescription Constructor Description ArrayProjection(TypeDescription componentType, int arity)
Creates a new array projection.Explicit(TypeDescription... typeDescription)
Creates an immutable wrapper.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.ForGenerifiedErasure(TypeDescription typeDescription)
Creates a new generified erasure.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.ForReifiedErasure(TypeDescription typeDescription)
Creates a new reified non-generic type.ForTokenNormalization(TypeDescription typeDescription)
Creates a new token normalization visitor.ForTokens(TypeDescription typeDescription, java.util.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, java.lang.String name, TypeDescription.Generic type, java.util.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.Latent(TypeDescription typeDescription, TypeDescription.Generic declaringType, AnnotationSource annotationSource)
Creates a non-generic type.Latent(TypeDescription typeDescription, TypeDescription declaringType, AnnotationSource annotationSource)
Creates a non-generic type with a raw owner type.Latent(TypeDescription rawType, TypeDescription.Generic ownerType, java.util.List<? extends TypeDescription.Generic> parameters, AnnotationSource annotationSource)
Creates a description of a latent parameterized type.OfNonGenericType(TypeDescription typeDescription)
Creates a builder for a non-generic type.OfNonGenericType(TypeDescription typeDescription, TypeDescription ownerType)
Creates a builder for a non-generic type.OfNonGenericType(TypeDescription typeDescription, TypeDescription.Generic ownerType)
Creates a builder for a non-generic type.OfNonGenericType(TypeDescription typeDescription, TypeDescription.Generic ownerType, java.util.List<? extends AnnotationDescription> annotations)
Creates a builder for a non-generic type.OfParameterizedType(TypeDescription rawType, TypeDescription.Generic ownerType, java.util.List<? extends TypeDescription.Generic> parameterTypes)
Creates a builder for a parameterized type.OfParameterizedType(TypeDescription rawType, TypeDescription.Generic ownerType, java.util.List<? extends TypeDescription.Generic> parameterTypes, java.util.List<? extends AnnotationDescription> annotations)
Creates a builder for a parameterized type.Reducing(TypeDescription declaringType, java.util.List<? extends TypeVariableToken> typeVariableTokens)
Creates a new reducing type visitor.Reducing(TypeDescription declaringType, TypeVariableToken... typeVariableToken)
Creates a new reducing type visitor.SuperTypeLoading(TypeDescription delegate, java.lang.ClassLoader classLoader)
Creates a super type loading type description.SuperTypeLoading(TypeDescription delegate, java.lang.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 TypeDescription Constructor Description Explicit(java.util.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 TypeDescription Modifier and Type Field Description static TypeDescription
TargetType. DESCRIPTION
A description of theTargetType
.private TypeDescription
Transformer.ForField.TransformedField. instrumentedType
The instrumented type for which this field is transformed.private TypeDescription
Transformer.ForMethod.TransformedMethod. instrumentedType
The instrumented type for which this method is transformed.private TypeDescription
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter. typeDescription
A description of the type that is the defined outer type.protected TypeDescription
DynamicType.Default. typeDescription
A type description of this dynamic type.Fields in net.bytebuddy.dynamic with type parameters of type TypeDescription Modifier and Type Field Description private java.util.Map<TypeDescription,java.lang.Class<?>>
DynamicType.Default.Loaded. loadedTypes
The loaded types for the given loaded dynamic type.Methods in net.bytebuddy.dynamic that return TypeDescription Modifier and Type Method Description TypeDescription
DynamicType.Default. getTypeDescription()
Returns a description of this dynamic type.TypeDescription
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.TypeDescription
DynamicType.Builder.AbstractBase.Adapter. toTypeDescription()
Returns aTypeDescription
for the currently built type.TypeDescription
DynamicType.Builder.AbstractBase.Delegator. toTypeDescription()
Returns aTypeDescription
for the currently built type.TypeDescription
DynamicType.Builder. toTypeDescription()
Returns aTypeDescription
for the currently built type.Methods in net.bytebuddy.dynamic that return types with arguments of type TypeDescription Modifier and Type Method Description java.util.Map<TypeDescription,byte[]>
DynamicType.Default. getAllTypes()
Returns all types that are implied by this dynamic type.java.util.Map<TypeDescription,byte[]>
DynamicType. getAllTypes()
Returns all types that are implied by this dynamic type.java.util.Map<TypeDescription,byte[]>
DynamicType.Default. getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.java.util.Map<TypeDescription,byte[]>
DynamicType. getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.java.util.Map<TypeDescription,java.lang.Class<?>>
DynamicType.Default.Loaded. getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.java.util.Map<TypeDescription,java.lang.Class<?>>
DynamicType.Loaded. getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.java.util.Map<TypeDescription,LoadedTypeInitializer>
DynamicType.Default. getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.java.util.Map<TypeDescription,LoadedTypeInitializer>
DynamicType. getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Active.Resolved. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Disabled. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Lazy. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Passive. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.<S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>TypeResolutionStrategy.Resolved. initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.java.util.Map<TypeDescription,java.io.File>
DynamicType.Default. saveIn(java.io.File folder)
Saves a dynamic type in a given folder using the Java class file format while respecting the naming conventions for saving compiled Java classes.java.util.Map<TypeDescription,java.io.File>
DynamicType. saveIn(java.io.File folder)
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 TypeDescription Modifier and Type Method Description DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.DynamicType.Builder<T>
DynamicType.Builder. declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.DynamicType.Builder.InnerTypeDefinition.ForType<U>
DynamicType.Builder.AbstractBase.Adapter. innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.DynamicType.Builder.InnerTypeDefinition.ForType<U>
DynamicType.Builder.AbstractBase.Delegator. innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.DynamicType.Builder.InnerTypeDefinition.ForType<T>
DynamicType.Builder. innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. nestHost(TypeDescription type)
Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. nestHost(TypeDescription type)
Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder<T>
DynamicType.Builder. nestHost(TypeDescription type)
Defines this type as a nest member of the supplied type as a nest host.DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. nestMembers(TypeDescription... type)
Defines this type as a nest host for the supplied types.DynamicType.Builder<T>
DynamicType.Builder. nestMembers(TypeDescription... type)
Defines this type as a nest host for the supplied types.DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. permittedSubclass(TypeDescription... type)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder<T>
DynamicType.Builder. permittedSubclass(TypeDescription... type)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. require(TypeDescription type, byte[] binaryRepresentation)
Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder<S>
DynamicType.Builder.AbstractBase. require(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer)
Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder<T>
DynamicType.Builder. require(TypeDescription type, byte[] binaryRepresentation)
Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder<T>
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.S
Transformer.Compound. transform(TypeDescription instrumentedType, S target)
Transforms the supplied target.FieldDescription.Token
Transformer.ForField.FieldModifierTransformer. transform(TypeDescription instrumentedType, FieldDescription.Token target)
Transforms the supplied target.FieldDescription
Transformer.ForField. transform(TypeDescription instrumentedType, FieldDescription fieldDescription)
Transforms the supplied target.MethodDescription.Token
Transformer.ForMethod.MethodModifierTransformer. transform(TypeDescription instrumentedType, MethodDescription.Token target)
Transforms the supplied target.MethodDescription
Transformer.ForMethod. transform(TypeDescription instrumentedType, MethodDescription methodDescription)
Transforms the supplied target.java.lang.Object
Transformer.NoOp. transform(TypeDescription instrumentedType, java.lang.Object target)
Transforms the supplied target.T
Transformer. transform(TypeDescription instrumentedType, T target)
Transforms the supplied target.Method parameters in net.bytebuddy.dynamic with type arguments of type TypeDescription Modifier and Type Method Description DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. declaredTypes(java.util.Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. declaredTypes(java.util.Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.DynamicType.Builder<T>
DynamicType.Builder. declaredTypes(java.util.Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. nestMembers(java.util.Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. nestMembers(java.util.Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.DynamicType.Builder<T>
DynamicType.Builder. nestMembers(java.util.Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.static ClassFileLocator
ClassFileLocator.Simple. of(java.util.Map<TypeDescription,byte[]> binaryRepresentations)
Creates a class file locator that represents all types of a dynamic type.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. permittedSubclass(java.util.Collection<? extends TypeDescription> types)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. permittedSubclass(java.util.Collection<? extends TypeDescription> types)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.DynamicType.Builder<T>
DynamicType.Builder. permittedSubclass(java.util.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 TypeDescription Constructor Description Default(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.InnerTypeDefinitionForTypeAdapter(TypeDescription typeDescription)
Creates a new adapter for an inner type definition for an outer type.Loaded(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.Map<TypeDescription,java.lang.Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.TransformedField(TypeDescription instrumentedType, TypeDefinition declaringType, FieldDescription.Token token, FieldDescription.InDefinedShape fieldDescription)
Creates a new transformed field.TransformedMethod(TypeDescription instrumentedType, TypeDefinition declaringType, MethodDescription.Token token, MethodDescription.InDefinedShape methodDescription)
Creates a new transformed method.Unloaded(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.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 TypeDescription Constructor Description Loaded(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.Map<TypeDescription,java.lang.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 TypeDescription Modifier and Type Method Description java.util.Map<TypeDescription,java.lang.Class<?>>
ClassInjector.AbstractBase. inject(java.util.Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassInjector. inject(java.util.Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader.ChildFirst. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations using a child-first class loader.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader.ChildFirst. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types, java.security.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 java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types, java.security.ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed)
Loads a given set of class descriptions and their binary representations.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default.InjectionDispatcher. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default.WrappingDispatcher. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.ForBootstrapInjection. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.ForUnsafeInjection. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy. load(T classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.UsingLookup. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassReloadingStrategy. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
InjectionClassLoader.Strategy. load(InjectionClassLoader classLoader, java.util.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 TypeDescription Modifier and Type Method Description java.util.Map<TypeDescription,java.lang.Class<?>>
ClassInjector.AbstractBase. inject(java.util.Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassInjector. inject(java.util.Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader.ChildFirst. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations using a child-first class loader.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader.ChildFirst. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types, java.security.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 java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations.static java.util.Map<TypeDescription,java.lang.Class<?>>
ByteArrayClassLoader. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types, java.security.ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, PackageDefinitionStrategy packageDefinitionStrategy, boolean forbidExisting, boolean sealed)
Loads a given set of class descriptions and their binary representations.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default.InjectionDispatcher. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.Default.WrappingDispatcher. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.ForBootstrapInjection. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.ForUnsafeInjection. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy. load(T classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassLoadingStrategy.UsingLookup. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
ClassReloadingStrategy. load(java.lang.ClassLoader classLoader, java.util.Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.java.util.Map<TypeDescription,java.lang.Class<?>>
InjectionClassLoader.Strategy. load(InjectionClassLoader classLoader, java.util.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.scaffold Modifier and Type Interface Description interface
InstrumentedType
Implementations of this interface represent an instrumented type that is subject to change.static interface
InstrumentedType.WithFlexibleName
Implementations represent anInstrumentedType
with a flexible name.Classes in net.bytebuddy.dynamic.scaffold that implement TypeDescription Modifier and Type Class Description static class
InstrumentedType.Default
A default implementation of an instrumented type.static class
InstrumentedType.Frozen
A frozen representation of an instrumented type of which the structure must not be modified.Fields in net.bytebuddy.dynamic.scaffold declared as TypeDescription Modifier and Type Field Description protected TypeDescription
FieldLocator.AbstractBase. accessingType
The type accessing the field.private TypeDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge. bridgeType
The type on which the bridge method is invoked.private TypeDescription
InstrumentedType.Default. declaringType
The declaring type of the instrumented type ornull
if no such type exists.private TypeDescription
InstrumentedType.Default. enclosingType
The enclosing type of the instrumented type ornull
if no such type exists.private TypeDescription
FieldRegistry.Default.Compiled. instrumentedType
The instrumented type for which this registry was compiled for.private TypeDescription
MethodRegistry.Default.Compiled. instrumentedType
The instrumented type.private TypeDescription
MethodRegistry.Default.Prepared. instrumentedType
The instrumented type.private TypeDescription
MethodRegistry.Handler.ForVisibilityBridge.Compiled. instrumentedType
The instrumented type.private TypeDescription
RecordComponentRegistry.Default.Compiled. instrumentedType
The instrumented type for which this registry was compiled for.protected TypeDescription
TypeInitializer.Drain.Default. instrumentedType
The instrumented type.private TypeDescription
TypeWriter.Default.ClassDumpAction. instrumentedType
The instrumented type.private TypeDescription
TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList. instrumentedType
The instrumented type.protected TypeDescription
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending. instrumentedType
The instrumented type.protected TypeDescription
TypeWriter.Default. instrumentedType
The instrumented type to be created.private TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge. instrumentedType
The instrumented type defining the bridge target.private TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget. instrumentedType
The instrumented type defining the bridge target.private TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper. instrumentedType
The instrumented type that defines the bridge methods and the bridge target.private TypeDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge. instrumentedType
The instrumented type.private TypeDescription
InstrumentedType.Default. nestHost
The nest host of this instrumented type or a description ofTargetType
if this type is its own nest host.protected TypeDescription
TypeWriter.Default.ForInlining. originalType
The original type's description.private TypeDescription
FieldLocator.ForClassHierarchy. typeDescription
The type for which to look up a field within its class hierarchy.private TypeDescription
FieldLocator.ForExactType.Factory. typeDescription
The type for which to locate a field.private TypeDescription
FieldLocator.ForExactType. typeDescription
The type for which to look up fields.private TypeDescription
InstrumentedType.Frozen. typeDescription
The represented type description.Fields in net.bytebuddy.dynamic.scaffold with type parameters of type TypeDescription Modifier and Type Field Description private java.util.List<? extends TypeDescription>
InstrumentedType.Default. declaredTypes
A list of types that are declared by this type.private java.util.LinkedHashMap<java.lang.String,TypeDescription>
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor. declaredTypes
A mapping of the internal names of all declared types to their description.private java.util.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 java.util.List<? extends TypeDescription>
InstrumentedType.Default. nestMembers
A list of all members of this types nest group excluding this type.private java.util.List<? extends TypeDescription>
InstrumentedType.Default. permittedSubclasses
A list of permitted subclasses.Methods in net.bytebuddy.dynamic.scaffold that return TypeDescription Modifier and Type Method Description TypeDescription
InstrumentedType.Default. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
InstrumentedType.Frozen. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
InstrumentedType.Default. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
InstrumentedType.Frozen. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
MethodRegistry.Compiled. getInstrumentedType()
Returns the instrumented type that is to be created.TypeDescription
MethodRegistry.Default.Compiled. getInstrumentedType()
Returns the instrumented type that is to be created.TypeDescription
MethodRegistry.Default.Prepared. getInstrumentedType()
Returns the fully prepared instrumented type.TypeDescription
MethodRegistry.Prepared. getInstrumentedType()
Returns the fully prepared instrumented type.TypeDescription
InstrumentedType.Default. getNestHost()
Returns the nest host of this type.TypeDescription
InstrumentedType.Frozen. getNestHost()
Returns the nest host of this type.TypeDescription
InstrumentedType.Default. validated()
Validates the instrumented type to define a legal Java type.TypeDescription
InstrumentedType.Frozen. validated()
Validates the instrumented type to define a legal Java type.TypeDescription
InstrumentedType. validated()
Validates the instrumented type to define a legal Java type.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TypeDescription Modifier and Type Method Description protected MethodRegistry.Default.Prepared.Entry
MethodRegistry.Default.Entry. asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, java.util.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.Compiled
FieldRegistry. compile(TypeDescription instrumentedType)
Prepares the field registry for a given instrumented type.FieldRegistry.Compiled
FieldRegistry.Default. compile(TypeDescription instrumentedType)
Prepares the field registry for a given instrumented type.MethodGraph.Linked
MethodGraph.Compiler.AbstractBase. compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.MethodGraph.Linked
MethodGraph.Compiler. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
MethodGraph.Compiler. compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.MethodGraph.Linked
MethodGraph.Compiler.Default. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
MethodGraph.Compiler.ForDeclaredMethods. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
MethodGraph.Compiler.ForDeclaredMethods. compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.MethodGraph.Linked
MethodGraph.Empty. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
MethodGraph.Empty. compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.RecordComponentRegistry.Compiled
RecordComponentRegistry. compile(TypeDescription instrumentedType)
Prepares the record component registry for a given instrumented type.RecordComponentRegistry.Compiled
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, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.List<? extends MethodDescription> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator)
Creates a type writer for decorating a type.static <U> TypeWriter<U>
TypeWriter.Default. forRebasing(MethodRegistry.Prepared methodRegistry, java.util.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, ClassWriterStrategy classWriterStrategy, 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, java.util.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, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a type writer for redefining a type.MethodGraph
MethodGraph.Empty. getInterfaceGraph(TypeDescription typeDescription)
Returns a graph representing the view on this represented type's directly implemented interface type.MethodGraph
MethodGraph.Linked.Delegation. getInterfaceGraph(TypeDescription typeDescription)
Returns a graph representing the view on this represented type's directly implemented interface type.MethodGraph
MethodGraph.Linked. getInterfaceGraph(TypeDescription typeDescription)
Returns a graph representing the view on this represented type's directly implemented interface type.FieldLocator.Resolution
FieldLocator.AbstractBase. locate(java.lang.String name, TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator.Resolution
FieldLocator. locate(java.lang.String name, TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator.Resolution
FieldLocator.NoOp. locate(java.lang.String name, TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.FieldLocator
FieldLocator.Factory. make(TypeDescription typeDescription)
Creates a field locator for a given type.FieldLocator
FieldLocator.ForClassHierarchy.Factory. make(TypeDescription typeDescription)
Creates a field locator for a given type.FieldLocator
FieldLocator.ForExactType.Factory. make(TypeDescription typeDescription)
Creates a field locator for a given type.FieldLocator
FieldLocator.ForTopLevelType.Factory. make(TypeDescription typeDescription)
Creates a field locator for a given type.FieldLocator
FieldLocator.NoOp. make(TypeDescription typeDescription)
Creates a field locator for a given type.protected static TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler
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, java.util.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.WithFlexibleName
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.WithFlexibleName
InstrumentedType.Default. withDeclaringType(TypeDescription declaringType)
Creates a new instrumented type that is declared by the supplied type..InstrumentedType.WithFlexibleName
InstrumentedType.Frozen. withDeclaringType(TypeDescription declaringType)
Creates a new instrumented type that is declared by the supplied type..InstrumentedType
InstrumentedType. withDeclaringType(TypeDescription declaringType)
Creates a new instrumented type that is declared by the supplied type..InstrumentedType.WithFlexibleName
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.WithFlexibleName
InstrumentedType.Default. withEnclosingType(TypeDescription enclosingType)
Creates a new instrumented type with the supplied enclosing type.InstrumentedType.WithFlexibleName
InstrumentedType.Frozen. withEnclosingType(TypeDescription enclosingType)
Creates a new instrumented type with the supplied enclosing type.InstrumentedType
InstrumentedType. withEnclosingType(TypeDescription enclosingType)
Creates a new instrumented type with the supplied enclosing type.InstrumentedType.WithFlexibleName
InstrumentedType.WithFlexibleName. withEnclosingType(TypeDescription enclosingType)
Creates a new instrumented type with the supplied enclosing type.InstrumentedType.WithFlexibleName
InstrumentedType.Default. withNestHost(TypeDescription nestHost)
Creates a new instrumented type with the supplied nest host.InstrumentedType.WithFlexibleName
InstrumentedType.Frozen. withNestHost(TypeDescription nestHost)
Creates a new instrumented type with the supplied nest host.InstrumentedType.WithFlexibleName
InstrumentedType.WithFlexibleName. withNestHost(TypeDescription nestHost)
Creates a new instrumented type with the supplied nest host.InstrumentedType
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 TypeDescription Constructor Description AbstractBase(TypeDescription accessingType)
Creates a new field locator.AccessBridgeWrapper(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, java.util.Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender)
Creates a wrapper for adding accessor bridges.AccessorBridge(MethodDescription bridgeTarget, MethodDescription.TypeToken bridgeType, TypeDescription instrumentedType)
Creates a new accessor bridge method.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.BridgeTarget(MethodDescription bridgeTarget, TypeDescription instrumentedType)
Creates a new bridge target.ClassDumpAction(java.lang.String target, TypeDescription instrumentedType, boolean original, long suffix, byte[] binaryRepresentation)
Creates a new class dump action.Compiled(TypeDescription instrumentedType, java.util.List<FieldRegistry.Default.Compiled.Entry> entries)
Creates a new compiled field registry.Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, java.util.LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges)
Creates a new compiled version of a default method registry.Compiled(TypeDescription instrumentedType)
Creates a new compiled handler for a visibility bridge.Compiled(TypeDescription instrumentedType, java.util.List<RecordComponentRegistry.Default.Compiled.Entry> entries)
Creates a new compiled record component registry.Creating(TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new creating initialization handler.Default(java.lang.String name, int modifiers, TypeDescription.Generic superClass, java.util.List<? extends TypeVariableToken> typeVariables, java.util.List<? extends TypeDescription.Generic> interfaceTypes, java.util.List<? extends FieldDescription.Token> fieldTokens, java.util.List<? extends MethodDescription.Token> methodTokens, java.util.List<? extends RecordComponentDescription.Token> recordComponentTokens, java.util.List<? extends AnnotationDescription> annotationDescriptions, TypeInitializer typeInitializer, LoadedTypeInitializer loadedTypeInitializer, TypeDescription declaringType, MethodDescription.InDefinedShape enclosingMethod, TypeDescription enclosingType, java.util.List<? extends TypeDescription> declaredTypes, java.util.List<? extends TypeDescription> permittedSubclasses, boolean anonymousClass, boolean localClass, boolean record, TypeDescription nestHost, java.util.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.Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, 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.ForCreation(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, 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.ForInlining(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a new inlining type writer.ForTopLevelType(TypeDescription typeDescription)
Creates a new type locator for a top-level type.Frozen(TypeDescription typeDescription, LoadedTypeInitializer loadedTypeInitializer)
Creates a new frozen representation of an instrumented type.LazyFieldList(TypeDescription instrumentedType)
Creates a lazy field list.OfVisibilityBridge(MethodDescription visibilityBridge, MethodDescription bridgeTarget, TypeDescription bridgeType, MethodAttributeAppender attributeAppender)
Creates a new record for a visibility bridge.Prepared(java.util.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.VisibilityBridge(TypeDescription instrumentedType, MethodDescription bridgeTarget)
Creates a new visibility bridge.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.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.WithDecorationOnly(TypeDescription instrumentedType, ClassFileVersion classFileVersion, java.util.List<? extends DynamicType> auxiliaryTypes, MethodList<?> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator)
Creates a new inlining type writer that only applies a decoration.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.WithFullProcessing(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, 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.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.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.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 TypeDescription Constructor Description Delegation(MethodGraph methodGraph, MethodGraph superClassGraph, java.util.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 TypeDescription Modifier and Type Field Description private TypeDescription
DecoratingDynamicTypeBuilder. instrumentedType
The instrumented type to decorate.private TypeDescription
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod. instrumentedType
The instrumented type.private TypeDescription
RebaseImplementationTarget.RebasedMethodInvocation. instrumentedType
The instrumented type on which the method should be invoked on.protected TypeDescription
AbstractInliningDynamicTypeBuilder. originalType
The original type that is being redefined or rebased.private TypeDescription
MethodRebaseResolver.Resolution.ForRebasedConstructor. placeholderType
The placeholder type that is prepended to the constructor signature.private 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 TypeDescription Modifier and Type Method Description TypeDescription
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
RebaseImplementationTarget. getOriginType()
Identifies the origin type of an implementation.TypeDescription
RebaseImplementationTarget.RebasedMethodInvocation. getTypeDescription()
Returns the target type the represented method is invoked on.TypeDescription
DecoratingDynamicTypeBuilder. toTypeDescription()
Returns aTypeDescription
for the currently built type.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type TypeDescription Modifier and Type Method Description DynamicType.Builder.InnerTypeDefinition.ForType<T>
DecoratingDynamicTypeBuilder. innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.static MethodRebaseResolver
MethodRebaseResolver.Default. make(TypeDescription instrumentedType, java.util.Set<? extends MethodDescription.SignatureToken> rebaseables, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.Implementation.Target
RebaseImplementationTarget.Factory. make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion)
Creates an implementation target.DynamicType.Builder<T>
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.static MethodRebaseResolver.Resolution
MethodRebaseResolver.Resolution.ForRebasedConstructor. of(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType)
Resolves a constructor rebasement.static MethodRebaseResolver.Resolution
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 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 TypeDescription Modifier and Type Method Description DynamicType.Builder<T>
DecoratingDynamicTypeBuilder. declaredTypes(java.util.Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.DynamicType.Builder<T>
DecoratingDynamicTypeBuilder. nestMembers(java.util.Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.DynamicType.Builder<T>
DecoratingDynamicTypeBuilder. permittedSubclass(java.util.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 TypeDescription Constructor Description AbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates an inlining dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, ClassFileLocator classFileLocator)
Creates a new decorating dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<DynamicType> auxiliaryTypes, ClassFileLocator classFileLocator)
Creates a new decorating dynamic type builder.ForRebasedConstructor(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType)
Creates a new resolution for a rebased constructor.RebasedConstructor(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType)
Creates a new rebased constructor.RebasedMethod(TypeDescription instrumentedType, MethodDescription.InDefinedShape methodDescription, MethodNameTransformer methodNameTransformer)
Creates a new rebased method.RebasedMethodInvocation(MethodDescription 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, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.RebaseImplementationTarget(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation, java.util.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, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, java.util.List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder. -
Uses of TypeDescription in net.bytebuddy.dynamic.scaffold.subclass
Methods in net.bytebuddy.dynamic.scaffold.subclass with parameters of type TypeDescription Modifier and Type Method Description protected abstract java.util.List<MethodDescription.Token>
ConstructorStrategy.Default. doExtractConstructors(TypeDescription instrumentedType)
Extracts the relevant method tokens of the instrumented type's constructors.java.util.List<MethodDescription.Token>
ConstructorStrategy.Default. extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.java.util.List<MethodDescription.Token>
ConstructorStrategy.Default.WithMethodAttributeAppenderFactory. extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.java.util.List<MethodDescription.Token>
ConstructorStrategy. extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.java.util.List<MethodDescription.Token>
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.MethodRegistry
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.MethodRegistry
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.MethodRegistry
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.MethodRegistry
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.Implementation.Target
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 TypeDescription Constructor Description 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 TypeDescription Modifier and Type Field Description private TypeDescription
Implementation.Context.Default.FieldCacheEntry. fieldType
The field type that is represented by this field cache entry.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance. fieldType
The type of the static field.private TypeDescription
EqualsMethod.Appender. instrumentedType
The instrumented type.private TypeDescription
FieldAccessor.ForSetter.Appender. instrumentedType
The instrumented type.private TypeDescription
FixedValue.ForThisValue.Appender. instrumentedType
The instrumented type.private TypeDescription
Implementation.Context.Default.AccessorMethod. instrumentedType
The instrumented type.private TypeDescription
Implementation.Context.Default.CacheValueField. instrumentedType
The instrumented type.private TypeDescription
Implementation.Context.Default.FieldGetter. instrumentedType
The instrumented type.private TypeDescription
Implementation.Context.Default.FieldSetter. instrumentedType
The instrumented type.protected TypeDescription
Implementation.Context.ExtractableView.AbstractBase. instrumentedType
The instrumented type.protected TypeDescription
Implementation.Target.AbstractBase. instrumentedType
The instrumented type.private TypeDescription
InvocationHandlerAdapter.ForInstance.Appender. instrumentedType
The instrumented type for which the methods are being intercepted.private TypeDescription
InvokeDynamic.Appender. instrumentedType
The instrumented type of the current implementation.private TypeDescription
MethodCall.ArgumentLoader.ForInstrumentedType. instrumentedType
The instrumented type.private TypeDescription
MethodCall.ArgumentLoader.ForThisReference. instrumentedType
The instrumented type.private TypeDescription
MethodCall.MethodInvoker.ForContextualInvocation. instrumentedType
The instrumented type.private TypeDescription
MethodCall.MethodInvoker.ForDefaultMethodInvocation. instrumentedType
The instrumented type.private TypeDescription
MethodCall.MethodInvoker.ForSuperMethodInvocation. instrumentedType
The instrumented type.private TypeDescription
MethodCall.MethodLocator.ForElementMatcher. instrumentedType
The instrumented type.private TypeDescription
MethodCall.TargetHandler.ForConstructingInvocation. instrumentedType
The instrumented type.private TypeDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation. instrumentedType
The instrumented type.private TypeDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved. instrumentedType
The instrumented type.private TypeDescription
FixedValue.ForPoolValue. loadedType
The type of the fixed value.private TypeDescription
FixedValue.ForOriginType.Appender. originType
The instrumented type.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper. primitiveType
The primitive type that can be stored on the constant pool.private TypeDescription
InvokeDynamic.InvocationProvider.Default.Target. returnType
The return type to be requested from the bootstrapping method.private TypeDescription
InvokeDynamic.InvocationProvider.Target.Resolved.Simple. returnType
The requested return type.private TypeDescription
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor. throwableType
The type of the exception that is to be thrown.private TypeDescription
ExceptionMethod.ConstructionDelegate.ForStringConstructor. throwableType
The type of the exception that is to be thrown.private TypeDescription
Implementation.SpecialMethodInvocation.Simple. typeDescription
The type description that is represented by this legal special method invocation.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant. typeDescription
The type that is represented by this constant.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType. typeDescription
The explicit type.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter.WithExplicitType. typeDescription
The explicit type.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue. typeDescription
The type to be represented by thenull
value.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance. typeDescription
The type as which the intercepted instance should be loaded onto the operand stack.private TypeDescription
InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType. typeDescription
The requested return type.private TypeDescription
MethodCall.MethodInvoker.ForVirtualInvocation.Factory. typeDescription
The type on which the virtual method is invoked.private TypeDescription
MethodCall.MethodInvoker.ForVirtualInvocation. typeDescription
The type description to virtually invoke the method upon.private TypeDescription
MethodCall.TargetHandler.Simple. typeDescription
The type resolved by the stack manipulation.private TypeDescription
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction. typeDescription
The type to be constructed.private TypeDescription
MethodDelegation.ImplementationDelegate.ForConstruction. typeDescription
The type being constructed.private TypeDescription
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper. wrapperType
The wrapper type that is to be represented.Fields in net.bytebuddy.implementation with type parameters of type TypeDescription Modifier and Type Field Description private java.util.List<TypeDescription>
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple. loadedTypes
A list of all types of the arguments that were loaded onto the operand stack.private java.util.Set<TypeDescription>
DefaultMethodCall.Appender. nonPrioritizedInterfaces
The relevant non-prioritized interfaces to be considered by this appender.private java.util.List<TypeDescription>
InvokeDynamic.InvocationProvider.Target.Resolved.Simple. parameterTypes
The types of the values on the operand stack.private java.util.List<TypeDescription>
DefaultMethodCall.Appender. prioritizedInterfaces
The relevant prioritized interfaces to be considered by this appender.private java.util.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 TypeDescription Modifier and Type Method Description TypeDescription
Implementation.Context.Default.AccessorMethod. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
Implementation.Context.Default.CacheValueField. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
Implementation.Context.Default.FieldGetter. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
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.TypeDescription
Implementation.Context.ExtractableView.AbstractBase. getInstrumentedType()
Returns the instrumented type of the current implementation.TypeDescription
Implementation.Context. getInstrumentedType()
Returns the instrumented type of the current implementation.TypeDescription
Implementation.Target.AbstractBase. getInstrumentedType()
Returns a description of the instrumented type.TypeDescription
Implementation.Target. getInstrumentedType()
Returns a description of the instrumented type.TypeDescription
InvokeDynamic.InvocationProvider.Target.Resolved. getReturnType()
Returns the requested return type.TypeDescription
InvokeDynamic.InvocationProvider.Target.Resolved.Simple. getReturnType()
Returns the requested return type.TypeDescription
Implementation.SpecialMethodInvocation. getTypeDescription()
Returns the target type the represented method is invoked on.TypeDescription
Implementation.SpecialMethodInvocation.Illegal. getTypeDescription()
Returns the target type the represented method is invoked on.TypeDescription
Implementation.SpecialMethodInvocation.Simple. getTypeDescription()
Returns the target type the represented method is invoked on.TypeDescription
MethodCall.TargetHandler.ForConstructingInvocation. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.ForField. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.ForMethodCall.Resolved. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.ForMethodParameter.Resolved. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.ForValue. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.Resolved. getTypeDescription()
Returns the target's type description.TypeDescription
MethodCall.TargetHandler.Simple. getTypeDescription()
Returns the target's type description.TypeDescription
Implementation.Context.Default. register(AuxiliaryType auxiliaryType)
Registers an auxiliary type as required for the current implementation.TypeDescription
Implementation.Context.Disabled. register(AuxiliaryType auxiliaryType)
Registers an auxiliary type as required for the current implementation.TypeDescription
Implementation.Context. register(AuxiliaryType auxiliaryType)
Registers an auxiliary type as required for the current implementation.TypeDescription
InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType. resolve(MethodDescription methodDescription)
Resolves the return type that is requested from the bootstrap method.TypeDescription
InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForInterceptedMethod. resolve(MethodDescription methodDescription)
Resolves the return type that is requested from the bootstrap method.TypeDescription
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 TypeDescription Modifier and Type Method Description private java.util.List<TypeDescription>
DefaultMethodCall. filterRelevant(TypeDescription typeDescription)
Filters the relevant prioritized interfaces for a given type, i.e.java.util.List<TypeDescription>
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved. getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.java.util.List<TypeDescription>
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple. getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.java.util.List<TypeDescription>
InvokeDynamic.InvocationProvider.Target.Resolved. getParameterTypes()
Returns the types of the values on the operand stack.java.util.List<TypeDescription>
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 TypeDescription Modifier and Type Method Description protected 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
InvokeDynamic.WithImplicitType.OfArgument. as(TypeDescription typeDescription)
InvokeDynamic
InvokeDynamic.WithImplicitType.OfField. as(TypeDescription typeDescription)
InvokeDynamic
InvokeDynamic.WithImplicitType.OfInstance. as(TypeDescription typeDescription)
FieldDescription.InDefinedShape
Implementation.Context. cache(StackManipulation fieldValue, TypeDescription fieldType)
Caches a single value by storing it in form of aprivate
,final
andstatic
field.FieldDescription.InDefinedShape
Implementation.Context.Default. cache(StackManipulation fieldValue, TypeDescription fieldType)
Caches a single value by storing it in form of aprivate
,final
andstatic
field.FieldDescription.InDefinedShape
Implementation.Context.Disabled. cache(StackManipulation fieldValue, TypeDescription fieldType)
Caches a single value by storing it in form of aprivate
,final
andstatic
field.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate. compile(TypeDescription instrumentedType)
Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.ForConstruction. compile(TypeDescription instrumentedType)
Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.ForField. compile(TypeDescription instrumentedType)
Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.ForMethodReturn. compile(TypeDescription instrumentedType)
Compiles this implementation delegate.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.ForStaticMethod. compile(TypeDescription instrumentedType)
Compiles this implementation delegate.private java.util.List<TypeDescription>
DefaultMethodCall. filterRelevant(TypeDescription typeDescription)
Filters the relevant prioritized interfaces for a given type, i.e.FieldAccessor.AssignerConfigurable
FieldAccessor.ForImplicitProperty. in(TypeDescription typeDescription)
Determines that a field should only be considered when it was defined in a given type.FieldAccessor.AssignerConfigurable
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 java.lang.Void
FieldAccessor.ForSetter.OfConstantValue. initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.protected java.lang.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 java.lang.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.WithImplicitArguments
InvokeDynamic.WithImplicitTarget. invoke(java.lang.String methodName, TypeDescription returnType)
Requests the bootstrap method to bind a method with the given return type.InvokeDynamic.WithImplicitArguments
InvokeDynamic.WithImplicitTarget. invoke(TypeDescription returnType)
Requests the bootstrap method to bind a method with the given return type.Implementation.SpecialMethodInvocation
Implementation.Target.AbstractBase. invokeDefault(MethodDescription.SignatureToken token, TypeDescription targetType)
Creates a special method invocation for invoking a default method.Implementation.SpecialMethodInvocation
Implementation.Target. invokeDefault(MethodDescription.SignatureToken token, TypeDescription targetType)
Creates a special method invocation for invoking a default method.static InvokeDynamic.WithImplicitArguments
InvokeDynamic. lambda(MethodDescription.InDefinedShape methodDescription, TypeDescription functionalInterface)
Creates a lambda expression using the JVM's lambda meta factory.static InvokeDynamic.WithImplicitArguments
InvokeDynamic. lambda(MethodDescription.InDefinedShape methodDescription, TypeDescription functionalInterface, MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.Implementation.Context.ExtractableView
Implementation.Context.Default.Factory. make(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.Implementation.Context.ExtractableView
Implementation.Context.Disabled.Factory. make(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.Implementation.Context.ExtractableView
Implementation.Context.Factory. make(TypeDescription instrumentedType, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion classFileVersion, ClassFileVersion auxiliaryClassFileVersion)
Creates a new implementation context.Implementation.Target
Implementation.Target.Factory. make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion)
Creates an implementation target.MethodCall.MethodInvoker
MethodCall.MethodInvoker.Factory. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodInvoker
MethodCall.MethodInvoker.ForContextualInvocation.Factory. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodInvoker
MethodCall.MethodInvoker.ForDefaultMethodInvocation.Factory. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodInvoker
MethodCall.MethodInvoker.ForSuperMethodInvocation.Factory. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodInvoker
MethodCall.MethodInvoker.ForVirtualInvocation.Factory. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodInvoker
MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType. make(TypeDescription instrumentedType)
Creates a method invoker.MethodCall.MethodLocator
MethodCall.MethodLocator.Factory. make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.MethodCall.MethodLocator
MethodCall.MethodLocator.ForElementMatcher.Factory. make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.MethodCall.MethodLocator
MethodCall.MethodLocator.ForExplicitMethod. make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.MethodCall.MethodLocator
MethodCall.MethodLocator.ForInstrumentedMethod. make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.MethodCall.TerminationHandler
MethodCall.TerminationHandler.Factory. make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler
MethodCall.TerminationHandler.FieldSetting.Explicit. make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler
MethodCall.TerminationHandler.FieldSetting.Implicit. make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.MethodCall.TerminationHandler
MethodCall.TerminationHandler.Simple. make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.static Implementation.SpecialMethodInvocation
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
MethodCall.WithoutSpecifiedTarget. on(StackManipulation stackManipulation, TypeDescription typeDescription)
Invokes the specified method on an instance that is loaded by the provided stack manipulation.FieldAccessor.FieldLocation.Prepared
FieldAccessor.FieldLocation.Absolute. prepare(TypeDescription instrumentedType)
A prepared field location.FieldAccessor.FieldLocation.Prepared
FieldAccessor.FieldLocation. prepare(TypeDescription instrumentedType)
A prepared field location.FieldAccessor.FieldLocation.Prepared
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(java.lang.Void unused, FieldDescription fieldDescription, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.protected StackManipulation
FieldAccessor.ForSetter.OfDefaultValue. resolve(java.lang.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(java.lang.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.StackManipulation
HashCodeMethod.OffsetProvider.ForFixedValue. resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.StackManipulation
HashCodeMethod.OffsetProvider.ForSuperMethodCall. resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.StackManipulation
HashCodeMethod.OffsetProvider. resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForBooleanConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForByteConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForCharacterConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForDoubleConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForEnumerationValue. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForFloatConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForIntegerConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodInstanceAndParameters. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodParameters. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForLongConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForShortConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForStringConstant. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
InvokeDynamic.InvocationProvider.ArgumentProvider. resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
Resolves an argument provider.InvokeDynamic.InvocationProvider.Target.Resolved
InvokeDynamic.InvocationProvider.Default.Target. resolve(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
Resolves the target.InvokeDynamic.InvocationProvider.Target.Resolved
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.MethodDescription
MethodCall.MethodLocator.ForElementMatcher. resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
Resolves the method to be invoked.MethodDescription
MethodCall.MethodLocator.ForExplicitMethod. resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
Resolves the method to be invoked.MethodDescription
MethodCall.MethodLocator.ForInstrumentedMethod. resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
Resolves the method to be invoked.MethodDescription
MethodCall.MethodLocator. resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
Resolves the method to be invoked.FieldDescription
MethodCall.TargetHandler.ForField.Location.ForExplicitField. resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.FieldDescription
MethodCall.TargetHandler.ForField.Location.ForImplicitField. resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.FieldDescription
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)
java.lang.String
ToStringMethod.PrefixResolver.ForFixedValue. resolve(TypeDescription instrumentedType)
Resolves the prefixed value.java.lang.String
ToStringMethod.PrefixResolver. resolve(TypeDescription instrumentedType)
Resolves the prefixed value.Implementation.Composable
FieldAccessor.ForImplicitProperty. setsValue(TypeDescription typeDescription)
Defines a setter of a given class constant value for the described field.Implementation.Composable
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, java.lang.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
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
MethodDelegation.WithCustomProperties. toConstructor(TypeDescription typeDescription)
Delegates any intercepted method to invoke a constructor of the supplied type.static FixedValue.AssignerConfigurable
FixedValue. value(TypeDescription fixedValue)
Returns the given type in form of a loaded type.MethodCall
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
InvokeDynamic.AbstractDelegator. withNullValue(TypeDescription... typeDescription)
Passesnull
values of the given types to the bootstrapped method.InvokeDynamic
InvokeDynamic. withNullValue(TypeDescription... typeDescription)
Passesnull
values of the given types to the bootstrapped method.InvokeDynamic
InvokeDynamic.AbstractDelegator. withThis(TypeDescription... typeDescription)
Passes references tothis
onto the operand stack where the instance is represented as the given types.InvokeDynamic
InvokeDynamic. withThis(TypeDescription... typeDescription)
Passes references tothis
onto the operand stack where the instance is represented as the given types.InvokeDynamic
InvokeDynamic.AbstractDelegator. withType(TypeDescription... typeDescription)
Hands the provided types to the dynamically bound method.InvokeDynamic
InvokeDynamic. withType(TypeDescription... typeDescription)
Hands the provided types to the dynamically bound method.Method parameters in net.bytebuddy.implementation with type arguments of type TypeDescription Modifier and Type Method Description static Implementation
DefaultMethodCall. prioritize(java.util.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 TypeDescription Constructor Description AbstractBase(TypeDescription instrumentedType, ClassFileVersion classFileVersion)
Create a new extractable view.AbstractBase(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation)
Creates a new implementation target.AccessorMethod(TypeDescription instrumentedType, MethodDescription methodDescription, java.lang.String suffix)
Creates a new accessor method.AccessorMethodDelegation(TypeDescription instrumentedType, java.lang.String suffix, MethodAccessorFactory.AccessType accessType, Implementation.SpecialMethodInvocation specialMethodInvocation)
Creates a delegation to an accessor method.Appender(TypeDescription instrumentedType, StackManipulation baseline, java.util.List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender.Appender(TypeDescription instrumentedType, T initialized, FieldAccessor.FieldLocation.Prepared fieldLocation)
Creates a new appender for a field setter.Appender(TypeDescription originType)
Creates a new appender.Appender(TypeDescription instrumentedType)
Creates a new byte code appender for returningthis
.Appender(TypeDescription instrumentedType)
Creates a new appender.Appender(TypeDescription instrumentedType)
Creates a new byte code appender for an invoke dynamic implementation.CacheValueField(TypeDescription instrumentedType, TypeDescription.Generic fieldType, java.lang.String suffix, int hashCode)
Creates a new cache value field.Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, TypeInitializer typeInitializer, ClassFileVersion auxiliaryClassFileVersion)
Creates a new default implementation context.Disabled(TypeDescription instrumentedType, ClassFileVersion classFileVersion)
Creates a new disabled implementation context.Factory(TypeDescription typeDescription)
Creates a new method invoker factory for a virtual method call.FieldCacheEntry(StackManipulation fieldValue, TypeDescription fieldType)
Creates a new field cache entry.FieldGetter(TypeDescription instrumentedType, FieldDescription fieldDescription, java.lang.String suffix)
Creates a new field getter.FieldGetterDelegation(TypeDescription instrumentedType, java.lang.String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription)
Creates a new field getter implementation.FieldSetter(TypeDescription instrumentedType, FieldDescription fieldDescription, java.lang.String suffix)
Creates a new field setter.FieldSetterDelegation(TypeDescription instrumentedType, java.lang.String suffix, MethodAccessorFactory.AccessType accessType, FieldDescription fieldDescription)
Creates a new field setter implementation.ForClassConstant(TypeDescription typeDescription)
Creates a new argument provider for the given type description.ForConstructingInvocation(TypeDescription instrumentedType)
Creates a new target handle constructor invocation.ForConstruction(TypeDescription typeDescription, java.util.List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a constructor delegation.ForConstruction(TypeDescription typeDescription, java.util.List<MethodDelegationBinder.Record> records)
Creates an implementation delegate for constructing a new instance.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.ForDefaultMethodInvocation(TypeDescription instrumentedType)
Creates a new method invoker for a default method invocation.ForElementMatcher(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler)
Creates a new method locator for an element matcher.ForExplicitType(TypeDescription typeDescription)
Creates a new return type provider for an explicit return type.ForInstance(java.lang.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.ForNullValue(TypeDescription typeDescription)
Creates a new argument provider for thenull
value.ForPoolValue(Assigner assigner, Assigner.Typing typing, StackManipulation valueLoadInstruction, TypeDescription loadedType)
Creates a new constant pool fixed value implementation.ForPoolValue(StackManipulation valueLoadInstruction, TypeDescription loadedType)
Creates a new constant pool fixed value implementation.ForSelfOrStaticInvocation(TypeDescription instrumentedType)
Creates a new target handler for a static or self-declared invocation.ForStringConstructor(TypeDescription throwableType, java.lang.String message)
Creates a new construction delegate that calls a constructor by handing it the given string.ForSuperMethodInvocation(TypeDescription instrumentedType)
Creates a method invoker for a super method invocation.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.ForVirtualInvocation(TypeDescription typeDescription)
Creates a new method invoking for a virtual method invocation.Resolved(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Creates a resolved target handler for a static or self-declared invocation.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, java.lang.String internalName, TypeDescription returnType, java.util.List<TypeDescription> parameterTypes)
Creates a new simple instance.Simple(TypeDescription typeDescription, StackManipulation stackManipulation)
Creates a simple target handler.StaticFieldByteCodeAppender(TypeDescription instrumentedType)
Creates a new byte code appender for returning a value of a static field from an instrumented method.Target(java.lang.String internalName, TypeDescription returnType, java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod)
Creates a new target.WithExplicitType(java.lang.String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.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 TypeDescription Constructor Description Appender(Implementation.Target implementationTarget, java.util.List<TypeDescription> prioritizedInterfaces)
Creates a new appender for implementing aDefaultMethodCall
.DefaultMethodCall(java.util.List<TypeDescription> prioritizedInterfaces)
Creates a newDefaultMethodCall
implementation for a given list of prioritized interfaces.Simple(StackManipulation stackManipulation, java.util.List<TypeDescription> loadedTypes)
Creates a simple resolved argument provider.Simple(StackManipulation stackManipulation, java.lang.String internalName, TypeDescription returnType, java.util.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 TypeDescription Modifier and Type Method Description static void
AnnotationAppender.Default. apply(org.objectweb.asm.AnnotationVisitor annotationVisitor, TypeDescription valueType, java.lang.String name, java.lang.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
FieldAttributeAppender.Explicit. make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender
FieldAttributeAppender.Factory.Compound. make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender
FieldAttributeAppender.Factory. make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender
FieldAttributeAppender.ForInstrumentedField. make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.FieldAttributeAppender
FieldAttributeAppender.NoOp. make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.Explicit. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.Factory.Compound. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.Factory. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.ForInstrumentedMethod. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.ForReceiverType. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.MethodAttributeAppender
MethodAttributeAppender.NoOp. make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.RecordComponentAttributeAppender
RecordComponentAttributeAppender.Explicit. make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender
RecordComponentAttributeAppender.Factory.Compound. make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender
RecordComponentAttributeAppender.Factory. make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender
RecordComponentAttributeAppender.ForInstrumentedRecordComponent. make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.RecordComponentAttributeAppender
RecordComponentAttributeAppender.NoOp. make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.AnnotationValueFilter
AnnotationValueFilter.Default. on(TypeDescription instrumentedType)
Creates an annotation value filter for writing annotations on an instrumented type.AnnotationValueFilter
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 TypeDescription Constructor Description Differentiating(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 TypeDescription Modifier and Type Field Description private TypeDescription
MethodCallProxy.ConstructorCall.Appender. instrumentedType
The instrumented type being created.private TypeDescription
MethodCallProxy.MethodCall.Appender. instrumentedType
The instrumented type that is implemented.private TypeDescription
TypeProxy.SilentConstruction.Appender. instrumentedType
The instrumented type that this factory method is created for.private TypeDescription
TypeProxy.ForDefaultMethod. proxiedType
The proxied interface type.private TypeDescription
TypeProxy.ForSuperMethodByConstructor. proxiedType
The type for the type proxy to subclass or implement.private TypeDescription
TypeProxy.ForSuperMethodByReflectionFactory. proxiedType
The type for which a proxy type is created.private TypeDescription
TypeProxy. proxiedType
The type that is proxied, i.e.Fields in net.bytebuddy.implementation.auxiliary with type parameters of type TypeDescription Modifier and Type Field Description private java.util.List<TypeDescription>
TypeProxy.ForSuperMethodByConstructor. constructorParameters
The parameter types of the constructor that should be called.Methods in net.bytebuddy.implementation.auxiliary that return types with arguments of type TypeDescription Modifier and Type Method Description private static java.util.LinkedHashMap<java.lang.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 TypeDescription Modifier and Type Method Description MethodGraph.Linked
MethodCallProxy.PrecomputedMethodGraph. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
MethodCallProxy.PrecomputedMethodGraph. compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.Implementation.SpecialMethodInvocation
TypeProxy.InvocationFactory. invoke(Implementation.Target implementationTarget, TypeDescription proxiedType, MethodDescription instrumentedMethod)
Creates a special method invocation to implement for a given method.java.lang.String
AuxiliaryType.NamingStrategy. name(TypeDescription instrumentedType)
Names an auxiliary type.java.lang.String
AuxiliaryType.NamingStrategy.SuffixingRandom. name(TypeDescription instrumentedType)
Names an auxiliary type.Constructors in net.bytebuddy.implementation.auxiliary with parameters of type TypeDescription Constructor Description Appender(TypeDescription instrumentedType)
Creates a new appender.Appender(TypeDescription instrumentedType)
Creates a new appender.Appender(TypeDescription instrumentedType)
Creates a new appender.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, Implementation.Target implementationTarget, java.util.List<TypeDescription> constructorParameters, 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.Constructor parameters in net.bytebuddy.implementation.auxiliary with type arguments of type TypeDescription Constructor Description ForSuperMethodByConstructor(TypeDescription proxiedType, Implementation.Target implementationTarget, java.util.List<TypeDescription> constructorParameters, boolean ignoreFinalizer, boolean serializableProxy)
Creates a new stack operation for creating a type proxy by calling one of its constructors. -
Uses of TypeDescription in net.bytebuddy.implementation.bind
Fields in net.bytebuddy.implementation.bind declared as TypeDescription Modifier and Type Field Description private 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 TypeDescription Modifier and Type Method Description static ArgumentTypeResolver.PrimitiveTypePrecedence
ArgumentTypeResolver.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 TypeDescription Constructor Description Virtual(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 TypeDescription Modifier and Type Field Description private TypeDescription
Pipe.Binder.Redirection. forwardingType
The type that declares the method for forwarding a method invocation.private TypeDescription
FieldProxy.Binder.AccessorProxy. instrumentedType
The type which is accessed.private TypeDescription
FieldProxy.Binder.InstanceFieldConstructor. instrumentedType
The instrumented type from which a field is to be accessed.private TypeDescription
Morph.Binder.RedirectionProxy.InstanceFieldConstructor. instrumentedType
The instrumented type.private TypeDescription
Morph.Binder.RedirectionProxy. instrumentedType
The type that is instrumented on which the super method is invoked.private TypeDescription
Pipe.Binder.Redirection.ConstructorCall.Appender. instrumentedType
The instrumented type being created.private TypeDescription
Pipe.Binder.Redirection.MethodCall.Appender. instrumentedType
The instrumented type that is implemented.private TypeDescription
Morph.Binder.RedirectionProxy. morphingType
The interface type that is implemented by the generated proxy.private TypeDescription
FieldProxy.Binder.FieldResolver.Factory.Duplex. proxyType
The type of the accessor proxy.private TypeDescription
FieldProxy.Binder.FieldResolver.ForGetterSetterPair. proxyType
The type of the accessor proxy.private TypeDescription
Default.Binder.TypeLocator.ForType. typeDescription
The type to be returned upon resolution.private TypeDescription
DefaultCall.Binder.DefaultMethodLocator.Explicit. typeDescription
A description of the type on which the default method should be invoked.private TypeDescription
DefaultMethod.Binder.MethodLocator.ForExplicitType. typeDescription
The explicit target type.private TypeDescription
FieldProxy.Binder.FieldGetter.Appender. typeDescription
The generated accessor type.private TypeDescription
FieldProxy.Binder.FieldSetter.Appender. typeDescription
The generated accessor type.private TypeDescription
Morph.Binder.DefaultMethodLocator.Explicit. typeDescription
A description of the type on which the default method should be invoked.private TypeDescription
Morph.Binder.RedirectionProxy.MethodCall.Appender. typeDescription
The proxy type.private 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 TypeDescription Modifier and Type Field Description private java.util.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 TypeDescription Modifier and Type Method Description protected TypeDescription
FieldProxy.Binder. declaringType(AnnotationDescription.Loadable<FieldProxy> 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.TypeDescription
FieldProxy.Binder.FieldResolver.ForGetter. getProxyType()
Returns the type of the field access proxy.TypeDescription
FieldProxy.Binder.FieldResolver.ForGetterSetterPair. getProxyType()
Returns the type of the field access proxy.TypeDescription
FieldProxy.Binder.FieldResolver.ForSetter. getProxyType()
Returns the type of the field access proxy.TypeDescription
FieldProxy.Binder.FieldResolver. getProxyType()
Returns the type of the field access proxy.TypeDescription
FieldProxy.Binder.FieldResolver.Unresolved. getProxyType()
Returns the type of the field access proxy.TypeDescription
Default.Binder.TypeLocator.ForParameterType. resolve(TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Default.Binder.TypeLocator.ForType. resolve(TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Default.Binder.TypeLocator. resolve(TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator.ForInstrumentedType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator.ForParameterType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator.ForType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
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 TypeDescription Modifier and Type Method Description private static java.util.LinkedHashMap<java.lang.String,TypeDescription>
Pipe.Binder.Redirection. extractFields(MethodDescription methodDescription)
Extracts all parameters of a method to fields.Methods in net.bytebuddy.implementation.bind.annotation with parameters of type TypeDescription Modifier and Type Method Description static TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldProxy>
FieldProxy.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.static TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldProxy>
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.static TargetMethodAnnotationDrivenBinder.ParameterBinder<Morph>
Morph.Binder. install(TypeDescription typeDescription)
Installs a given type for use on aMorph
annotation.static TargetMethodAnnotationDrivenBinder.ParameterBinder<Pipe>
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 parameterType, Implementation.Target implementationTarget, AnnotationDescription.Loadable<Super> annotation)
Creates a stack manipulation which loads asuper
-call proxy onto the stack.FieldProxy.Binder.FieldResolver
FieldProxy.Binder.FieldResolver.Factory.Duplex. resolve(TypeDescription parameterType, FieldDescription fieldDescription)
Creates a field resolver.FieldProxy.Binder.FieldResolver
FieldProxy.Binder.FieldResolver.Factory. resolve(TypeDescription parameterType, FieldDescription fieldDescription)
Creates a field resolver.FieldProxy.Binder.FieldResolver
FieldProxy.Binder.FieldResolver.Factory.Simplex. resolve(TypeDescription parameterType, FieldDescription fieldDescription)
Creates a field resolver.TypeDescription
Super.Binder.TypeLocator.ForInstrumentedType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator.ForParameterType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator.ForType. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.TypeDescription
Super.Binder.TypeLocator. resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType)
Resolves the target type.Constructors in net.bytebuddy.implementation.bind.annotation with parameters of type TypeDescription Constructor Description AccessorProxy(FieldDescription fieldDescription, TypeDescription instrumentedType, FieldProxy.Binder.FieldResolver fieldResolver, Assigner assigner, boolean serializableProxy)
Appender(TypeDescription instrumentedType)
Creates a new appender.Appender(TypeDescription instrumentedType)
Creates a new appender.Binder(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod)
Creates a new binder for aFieldProxy
in duplex mode.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.ForExplicitType(TypeDescription typeDescription)
Creates a method locator for an explicit target.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.ForType(TypeDescription typeDescription)
Creates a new type locator for a given type.ForType(TypeDescription typeDescription)
Creates a new type locator for a given type.InstanceFieldConstructor(TypeDescription instrumentedType)
Creates a new implementation for implementing a field accessor proxy's constructor when accessing a non-static field.InstanceFieldConstructor(TypeDescription instrumentedType)
Creates a new instance field constructor implementation.Redirection(TypeDescription forwardingType, MethodDescription sourceMethod, Assigner assigner, boolean serializableProxy)
Creates a new redirection.RedirectionProxy(TypeDescription morphingType, TypeDescription instrumentedType, Implementation.SpecialMethodInvocation specialMethodInvocation, Assigner assigner, boolean serializableProxy)
Creates a new redirection proxy.Constructor parameters in net.bytebuddy.implementation.bind.annotation with type arguments of type TypeDescription Constructor Description DelegationProcessor(java.util.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 TypeDescription Modifier and Type Field Description private TypeDescription
TypeCreation. typeDescription
The type that is being created.Methods in net.bytebuddy.implementation.bytecode with parameters of type TypeDescription Modifier and Type Method Description static StackManipulation
TypeCreation. of(TypeDescription typeDescription)
Creates a type creation for the given type.Constructors in net.bytebuddy.implementation.bytecode with parameters of type TypeDescription Constructor Description 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 TypeDescription Modifier and Type Field Description private TypeDescription
InstanceCheck. typeDescription
The type to apply the instance check against.private TypeDescription
TypeCasting. typeDescription
The type description to which a value should be casted.Methods in net.bytebuddy.implementation.bytecode.assign with parameters of type TypeDescription Modifier and Type Method Description static StackManipulation
InstanceCheck. of(TypeDescription typeDescription)
Creates a new instance check.Constructors in net.bytebuddy.implementation.bytecode.assign with parameters of type TypeDescription Constructor Description InstanceCheck(TypeDescription typeDescription)
Creates a new instance check.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 TypeDescription Modifier and Type Field Description private TypeDescription
PrimitiveUnboxingDelegate. primitiveType
The represented primitive type.private TypeDescription
PrimitiveBoxingDelegate. wrapperType
A description of a wrapper type.private 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 TypeDescription Constructor Description 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 TypeDescription Modifier and Type Field Description private static TypeDescription
MethodConstant.CachedConstructor. CONSTRUCTOR_TYPE
A description of theConstructor
type.private static TypeDescription
MethodConstant.CachedMethod. METHOD_TYPE
A description of theMethod
type.private 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 TypeDescription Modifier and Type Method Description static 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 TypeDescription Modifier and Type Method Description protected static java.util.List<StackManipulation>
MethodConstant. typeConstantsFor(java.util.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 TypeDescription Constructor Description 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 TypeDescription Modifier and Type Field Description private TypeDescription
MethodInvocation.DynamicInvocation. returnType
The return type of the method to be bootstrapped.private TypeDescription
MethodInvocation.OfGenericMethod. targetType
The generically resolved return type of the method.private TypeDescription
MethodInvocation.Invocation. typeDescription
The method to be invoked.Fields in net.bytebuddy.implementation.bytecode.member with type parameters of type TypeDescription Modifier and Type Field Description private java.util.List<? extends TypeDescription>
MethodInvocation.DynamicInvocation. parameterTypes
The parameter types of the method to be bootstrapped.Methods in net.bytebuddy.implementation.bytecode.member with parameters of type TypeDescription Modifier and Type Method Description StackManipulation
MethodInvocation.IllegalInvocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.Invocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.OfGenericMethod. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.WithImplicitInvocationTargetType. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
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.StackManipulation
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.StackManipulation
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.StackManipulation
MethodInvocation.IllegalInvocation. special(TypeDescription invocationTarget)
Transforms this method invocation into a special invocation on the given type.StackManipulation
MethodInvocation.Invocation. special(TypeDescription invocationTarget)
Transforms this method invocation into a special invocation on the given type.StackManipulation
MethodInvocation.OfGenericMethod. special(TypeDescription invocationTarget)
Transforms this method invocation into a special invocation on the given type.StackManipulation
MethodInvocation.WithImplicitInvocationTargetType. special(TypeDescription invocationTarget)
Transforms this method invocation into a special invocation on the given type.StackManipulation
MethodInvocation.IllegalInvocation. virtual(TypeDescription invocationTarget)
Transforms this method invocation into a virtual (or interface) method invocation on the given type.StackManipulation
MethodInvocation.Invocation. virtual(TypeDescription invocationTarget)
Transforms this method invocation into a virtual (or interface) method invocation on the given type.StackManipulation
MethodInvocation.OfGenericMethod. virtual(TypeDescription invocationTarget)
Transforms this method invocation into a virtual (or interface) method invocation on the given type.StackManipulation
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 TypeDescription Modifier and Type Method Description StackManipulation
MethodInvocation.IllegalInvocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.Invocation. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.OfGenericMethod. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.StackManipulation
MethodInvocation.WithImplicitInvocationTargetType. dynamic(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> methodType, java.util.List<?> 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 TypeDescription Constructor Description DynamicInvocation(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes, MethodDescription.InDefinedShape bootstrapMethod, java.util.List<?> arguments)
Creates a new dynamic method invocation.Invocation(MethodDescription.InDefinedShape methodDescription, TypeDescription typeDescription)
Creates an invocation of a given method on a given invocation target type.OfGenericMethod(TypeDescription targetType, MethodInvocation.WithImplicitInvocationTargetType invocation)
Creates a generic method invocation.Constructor parameters in net.bytebuddy.implementation.bytecode.member with type arguments of type TypeDescription Constructor Description DynamicInvocation(java.lang.String methodName, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes, MethodDescription.InDefinedShape bootstrapMethod, java.util.List<?> arguments)
Creates a new dynamic method invocation. -
Uses of TypeDescription in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher with type parameters of type TypeDescription Modifier and Type Class Description 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 TypeDescription Modifier and Type Field Description private TypeDescription
AccessibilityMatcher. typeDescription
The type that is to be checked for its viewing rights.private TypeDescription
SubTypeMatcher. typeDescription
The type to be matched being a super type of the matched type.private TypeDescription
SuperTypeMatcher. typeDescription
The type to be matched being a sub type of the matched type.private TypeDescription
VisibilityMatcher. typeDescription
The type that is to be checked for its viewing rights.Fields in net.bytebuddy.matcher with type parameters of type TypeDescription Modifier and Type Field Description private ElementMatcher<? super TypeDescription>
AnnotationTypeMatcher. matcher
The type matcher to apply to an annotation's type.private ElementMatcher<? super java.lang.Iterable<? extends TypeDescription>>
CollectionErasureMatcher. matcher
The matcher to be applied to the raw types.private ElementMatcher<? super TypeDescription>
ErasureMatcher. matcher
The matcher to apply to the raw type of the matched element.private ElementMatcher<? super TypeDescription>
InstanceTypeMatcher. matcher
The matcher to apply to the object's type.Methods in net.bytebuddy.matcher with type parameters of type TypeDescription Modifier and Type Method Description static <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. 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(java.lang.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(java.lang.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(java.lang.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 TypeDescription Modifier and Type Method Description static <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 java.lang.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 TypeDescription Modifier and Type Method Description static <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 java.lang.Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T>ElementMatchers. erasures(java.lang.Iterable<? extends TypeDescription> types)
Matches an iteration of generic types' erasures against the provided types.static <T extends java.lang.Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T>ElementMatchers. erasures(ElementMatcher<? super java.lang.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 an 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, java.util.List<? extends TypeDefinition> typeDefinitions, java.util.Set<TypeDescription> duplicates)
Matches a method against a list of types.static <T extends java.lang.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(java.lang.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 java.lang.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 TypeDescription Constructor Description AccessibilityMatcher(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 TypeDescription Constructor Description AnnotationTypeMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new matcher for an annotation description's type.CollectionErasureMatcher(ElementMatcher<? super java.lang.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 TypeDescription Modifier and Type Class Description protected static class
TypePool.Default.LazyTypeDescription
A type description that looks up any referencedByteCodeElement
orAnnotationDescription
by querying a type pool at lookup time.protected class
TypePool.Default.WithLazyResolution.LazyTypeDescription
A lazy type description that resolves any property that is not the name only when requested.protected static class
TypePool.LazyFacade.LazyTypeDescription
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 TypeDescription Modifier and Type Field Description private TypeDescription
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription. annotationType
The type of this annotation.private TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType. typeDescription
The represented type's description.private TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType. typeDescription
A description of this primitive type token.private TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType. typeDescription
The represented non-generic type.private TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType. typeDescription
The type description of the non-generic receiver type.private TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType. typeDescription
The erasure of the type to be represented as a parameterized receiver type.private TypeDescription
TypePool.Default.LazyTypeDescription.LazyNestMemberList. typeDescription
The type for which the nest members are represented.private TypeDescription
TypePool.Resolution.Simple. typeDescription
The represented type description.Fields in net.bytebuddy.pool with type parameters of type TypeDescription Modifier and Type Field Description protected static java.util.Map<java.lang.String,TypeDescription>
TypePool.AbstractBase. PRIMITIVE_TYPES
A map of primitive types by their name.private java.util.Map<java.lang.String,TypeDescription>
TypePool.Explicit. types
A mapping from type names to type descriptions of that name.Methods in net.bytebuddy.pool that return TypeDescription Modifier and Type Method Description TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType. asErasure()
Returns the erasure of this type.TypeDescription
TypePool.Default.LazyTypeDescription.TokenizedGenericType. asErasure()
Returns the erasure of this type.TypeDescription
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()
TypeDescription
TypePool.Default.LazyTypeDescription.LazyNestMemberList. get(int index)
TypeDescription
TypePool.Default.LazyTypeDescription.LazyTypeList. get(int index)
TypeDescription
TypePool.Default.LazyTypeDescription.LazyAnnotationDescription. getAnnotationType()
Returns a description of the annotation type of this annotation.TypeDescription
TypePool.Default.LazyTypeDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypePool.Default.LazyTypeDescription.LazyFieldDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypePool.Default.LazyTypeDescription.LazyMethodDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription. getDeclaringType()
Returns the declaring type of this instance.TypeDescription
TypePool.Default.LazyTypeDescription. getEnclosingType()
Returns a description of this type's enclosing type if any.TypeDescription
TypePool.Default.LazyTypeDescription.TypeContainment. getEnclosingType(TypePool typePool)
Returns the enclosing type ornull
if no such type exists.TypeDescription
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained. getEnclosingType(TypePool typePool)
Returns the enclosing type ornull
if no such type exists.TypeDescription
TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod. getEnclosingType(TypePool typePool)
Returns the enclosing type ornull
if no such type exists.TypeDescription
TypePool.Default.LazyTypeDescription.TypeContainment.WithinType. getEnclosingType(TypePool typePool)
Returns the enclosing type ornull
if no such type exists.TypeDescription
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.TypeDescription
TypePool.AbstractBase.ArrayTypeResolution. resolve()
Resolves this resolution to aTypeDescription
.TypeDescription
TypePool.Default.WithLazyResolution.LazyResolution. resolve()
Resolves this resolution to aTypeDescription
.TypeDescription
TypePool.LazyFacade.LazyResolution. resolve()
Resolves this resolution to aTypeDescription
.TypeDescription
TypePool.Resolution.Illegal. resolve()
Resolves this resolution to aTypeDescription
.TypeDescription
TypePool.Resolution. resolve()
Resolves this resolution to aTypeDescription
.TypeDescription
TypePool.Resolution.Simple. resolve()
Resolves this resolution to aTypeDescription
.protected static TypeDescription
TypePool.Default.LazyTypeDescription.TokenizedGenericType. toErasure(TypePool typePool, java.lang.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 TypeDescription Modifier and Type Method Description protected AnnotationValue<TypeDescription,java.lang.Class<?>>
TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForTypeValue. doResolve()
Methods in net.bytebuddy.pool with parameters of type TypeDescription Modifier and Type Method Description TypeList.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType. resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.TypeList.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized. resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.TypeList.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed. resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.TypeList.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw. resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.TypeDescription.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType. resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.TypeDescription.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized. resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.TypeDescription.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed. resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.TypeDescription.Generic
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw. resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.Constructors in net.bytebuddy.pool with parameters of type TypeDescription Constructor Description LazyAnnotationDescription(TypePool typePool, TypeDescription annotationType, java.util.Map<java.lang.String,AnnotationValue<?,?>> values)
Creates a new lazy annotation description.LazyNestMemberList(TypeDescription typeDescription, TypePool typePool, java.util.List<java.lang.String> nestMembers)
Creates a new lazy type list of all nest members of this group.LazyNonGenericReceiverType(TypeDescription typeDescription)
Creates a new non-generic receiver type of the supplied type.LazyParameterizedReceiverType(TypeDescription typeDescription)
Creates a new lazy parameterized receiver type of the supplied receiver type.LazyPrimitiveType(TypePool typePool, java.lang.String typePath, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription typeDescription)
Creates a new lazy primitive type.RawAnnotatedType(TypePool typePool, java.lang.String typePath, java.util.Map<java.lang.String,java.util.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 TypeDescription Constructor Description Explicit(java.util.Map<java.lang.String,TypeDescription> types)
Creates a new explicit type pool without a parent.Explicit(TypePool parent, java.util.Map<java.lang.String,TypeDescription> types)
Creates a new explicit type pool. -
Uses of TypeDescription in net.bytebuddy.utility
Fields in net.bytebuddy.utility declared as TypeDescription Modifier and Type Field Description private TypeDescription
JavaConstant.MethodHandle. ownerType
The owner type that is represented by this instance.private TypeDescription
JavaConstant.MethodHandle. returnType
The return type that is represented by this instance.private TypeDescription
JavaConstant.MethodType. returnType
The return type of this method type.private TypeDescription
JavaConstant.Dynamic. typeDescription
The represented value constant.private 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 TypeDescription Modifier and Type Field Description private java.util.List<? extends TypeDescription>
JavaConstant.MethodHandle. parameterTypes
The parameter types that is represented by this instance.private java.util.List<? extends TypeDescription>
JavaConstant.MethodType. parameterTypes
The parameter types of this method type.Methods in net.bytebuddy.utility that return TypeDescription Modifier and Type Method Description TypeDescription
JavaConstant.MethodHandle. getOwnerType()
Returns the owner type of this instance.TypeDescription
JavaConstant.MethodHandle. getReturnType()
Returns the return type represented by this instance.TypeDescription
JavaConstant.MethodType. getReturnType()
Returns the return type of this method type.TypeDescription
JavaConstant.Dynamic. getType()
Returns a description of the type of the represented instance or at least a stub.TypeDescription
JavaConstant. getType()
Returns a description of the type of the represented instance or at least a stub.TypeDescription
JavaConstant.MethodHandle. getType()
Returns a description of the type of the represented instance or at least a stub.TypeDescription
JavaConstant.MethodType. getType()
Returns a description of the type of the represented instance or at least a stub.TypeDescription
JavaType. getTypeStub()
Returns at least a stub representing this type where the stub does not define any methods or fields.TypeDescription
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 TypeDescription Modifier and Type Method Description static JavaConstant.MethodType
JavaConstant.MethodType. of(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.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
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 TypeDescription Modifier and Type Method Description static JavaConstant.MethodType
JavaConstant.MethodType. of(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.Constructors in net.bytebuddy.utility with parameters of type TypeDescription Constructor Description Dynamic(org.objectweb.asm.ConstantDynamic value, TypeDescription typeDescription)
Creates a new dynamic class pool entry.MethodHandle(JavaConstant.MethodHandle.HandleType handleType, TypeDescription ownerType, java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a method handle representation.MethodType(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a method type for the given types.Constructor parameters in net.bytebuddy.utility with type arguments of type TypeDescription Constructor Description MethodHandle(JavaConstant.MethodHandle.HandleType handleType, TypeDescription ownerType, java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a method handle representation.MethodType(TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a method type for the given types.
-