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.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 by
byte 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 a
DynamicType by
enhancing a given type. |
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType 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 given
InstrumentedType . |
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 a
MethodDescription . |
net.bytebuddy.implementation.bytecode.assign |
An
Assigner is responsible for transforming
a given TypeDescription into another one. |
net.bytebuddy.implementation.bytecode.collection |
This package is dedicated to creating
StackManipulation 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 creating
TypeDescription s without
loading any classes. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Method and Description |
---|---|
<T> DynamicType.Builder<T> |
ByteBuddy.decorate(TypeDescription type,
ClassFileLocator classFileLocator)
Decorates a type with
AsmVisitorWrapper and allows adding attributes and annotations. |
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 the
ConstructorStrategy.extractConstructors(TypeDescription)
method of this instance. |
protected abstract String |
NamingStrategy.AbstractBase.name(TypeDescription superClass)
Determines a new name when creating a new type that subclasses the provided type.
|
protected String |
NamingStrategy.Suffixing.name(TypeDescription superClass) |
protected String |
NamingStrategy.SuffixingRandom.name(TypeDescription superClass) |
protected String |
NamingStrategy.PrefixingRandom.name(TypeDescription superClass) |
static ClassFileVersion |
ClassFileVersion.of(TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Extracts a class' class version.
|
String |
NamingStrategy.rebase(TypeDescription typeDescription)
Determines a name for the dynamic type when rebasing the provided type.
|
String |
NamingStrategy.AbstractBase.rebase(TypeDescription typeDescription)
Determines a name for the dynamic type when rebasing the provided type.
|
<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.
|
String |
NamingStrategy.redefine(TypeDescription typeDescription)
Determines a name for the dynamic type when redefining the provided type.
|
String |
NamingStrategy.AbstractBase.redefine(TypeDescription typeDescription)
Determines a name for the dynamic type when redefining 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.
|
String |
NamingStrategy.Suffixing.BaseNameResolver.resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
|
String |
NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType.resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
|
String |
NamingStrategy.Suffixing.BaseNameResolver.ForGivenType.resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
|
String |
NamingStrategy.Suffixing.BaseNameResolver.ForFixedValue.resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
|
String |
NamingStrategy.Suffixing.BaseNameResolver.WithCallerSuffix.resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
|
String |
NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType.resolve(TypeDescription typeDescription)
Deprecated.
Resolves the base name for a given type description.
|
Constructor and 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.
|
ForGivenType(TypeDescription typeDescription)
Deprecated.
Creates a new base name resolver that resolves a using the name of a given type.
|
ValuesMethodAppender(TypeDescription instrumentedType)
Creates a new appender for the
values method. |
Modifier and Type | Method and Description |
---|---|
TypeDescription |
AgentBuilder.DescriptionStrategy.apply(String name,
Class<?> type,
TypePool typePool,
AgentBuilder.CircularityLock circularityLock,
ClassLoader classLoader,
JavaModule module)
Describes the given type.
|
TypeDescription |
AgentBuilder.DescriptionStrategy.SuperTypeLoading.apply(String name,
Class<?> type,
TypePool typePool,
AgentBuilder.CircularityLock circularityLock,
ClassLoader classLoader,
JavaModule module)
Describes the given type.
|
TypeDescription |
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.apply(String name,
Class<?> type,
TypePool typePool,
AgentBuilder.CircularityLock circularityLock,
ClassLoader classLoader,
JavaModule module)
Describes the given type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Creates a type builder for a given type.
|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Creates a type builder for a given type.
|
Iterator<AgentBuilder.Transformer> |
ResettableClassFileTransformer.iterator(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.
|
Iterator<AgentBuilder.Transformer> |
ResettableClassFileTransformer.WithDelegation.iterator(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.
|
Iterator<AgentBuilder.Transformer> |
ResettableClassFileTransformer.WithDelegation.Substitutable.iterator(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.
|
Iterator<AgentBuilder.Transformer> |
AgentBuilder.Default.ExecutingTransformer.iterator(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Creates an iterator over the transformers that are applied for a given type.
|
boolean |
AgentBuilder.RawMatcher.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.Trivial.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.ForLoadState.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.ForResolvableTypes.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.Conjunction.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.Disjunction.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.Inversion.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.RawMatcher.ForElementMatchers.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.Default.Transformation.SimpleMatcher.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
boolean |
AgentBuilder.Default.Transformation.DifferentialMatcher.matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
protected static ByteCodeAppender |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.of(MethodDescription targetMethod,
JavaConstant.MethodType specializedLambdaMethod,
List<FieldDescription.InDefinedShape> declaredFields,
JavaConstant.MethodHandle.HandleType handleType,
TypeDescription targetType)
Resolves an appropriate appender for this lambda expression.
|
void |
AgentBuilder.Listener.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.NoOp.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.Adapter.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.StreamWriting.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.Filtering.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.Compound.onIgnored(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded)
Invoked when a type is not transformed but ignored.
|
void |
AgentBuilder.Listener.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
void |
AgentBuilder.Listener.NoOp.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
void |
AgentBuilder.Listener.Adapter.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
void |
AgentBuilder.Listener.StreamWriting.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
void |
AgentBuilder.Listener.Filtering.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
void |
AgentBuilder.Listener.WithTransformationsOnly.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.ModuleReadEdgeCompleting.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.Compound.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
DynamicType.Builder<?> |
AgentBuilder.Transformer.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForBuildPlugin.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForAdvice.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Allows for a transformation of a
DynamicType.Builder . |
protected AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper |
AgentBuilder.Transformer.ForAdvice.wrap(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain,
Advice advice)
Allows for decoration of advice for subclass implementations of this transformer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
S |
AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
T |
AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
S |
AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
T |
AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
S |
AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
AgentBuilder.Ignored |
AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher)
Excludes any type that is matched by the provided matcher from instrumentation and considers types by all
ClassLoader s. |
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 all
ClassLoader s. |
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 all
ClassLoader s. |
AgentBuilder.Ignored |
AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
AgentBuilder.Ignored |
AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
AgentBuilder.Ignored |
AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> ignoredTypes,
ElementMatcher<? super ClassLoader> ignoredClassLoaders)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
AgentBuilder.Ignored |
AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
AgentBuilder.Ignored |
AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
AgentBuilder.Ignored |
AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.
|
T |
AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
S |
AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
T |
AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
S |
AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
T |
AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
S |
AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
AgentBuilder.Identified.Narrowable |
AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.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 supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
Constructor and Description |
---|
Appender(TypeDescription instrumentedType)
Creates a new appender.
|
InjectingInitializer(TypeDescription instrumentedType,
Map<TypeDescription,byte[]> rawAuxiliaryTypes,
Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
LambdaMethodImplementation(TypeDescription targetType,
JavaConstant.MethodHandle targetMethod,
JavaConstant.MethodType specializedLambdaMethod)
Creates a implementation of a lambda expression's functional method.
|
SerializationImplementation(TypeDescription targetType,
TypeDescription lambdaType,
String lambdaMethodName,
JavaConstant.MethodType lambdaMethod,
JavaConstant.MethodHandle targetMethod,
JavaConstant.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression's
writeReplace method. |
TransformerIterator(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
List<AgentBuilder.Default.Transformation> transformations)
Creates a new iterator.
|
Constructor and Description |
---|
ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a new
AgentBuilder.RawMatcher that only matches the
supplied TypeDescription against a supplied matcher. |
ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Creates a new
AgentBuilder.RawMatcher that only matches the
supplied TypeDescription and its ClassLoader against two matcher in order
to decided if an instrumentation should be conducted. |
ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new
AgentBuilder.RawMatcher that only matches the
supplied TypeDescription , its ClassLoader and module against element
suitable matchers. |
ForMatchedGrouping(Collection<? extends ElementMatcher<? super TypeDescription>> matchers)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.
|
InjectingInitializer(TypeDescription instrumentedType,
Map<TypeDescription,byte[]> rawAuxiliaryTypes,
Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
InjectingInitializer(TypeDescription instrumentedType,
Map<TypeDescription,byte[]> rawAuxiliaryTypes,
Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription |
Advice.StackMapFrameHandler.Default.instrumentedType
The instrumented type.
|
protected TypeDescription |
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.instrumentedType
A description of the instrumented type.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.ForAdvice.endTypes
The types provided after execution of the advice code.
|
protected List<? extends TypeDescription> |
Advice.MethodSizeHandler.Default.initialTypes
A list of virtual method arguments that are explicitly added before any code execution.
|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.initialTypes
A list of virtual method arguments that are explicitly added before any code execution.
|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.latentTypes
A list of virtual arguments that are available after the enter advice method is executed.
|
protected List<? extends TypeDescription> |
Advice.MethodSizeHandler.Default.postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.
|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.postMethodTypes
A list of virtual method arguments that are available after the instrumented method has completed.
|
protected List<? extends TypeDescription> |
Advice.MethodSizeHandler.Default.preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.
|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.preMethodTypes
A list of virtual method arguments that are available before the instrumented method is executed.
|
protected List<? extends TypeDescription> |
Advice.StackMapFrameHandler.Default.ForAdvice.startTypes
The types provided before execution of the advice code.
|
Modifier and Type | Method and Description |
---|---|
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.getAdviceType()
The type that is produced as a result of executing this advice method.
|
TypeDescription |
Advice.Dispatcher.Resolved.ForMethodExit.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.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.
|
Modifier and Type | Method and Description |
---|---|
List<TypeDescription> |
Advice.ArgumentHandler.ForInstrumentedMethod.getNamedTypes()
Returns a list of the named types in their declared order.
|
List<TypeDescription> |
Advice.ArgumentHandler.ForInstrumentedMethod.Default.getNamedTypes()
Returns a list of the named types in their declared order.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MethodVisitor |
Advice.Dispatcher.Inlining.Resolved.apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler)
Applies a resolution for a given instrumented method.
|
protected MethodVisitor |
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler) |
protected MethodVisitor |
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler) |
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
JavaConstant.MethodHandle methodHandle)
Creates a stack manipulation for a given substitution target.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.apply(TypeDescription receiver,
ByteCodeElement.Member original,
JavaConstant.MethodHandle methodHandle)
Creates a stack manipulation for a given substitution target.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
JavaConstant.MethodHandle methodHandle)
Creates a stack manipulation for a given substitution target.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Bound.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Unbound.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.Resolved.apply(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
TypeDescription.Generic current,
JavaConstant.MethodHandle methodHandle,
Map<Integer,Integer> offsets,
int offset)
Applies this offset mapping.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
String |
Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
StackManipulation |
Advice.Delegator.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Materializes an invocation.
|
StackManipulation |
Advice.Delegator.ForRegularInvocation.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Materializes an invocation.
|
StackManipulation |
Advice.Delegator.ForDynamicInvocation.apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Materializes an invocation.
|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind(Class<T> type,
TypeDescription value)
Binds the supplied annotation to the supplied type constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(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.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.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.ForFirstBinding.bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
FieldDescription.InDefinedShape fieldDescription,
boolean writeAccess)
Binds this replacement for a field that was discovered.
|
Advice.Dispatcher.Bound |
Advice.Dispatcher.Resolved.bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
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,
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,
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,
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.Delegating.Resolved.bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
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.
|
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.NoOp.bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription typeDescription,
MethodDescription methodDescription,
MemberSubstitution.Replacement.InvocationType invocationType)
Binds this replacement for a field that was discovered.
|
MemberSubstitution.Replacement.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,
TypeDescription typeDescription,
MethodDescription methodDescription,
MemberSubstitution.Replacement.InvocationType invocationType)
Binds this replacement for a field that was discovered.
|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
<T extends Annotation> |
Advice.WithCustomMapping.bindLambda(Class<T> type,
MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Binds the supplied annotation as a lambda expression via the JVM's lambda metafactory.
|
protected abstract int |
Advice.StackMapFrameHandler.Default.TranslationMode.copy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodDescription methodDescription,
Object[] localVariable,
Object[] translated)
Copies the fixed parameters of the instrumented method onto the operand stack.
|
protected MethodVisitor |
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.doApply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler)
Applies a resolution for a given instrumented method.
|
protected MethodVisitor |
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType.doApply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler)
Applies a resolution for a given instrumented method.
|
protected Advice.Dispatcher.Bound |
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.doResolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler)
Binds this dispatcher for resolution to a specific method.
|
protected Advice.Dispatcher.Bound |
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType.doResolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler)
Binds this dispatcher for resolution to a specific method.
|
protected MethodVisitor |
Advice.doWrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
int writerFlags,
int readerFlags)
Wraps the method visitor to implement this advice.
|
protected abstract FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.fieldLocator(TypeDescription instrumentedType)
Creates a field locator for the instrumented type.
|
protected FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithImplicitType.fieldLocator(TypeDescription instrumentedType) |
protected FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType.fieldLocator(TypeDescription instrumentedType) |
protected abstract FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.fieldLocator(TypeDescription instrumentedType)
Resolves a field locator for the instrumented type.
|
protected FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType.fieldLocator(TypeDescription instrumentedType) |
protected FieldLocator |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.fieldLocator(TypeDescription instrumentedType) |
protected abstract FieldLocator |
Advice.OffsetMapping.ForField.Unresolved.fieldLocator(TypeDescription instrumentedType)
Returns a field locator for this instance.
|
protected FieldLocator |
Advice.OffsetMapping.ForField.Unresolved.WithImplicitType.fieldLocator(TypeDescription instrumentedType) |
protected FieldLocator |
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType.fieldLocator(TypeDescription instrumentedType) |
protected abstract FieldLocator |
Advice.OffsetMapping.ForFieldHandle.Unresolved.fieldLocator(TypeDescription instrumentedType)
Returns a field locator for this instance.
|
protected FieldLocator |
Advice.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType.fieldLocator(TypeDescription instrumentedType) |
protected FieldLocator |
Advice.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType.fieldLocator(TypeDescription instrumentedType) |
protected abstract boolean |
Advice.StackMapFrameHandler.Default.TranslationMode.isPossibleThisFrameValue(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Object frame)
Checks if a variable value in a stack map frame is a legal value for describing a
this reference. |
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.OfOriginalExpression.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.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory.make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
List<JavaConstant> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved.make(TypeDescription receiver,
ByteCodeElement.Member original,
JavaConstant.MethodHandle methodHandle)
Returns the constant values to supply to the bootstrap method.
|
List<JavaConstant> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved.make(TypeDescription receiver,
ByteCodeElement.Member original,
JavaConstant.MethodHandle methodHandle)
Returns the constant values to supply to the bootstrap method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.Factory.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.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForValue.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.OfMatchedMethod.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution 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.Replacement |
MemberSubstitution.Replacement.Factory.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a replacement for an instrumented method.
|
MemberSubstitution.Replacement |
MemberSubstitution.Replacement.Factory.Compound.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.Replacement |
MemberSubstitution.Replacement.ForElementMatchers.Factory.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a replacement for an instrumented method.
|
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.Dispatcher.SuppressionHandler |
Advice.Dispatcher.SuppressionHandler.Suppressing.of(TypeDescription suppressedType)
Resolves an appropriate suppression handler.
|
protected static Advice.Dispatcher.RelocationHandler |
Advice.Dispatcher.RelocationHandler.ForType.of(TypeDescription typeDescription,
int index,
TypeDefinition returnedType)
Resolves a relocation handler that is triggered if the checked instance is of a given type.
|
protected static Advice.StackMapFrameHandler.ForInstrumentedMethod |
Advice.StackMapFrameHandler.Default.of(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean exitAdvice,
boolean copyArguments,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an appropriate stack map frame handler for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
protected abstract StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.resolve(ByteCodeElement.Member original,
List<TypeDescription> parameterTypes,
TypeDescription returnType)
Creates a stack manipulation for the supplied byte code element.
|
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.
|
FieldDescription |
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the field to substitute with.
|
FieldDescription |
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the field to substitute with.
|
FieldDescription |
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the field to substitute with.
|
MethodDescription |
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the method to substitute with.
|
MethodDescription |
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the method to substitute with.
|
MethodDescription |
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the method to substitute with.
|
StackManipulation |
MemberSubstitution.Substitution.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
StackManipulation |
MemberSubstitution.Substitution.Stubbing.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
StackManipulation |
MemberSubstitution.Substitution.ForValue.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
StackManipulation |
MemberSubstitution.Substitution.ForFieldAccess.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
StackManipulation |
MemberSubstitution.Substitution.ForMethodInvocation.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
StackManipulation |
MemberSubstitution.Substitution.Chain.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.Simple.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForAssignment.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForField.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForInvocation.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
protected abstract FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves a description of the field being accessed.
|
protected FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected abstract FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves a description of the field being accessed.
|
protected FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected FieldDescription |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves a dispatcher for a given instrumented type and method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves a dispatcher for a given instrumented type and method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves a dispatcher for a given instrumented type and method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves this resolver for a given instrumented type and method.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves this resolver for a given instrumented type and method.
|
protected abstract FieldDescription |
Advice.OffsetMapping.ForField.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the field being bound.
|
protected FieldDescription |
Advice.OffsetMapping.ForField.Unresolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected FieldDescription |
Advice.OffsetMapping.ForField.Resolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected abstract FieldDescription |
Advice.OffsetMapping.ForFieldHandle.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the field being bound.
|
protected FieldDescription |
Advice.OffsetMapping.ForFieldHandle.Unresolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
protected FieldDescription |
Advice.OffsetMapping.ForFieldHandle.Resolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod) |
List<JavaConstant> |
Advice.BootstrapArgumentResolver.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the constants that are provided as arguments to the bootstrap methods.
|
List<JavaConstant> |
Advice.BootstrapArgumentResolver.ForDefaultValues.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the constants that are provided as arguments to the bootstrap methods.
|
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.
|
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.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.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.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.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.ForField.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.ForFieldHandle.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.ForSelfCallHandle.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.OffsetMapping.Sort sort)
Resolves an offset mapping to a given target offset.
|
Advice.OffsetMapping.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.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.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.
|
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.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.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.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.ForSerializedValue.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.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler,
StackManipulation exceptionHandler)
Resolves this post processor for a given instrumented method.
|
StackManipulation |
Advice.PostProcessor.NoOp.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler,
StackManipulation exceptionHandler)
Resolves this post processor for a given instrumented method.
|
StackManipulation |
Advice.PostProcessor.Compound.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler,
StackManipulation exceptionHandler)
Resolves this post processor for a given instrumented method.
|
StackManipulation |
Advice.AssignReturned.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler,
StackManipulation exceptionHandler)
Resolves this post processor for a given instrumented method.
|
StackManipulation |
Advice.AssignReturned.ToArguments.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.ToAllArguments.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.ToThis.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.ToFields.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.ToReturned.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.ToThrown.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
StackManipulation |
Advice.AssignReturned.Handler.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
TypeDescription.Generic type,
StackManipulation value)
Resolves this handler.
|
protected abstract Advice.Dispatcher.Bound |
Advice.Dispatcher.Delegating.Resolved.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
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.
|
protected Advice.Dispatcher.Bound |
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
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,
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) |
TypePool |
MemberSubstitution.TypePoolResolver.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.ForExplicitPool.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Resolves a type pool to use for locating substituted members.
|
TypePool |
MemberSubstitution.TypePoolResolver.ForClassFileLocator.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Resolves a type pool to use for locating substituted members.
|
static Advice |
Advice.to(TypeDescription advice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
protected static Advice |
Advice.to(TypeDescription advice,
Advice.PostProcessor.Factory postProcessorFactory,
ClassFileLocator classFileLocator,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
Advice.Delegator.Factory delegatorFactory)
Creates a new advice.
|
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 advice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
static Advice |
Advice.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)
Implements advice where every matched method is advised by the given type's advisory methods.
|
protected static Advice |
Advice.to(TypeDescription enterAdvice,
TypeDescription exitAdvice,
Advice.PostProcessor.Factory postProcessorFactory,
ClassFileLocator classFileLocator,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
Advice.Delegator.Factory delegatorFactory)
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.
|
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.
|
protected abstract Object |
Advice.StackMapFrameHandler.Default.Initialization.toFrame(TypeDescription typeDescription)
Initializes a frame value to its frame type.
|
Advice.PostProcessor.Factory |
Advice.AssignReturned.Factory.withSuppressed(TypeDescription exceptionType)
Configures this post processor to handle exceptions during assignment with the advice's
Advice.ExceptionHandler . |
ClassVisitor |
TypeReferenceAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
TypeConstantAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ModifierAdjustment.ModifierAdjustingClassVisitor |
ModifierAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
MemberRemoval.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.NoOp.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredFields.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredMethods.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.Compound.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
FieldVisitor |
MemberAttributeExtension.ForField.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
FieldVisitor |
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
FieldVisitor |
AsmVisitorWrapper.ForDeclaredFields.Entry.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
MethodVisitor |
MemberSubstitution.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
MethodVisitor |
MemberAttributeExtension.ForMethod.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
MethodVisitor |
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
MethodVisitor |
AsmVisitorWrapper.ForDeclaredMethods.Entry.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
MethodVisitor |
Advice.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
Modifier and Type | Method and Description |
---|---|
TypeReferenceAdjustment |
TypeReferenceAdjustment.filter(ElementMatcher<? super TypeDescription> filter)
Excludes all matched types from being added as an attribute.
|
protected void |
Advice.StackMapFrameHandler.Default.injectFullFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.Initialization initialization,
List<? extends TypeDescription> typesInArray,
List<? extends TypeDescription> typesOnStack)
Injects a full stack map frame after the instrumented method has completed.
|
protected void |
Advice.StackMapFrameHandler.Default.injectFullFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.Initialization initialization,
List<? extends TypeDescription> typesInArray,
List<? extends TypeDescription> typesOnStack)
Injects a full stack map frame after the instrumented method has completed.
|
void |
Advice.StackMapFrameHandler.ForPostProcessor.injectIntermediateFrame(MethodVisitor methodVisitor,
List<? extends TypeDescription> stack)
Injects a frame that represents the current state.
|
void |
Advice.StackMapFrameHandler.NoOp.injectIntermediateFrame(MethodVisitor methodVisitor,
List<? extends TypeDescription> stack)
Injects a frame that represents the current state.
|
void |
Advice.StackMapFrameHandler.Default.ForAdvice.injectIntermediateFrame(MethodVisitor methodVisitor,
List<? extends TypeDescription> stack)
Injects a frame that represents the current state.
|
protected static Advice.MethodSizeHandler.ForInstrumentedMethod |
Advice.MethodSizeHandler.Default.of(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean copyArguments,
int writerFlags)
Creates a method size handler applicable for the given instrumented method.
|
protected static Advice.MethodSizeHandler.ForInstrumentedMethod |
Advice.MethodSizeHandler.Default.of(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean copyArguments,
int writerFlags)
Creates a method size handler applicable for the given instrumented method.
|
protected static Advice.MethodSizeHandler.ForInstrumentedMethod |
Advice.MethodSizeHandler.Default.of(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean copyArguments,
int writerFlags)
Creates a method size handler applicable for the given instrumented method.
|
protected static Advice.StackMapFrameHandler.ForInstrumentedMethod |
Advice.StackMapFrameHandler.Default.of(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean exitAdvice,
boolean copyArguments,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an appropriate stack map frame handler for an instrumented method.
|
protected static Advice.StackMapFrameHandler.ForInstrumentedMethod |
Advice.StackMapFrameHandler.Default.of(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean exitAdvice,
boolean copyArguments,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an appropriate stack map frame handler for an instrumented method.
|
protected static Advice.StackMapFrameHandler.ForInstrumentedMethod |
Advice.StackMapFrameHandler.Default.of(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean exitAdvice,
boolean copyArguments,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an appropriate stack map frame handler for an instrumented method.
|
protected static Advice.StackMapFrameHandler.ForInstrumentedMethod |
Advice.StackMapFrameHandler.Default.of(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean exitAdvice,
boolean copyArguments,
ClassFileVersion classFileVersion,
int writerFlags,
int readerFlags)
Creates an appropriate stack map frame handler for an instrumented method.
|
protected abstract StackManipulation |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.resolve(ByteCodeElement.Member original,
List<TypeDescription> parameterTypes,
TypeDescription returnType)
Creates a stack manipulation for the supplied byte code element.
|
protected void |
Advice.StackMapFrameHandler.Default.translateFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
MethodDescription methodDescription,
List<? extends TypeDescription> additionalTypes,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
protected void |
Advice.StackMapFrameHandler.Default.WithPreservedArguments.translateFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
MethodDescription methodDescription,
List<? extends TypeDescription> additionalTypes,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack) |
ModifierAdjustment |
ModifierAdjustment.withTypeModifiers(ElementMatcher<? super TypeDescription> matcher,
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.
|
Constructor and Description |
---|
AbstractBase(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
int relocatableIndex,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new resolved version of a dispatcher.
|
AdviceMethodInliner(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
ClassReader classReader)
Creates a new advice method inliner.
|
AdviceMethodWriter(MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.PostProcessor postProcessor,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
AdviceVisitor(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
StackManipulation exceptionHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
Advice.Dispatcher.Resolved.ForMethodExit methodExit,
List<? extends TypeDescription> postMethodTypes,
int writerFlags,
int readerFlags)
Creates a new advice visitor.
|
AttributeTranslator(Class<?> sourceAttribute,
Class<?> targetAttribute,
TypeDescription sourceWrapper,
TypeDescription targetWrapper)
Creates a new attribute translator.
|
Bound(TypeDescription suppressedType,
StackManipulation exceptionHandler)
Creates a new active, bound suppression handler.
|
CodeTranslationVisitor(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
Advice.PostProcessor postProcessor,
boolean exit)
Creates a new code translation visitor.
|
Default(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new default stack map frame handler.
|
DispatchingVisitor(ClassVisitor classVisitor,
TypeDescription instrumentedType,
Implementation.Context implementationContext,
TypePool typePool,
Map<String,MethodDescription> methods,
int writerFlags,
int readerFlags)
Creates a new dispatching visitor.
|
DispatchingVisitor(ClassVisitor classVisitor,
TypeDescription instrumentedType,
Map<String,FieldDescription.InDefinedShape> fields)
Creates a new dispatching visitor.
|
Enabled(TypeDescription exceptionType)
Creates a factory for an exception handler of the supplied exception type.
|
ExceptionHandler(StackManipulation stackManipulation,
StackManipulation exceptionHandler,
TypeDescription exceptionType,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler)
Creates a new exception handler for an assignment.
|
Factory(Class<T> annotationType,
TypeDescription typeDescription)
Creates a new factory for binding a type description.
|
Factory(Class<T> annotationType,
TypeDescription typeDescription,
StackManipulation deserialization)
Creates a factory for loading a deserialized value.
|
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,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.PostProcessor postProcessor,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
ForMethodInvocation(TypeDescription instrumentedType,
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver methodResolver)
Creates a new method-resolving substitution.
|
ForSerializedValue(TypeDescription.Generic target,
TypeDescription typeDescription,
StackManipulation deserialization)
Creates a new offset mapping for a serialized value.
|
ForType(TypeDescription typeDescription,
int index)
Creates a new relocation handler that triggers a relocation if a value is an instance of a given type.
|
Handler(int index,
String name,
TypeDescription declaringType,
Assigner.Typing typing)
Creates a new handler for a
Advice.AssignReturned.ToReturned annotation. |
Matching(TypeDescription instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
ElementMatcher<? super MethodDescription> matcher)
Creates a new matching method resolver.
|
ModifierAdjustingClassVisitor(ClassVisitor classVisitor,
List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments,
List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments,
List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments,
TypeDescription instrumentedType,
Map<String,FieldDescription.InDefinedShape> fields,
Map<String,MethodDescription> methods)
Creates a new modifier adjusting visitor.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
int relocatableIndex,
Advice.Delegator delegator)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
int relocatableIndex,
ClassReader classReader)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape delegate,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a resolved version of a bootstrap argument resolver.
|
Resolved(TypeDescription receiver,
ByteCodeElement.Member original,
MemberSubstitution.Substitution substitution)
Creates a new resolved binding.
|
SubstitutingMethodVisitor(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodGraph.Compiler methodGraphCompiler,
boolean strict,
boolean failIfNoMatch,
MemberSubstitution.Replacement replacement,
Implementation.Context implementationContext,
TypePool typePool,
boolean virtualPrivateCalls)
Creates a new substituting method visitor.
|
Suppressing(TypeDescription suppressedType)
Creates a new suppressing suppression handler.
|
Trivial(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> latentTypes,
boolean expandFrames)
Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.
|
WithArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
TypeDescription throwable,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
Map<String,TypeDefinition> uninitializedNamedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandling(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(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
StackManipulation exceptionHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
Advice.Dispatcher.Resolved.ForMethodExit methodExit,
List<? extends TypeDescription> postMethodTypes,
int writerFlags,
int readerFlags)
Creates an advice visitor that applies exit advice.
|
WithExplicitType(Advice.OffsetMapping.ForFieldHandle.Access access,
String name,
TypeDescription declaringType)
Creates an offset mapping for a field handle with an explicit declaring type.
|
WithExplicitType(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access,
String name,
TypeDescription declaringType)
Creates an offset mapping for an unresolved field handle with an explicit declaring type.
|
WithExplicitType(TypeDescription.Generic target,
AnnotationDescription.Loadable<Advice.FieldValue> annotation,
TypeDescription declaringType)
Creates an offset mapping for a field with an explicit declaring type.
|
WithExplicitType(TypeDescription.Generic target,
AnnotationDescription.Loadable<MemberSubstitution.FieldValue> annotation,
TypeDescription declaringType)
Creates an offset mapping for the value of an unresolved field with an explicit declaring type.
|
WithExplicitType(TypeDescription.Generic target,
Assigner.Typing typing,
String name,
TypeDescription declaringType)
Creates an offset mapping for the value of an unresolved field with an explicit declaring type.
|
WithExplicitType(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing,
String name,
TypeDescription declaringType)
Creates an offset mapping for a field with an explicit declaring type.
|
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
WithoutExceptionHandling(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(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,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.
|
Constructor and Description |
---|
AdviceVisitor(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
StackManipulation exceptionHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
Advice.Dispatcher.Resolved.ForMethodExit methodExit,
List<? extends TypeDescription> postMethodTypes,
int writerFlags,
int readerFlags)
Creates a new advice visitor.
|
Default(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default meta data handler that recomputes the space requirements of an instrumented method.
|
Default(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default meta data handler that recomputes the space requirements of an instrumented method.
|
Default(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default meta data handler that recomputes the space requirements of an instrumented method.
|
Default(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new default stack map frame handler.
|
Default(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new default stack map frame handler.
|
Default(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new default stack map frame handler.
|
Default(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new default stack map frame handler.
|
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
List<? extends TypeDescription> startTypes,
List<? extends TypeDescription> intermediateTypes,
List<? extends TypeDescription> endTypes,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
Advice.StackMapFrameHandler.Default.Initialization initialization)
Creates a new meta data handler for an advice method.
|
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
List<? extends TypeDescription> startTypes,
List<? extends TypeDescription> intermediateTypes,
List<? extends TypeDescription> endTypes,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
Advice.StackMapFrameHandler.Default.Initialization initialization)
Creates a new meta data handler for an advice method.
|
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
List<? extends TypeDescription> startTypes,
List<? extends TypeDescription> intermediateTypes,
List<? extends TypeDescription> endTypes,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
Advice.StackMapFrameHandler.Default.Initialization initialization)
Creates a new meta data handler for an advice method.
|
ModifierAdjustingClassVisitor(ClassVisitor classVisitor,
List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments,
List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments,
List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments,
TypeDescription instrumentedType,
Map<String,FieldDescription.InDefinedShape> fields,
Map<String,MethodDescription> methods)
Creates a new modifier adjusting visitor.
|
ModifierAdjustment(List<ModifierAdjustment.Adjustment<TypeDescription>> typeAdjustments,
List<ModifierAdjustment.Adjustment<FieldDescription.InDefinedShape>> fieldAdjustments,
List<ModifierAdjustment.Adjustment<MethodDescription>> methodAdjustments)
Creates a new modifier adjustment.
|
Trivial(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> latentTypes,
boolean expandFrames)
Creates a new stack map frame handler that applies a trivial translation for the instrumented method's stack map frames.
|
TypeReferenceAdjustment(boolean strict,
ElementMatcher.Junction<? super TypeDescription> filter)
Creates a type reference adjustment.
|
TypeReferenceClassVisitor(ClassVisitor classVisitor,
boolean strict,
ElementMatcher<? super TypeDescription> filter,
TypePool typePool)
Creates a type reference class visitor.
|
WithArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
|
WithArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
|
WithArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
|
WithArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames)
Creates a new stack map frame handler that expects an argument copy.
|
WithCopiedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects the original arguments to be copied.
|
WithCopiedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects the original arguments to be copied.
|
WithCopiedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects the original arguments to be copied.
|
WithExitAdvice(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
StackManipulation exceptionHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Advice.Dispatcher.Resolved.ForMethodEnter methodEnter,
Advice.Dispatcher.Resolved.ForMethodExit methodExit,
List<? extends TypeDescription> postMethodTypes,
int writerFlags,
int readerFlags)
Creates an advice visitor that applies exit advice.
|
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
WithoutArgumentCopy(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that expects the original frames to be preserved.
|
WithPreservedArguments(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.
|
WithPreservedArguments(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.
|
WithPreservedArguments(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.
|
WithPreservedArguments(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> latentTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes,
boolean expandFrames,
boolean allowCompactCompletionFrame)
Creates a new stack map frame handler that requires the stack map frames of the original arguments to be preserved.
|
WithRetainedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects that the original arguments are retained.
|
WithRetainedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects that the original arguments are retained.
|
WithRetainedArguments(MethodDescription instrumentedMethod,
List<? extends TypeDescription> initialTypes,
List<? extends TypeDescription> preMethodTypes,
List<? extends TypeDescription> postMethodTypes)
Creates a new default method size handler that expects that the original arguments are retained.
|
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,List<Throwable>> |
Plugin.Engine.Summary.getFailed()
Returns a mapping of all types that failed during transformation to the exceptions that explain the failure.
|
List<TypeDescription> |
Plugin.Engine.Summary.getTransformed()
Returns a list of all types that were transformed.
|
Map<TypeDescription,byte[]> |
Plugin.WithInitialization.initialize(ClassFileLocator classFileLocator)
Returns a mapping of classes that should be created before discovering any types.
|
Modifier and Type | Method and Description |
---|---|
void |
RepeatedAnnotationPlugin.RepeatedAnnotationAppender.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
DynamicType.Builder<?> |
ToStringPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
DynamicType.Builder<?> |
RepeatedAnnotationPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
DynamicType.Builder<?> |
RenamingPlugin.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<?> |
HashCodeAndEqualsPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
DynamicType.Builder<?> |
DispatcherAnnotationPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
DynamicType.Builder<?> |
CachedReturnPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
DynamicType.Builder<?> |
AccessControllerPlugin.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.
|
AndroidDescriptor.TypeScope |
AndroidDescriptor.getTypeScope(TypeDescription typeDescription)
Provides the scope of the passed
TypeDescription instance. |
AndroidDescriptor.TypeScope |
AndroidDescriptor.Trivial.getTypeScope(TypeDescription typeDescription)
Provides the scope of the passed
TypeDescription instance. |
protected abstract HashCodeMethod |
HashCodeAndEqualsPlugin.Enhance.InvokeSuper.hashCodeMethod(TypeDescription instrumentedType,
boolean typeHash,
boolean subclassEquality)
Resolves the hash code method to use.
|
MethodAttributeAppender |
HashCodeAndEqualsPlugin.make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.
|
MethodAttributeAppender |
DispatcherAnnotationPlugin.make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.
|
boolean |
ToStringPlugin.matches(TypeDescription target)
Matches a target against this element matcher.
|
boolean |
RenamingPlugin.matches(TypeDescription target)
Matches a target against this element matcher.
|
boolean |
Plugin.NoOp.matches(TypeDescription target)
Matches a target against this element matcher.
|
boolean |
Plugin.ForElementMatcher.matches(TypeDescription target)
Matches a target against this element matcher.
|
boolean |
HashCodeAndEqualsPlugin.matches(TypeDescription target)
Matches a target against this element matcher.
|
void |
Plugin.Engine.Listener.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.Adapter.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.Listener.Compound.onComplete(TypeDescription typeDescription)
Invoked upon completing handling a type that was either transformed or ignored.
|
void |
Plugin.Engine.ErrorHandler.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.ErrorHandler.Enforcing.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.ErrorHandler.Compound.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.Listener.NoOp.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.Listener.Adapter.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.Listener.WithTransformationsOnly.onError(TypeDescription typeDescription,
List<Throwable> throwables) |
void |
Plugin.Engine.Listener.WithErrorsOnly.onError(TypeDescription typeDescription,
List<Throwable> throwables) |
void |
Plugin.Engine.Listener.ForErrorHandler.onError(TypeDescription typeDescription,
List<Throwable> throwables) |
void |
Plugin.Engine.Listener.Compound.onError(TypeDescription typeDescription,
List<Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
Plugin.Engine.ErrorHandler.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.ErrorHandler.Enforcing.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.ErrorHandler.Compound.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.Listener.NoOp.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.Listener.Adapter.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.Listener.StreamWriting.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.Listener.WithTransformationsOnly.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable) |
void |
Plugin.Engine.Listener.WithErrorsOnly.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable) |
void |
Plugin.Engine.Listener.ForErrorHandler.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable) |
void |
Plugin.Engine.Listener.Compound.onError(TypeDescription typeDescription,
Plugin plugin,
Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
Plugin.Engine.Listener.onIgnored(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked if one or more plugins did not transform a type.
|
void |
Plugin.Engine.Listener.NoOp.onIgnored(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked if one or more plugins did not transform a type.
|
void |
Plugin.Engine.Listener.Adapter.onIgnored(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked if one or more plugins did not transform a type.
|
void |
Plugin.Engine.Listener.Compound.onIgnored(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked if one or more plugins did not transform a type.
|
void |
Plugin.Engine.Listener.onIgnored(TypeDescription typeDescription,
Plugin plugin)
Invoked if a type description is ignored by a given plugin.
|
void |
Plugin.Engine.Listener.NoOp.onIgnored(TypeDescription typeDescription,
Plugin plugin)
Invoked if a type description is ignored by a given plugin.
|
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.StreamWriting.onIgnored(TypeDescription typeDescription,
Plugin plugin)
Invoked if a type description is ignored by a given plugin.
|
void |
Plugin.Engine.Listener.Compound.onIgnored(TypeDescription typeDescription,
Plugin plugin)
Invoked if a type description is ignored by a given plugin.
|
void |
Plugin.Engine.ErrorHandler.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.Enforcing.onLiveInitializer(TypeDescription typeDescription,
TypeDescription definingType)
Invoked if a type transformation implied a live initializer.
|
void |
Plugin.Engine.ErrorHandler.Compound.onLiveInitializer(TypeDescription typeDescription,
TypeDescription definingType)
Invoked if a type transformation implied a live initializer.
|
void |
Plugin.Engine.Listener.NoOp.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.StreamWriting.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.Compound.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.onTransformation(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
void |
Plugin.Engine.Listener.NoOp.onTransformation(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
void |
Plugin.Engine.Listener.Adapter.onTransformation(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
void |
Plugin.Engine.Listener.WithTransformationsOnly.onTransformation(TypeDescription typeDescription,
List<Plugin> plugins) |
void |
Plugin.Engine.Listener.Compound.onTransformation(TypeDescription typeDescription,
List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
void |
Plugin.Engine.Listener.onTransformation(TypeDescription typeDescription,
Plugin plugin)
Invoked after a type was transformed using a specific 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.Adapter.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,
Plugin plugin) |
void |
Plugin.Engine.Listener.Compound.onTransformation(TypeDescription typeDescription,
Plugin plugin)
Invoked after a type was transformed using a specific 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.
|
DynamicType.Builder<?> |
EntryPoint.Unvalidated.transform(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Applies a transformation.
|
ClassVisitor |
RenamingPlugin.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
MethodVisitor |
AccessControllerPlugin.AccessControlWrapper.wrap(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
TypePool typePool,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
Modifier and Type | Method and Description |
---|---|
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 |
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.Dispatcher |
Plugin.Engine.Dispatcher.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForSerialTransformation.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForSerialTransformation.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForParallelTransformation.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
Plugin.Engine.Dispatcher |
Plugin.Engine.Dispatcher.ForParallelTransformation.Factory.make(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher.
|
void |
Plugin.Engine.Dispatcher.Materializable.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForTransformedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForTransformedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForRetainedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForRetainedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForFailedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForFailedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
void |
Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement.materialize(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
|
static Plugin.Engine.Source |
Plugin.Engine.Source.InMemory.ofTypes(Map<TypeDescription,byte[]> binaryRepresentations)
Represents a map of type names to their binary representation as an in-memory source.
|
void |
Plugin.Engine.ErrorHandler.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.ErrorHandler.Enforcing.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.ErrorHandler.Compound.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.Listener.NoOp.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.Listener.Adapter.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.Listener.WithTransformationsOnly.onError(Map<TypeDescription,List<Throwable>> throwables) |
void |
Plugin.Engine.Listener.WithErrorsOnly.onError(Map<TypeDescription,List<Throwable>> throwables) |
void |
Plugin.Engine.Listener.ForErrorHandler.onError(Map<TypeDescription,List<Throwable>> throwables) |
void |
Plugin.Engine.Listener.Compound.onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
Plugin.Engine.Target.Sink.store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
void |
Plugin.Engine.Target.Sink.ForJarOutputStream.store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
void |
Plugin.Engine.Target.Discarding.store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
void |
Plugin.Engine.Target.InMemory.store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
void |
Plugin.Engine.Target.ForFolder.store(Map<TypeDescription,byte[]> binaryRepresentations)
Stores the supplied binary representation of types in this sink.
|
Constructor and Description |
---|
ForFailedElement(Plugin.Engine.Source.Element element,
TypeDescription typeDescription,
List<Throwable> errored)
Creates a new materializable for an element that failed to be transformed.
|
Initializer(TypeDescription instrumentedType,
String name)
Creates a new initializer.
|
PrefixingMethodVisitor(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
MethodDescription.SignatureToken token,
String name,
int offset,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new prefixing method visitor.
|
RepeatedAnnotationAppender(TypeDescription target)
Creates a new appender.
|
WithoutProperty(TypeDescription instrumentedType,
String name)
Creates an initializer that always uses the access controller if it is available.
|
WithProperty(TypeDescription instrumentedType,
String name,
String property)
Creates an initializer that uses a property to determine if the access controller should be actually used even if it is available.
|
Constructor and 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(Executor executor,
Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher that applies transformations in parallel.
|
ForParallelTransformation(Executor executor,
Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher that applies transformations in parallel.
|
ForSerialTransformation(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a dispatcher for a serial transformation.
|
ForSerialTransformation(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a dispatcher for a serial transformation.
|
RenamingPlugin(RenamingPlugin.Renaming renaming,
ElementMatcher<? super TypeDescription> matcher)
Creates a renaming plugin for the given renaming and type matcher.
|
Summary(List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new summary.
|
Summary(List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new summary.
|
WithThrowawayExecutorService(ExecutorService executorService,
Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher that applies transformations in parallel and that closes the supplies executor service.
|
WithThrowawayExecutorService(ExecutorService executorService,
Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a new dispatcher that applies transformations in parallel and that closes the supplies executor service.
|
Modifier and Type | Method and 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.
|
T |
TypeVariableSource.Visitor.onType(TypeDescription typeDescription)
Applies the visitor on a type.
|
TypeVariableSource |
TypeVariableSource.Visitor.NoOp.onType(TypeDescription typeDescription)
Applies the visitor on a type.
|
Modifier and Type | Method and Description |
---|---|
S |
ByteCodeElement.TypeDependant.asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
AnnotationDescription.getAnnotationType()
Returns a description of the annotation type of this annotation.
|
TypeDescription |
AnnotationDescription.ForLoadedAnnotation.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.
|
Modifier and Type | Method and 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 Class<V>> |
AnnotationValue.ForTypeDescription.of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationDescription.RenderingDispatcher.appendType(StringBuilder toString,
TypeDescription typeDescription)
Appends the type name of the annotation being rendered.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.define(String property,
TypeDescription typeDescription)
Returns a builder with the additional class property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.define(String property,
TypeDescription enumerationType,
String value)
Returns a builder with the additional enumeration property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineAnnotationArray(String property,
TypeDescription annotationType,
AnnotationDescription... annotationDescription)
Returns a builder with the additional annotation array property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineEnumerationArray(String property,
TypeDescription enumerationType,
EnumerationDescription... value)
Returns a builder with the additional enumeration array property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineEnumerationArray(String property,
TypeDescription enumerationType,
String... value)
Returns a builder with the additional enumeration array property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineTypeArray(String property,
TypeDescription... typeDescription)
Returns a builder with the additional type array property.
|
boolean |
AnnotationList.isAnnotationPresent(TypeDescription annotationType)
Checks if this list contains an annotation of the given type.
|
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.
|
static <V extends Class<V>> |
AnnotationValue.ForTypeDescription.of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
static AnnotationValue<TypeDescription[],Class<?>[]> |
AnnotationValue.ForDescriptionArray.of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Annotation> |
AnnotationValue.ForDescriptionArray.of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Enum<W>> |
AnnotationValue.ForDescriptionArray.of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
static <V extends Annotation> |
AnnotationValue.ForAnnotationDescription.of(TypeDescription annotationType,
Map<String,? extends AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.
|
AnnotationDescription |
AnnotationList.ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.
|
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.
|
static AnnotationDescription.Builder |
AnnotationDescription.Builder.ofType(TypeDescription annotationType)
Creates a builder for creating an annotation of the given type.
|
abstract String |
AnnotationValue.RenderingDispatcher.toSourceString(TypeDescription value)
Represents the supplied
TypeDescription value as a String . |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
AnnotationList.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
AnnotationList |
AnnotationList.AbstractBase.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
AnnotationList |
AnnotationList.Empty.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
Constructor and Description |
---|
Builder(TypeDescription annotationType,
Map<String,AnnotationValue<?,?>> annotationValues)
Creates a builder for an annotation description.
|
ForDescriptionArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationValue<?,?>> values)
Creates a new complex array.
|
ForIncompatibleType(TypeDescription typeDescription)
Creates a new description for an annotation value that does not fulfil expectations.
|
ForMissingValue(TypeDescription typeDescription,
String property)
Creates a new missing annotation value.
|
ForTypeDescription(TypeDescription typeDescription)
Creates a new annotation value that represents a type.
|
Latent(TypeDescription annotationType,
Map<String,? extends AnnotationValue<?,?>> annotationValues)
Creates a new latent annotation description.
|
WithUnknownConstant(TypeDescription typeDescription,
String value)
Creates a property description for an enumeration value that does not exist for the enumeration type.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
EnumerationDescription.getEnumerationType()
Returns the type of this enumeration.
|
TypeDescription |
EnumerationDescription.ForLoadedEnumeration.getEnumerationType()
Returns the type of this enumeration.
|
TypeDescription |
EnumerationDescription.Latent.getEnumerationType()
Returns the type of this enumeration.
|
Constructor and Description |
---|
Latent(TypeDescription enumerationType,
String value)
Creates a latent description of an enumeration value.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
FieldDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
FieldDescription.ForLoadedField.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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.Token |
FieldDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.
|
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.AbstractBase.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.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
FieldDescription.Token... token)
Creates a new field list from a list of field tokens.
|
ForTokens(TypeDescription declaringType,
List<? extends FieldDescription.Token> tokens)
Creates a new field list from a list of field tokens.
|
Latent(TypeDescription declaringType,
FieldDescription.Token token)
Creates a new latent field description.
|
Latent(TypeDescription declaringType,
String name,
int modifiers,
TypeDescription.Generic fieldType,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a new latent field description.
|
SignatureToken(String name,
TypeDescription type)
Creates a new signature token.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
MethodDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
MethodDescription.ForLoadedConstructor.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
MethodDescription.ForLoadedMethod.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.
|
Modifier and Type | Method and Description |
---|---|
List<TypeDescription> |
MethodDescription.SignatureToken.getParameterTypes()
Returns this token's parameter types.
|
List<TypeDescription> |
MethodDescription.TypeToken.getParameterTypes()
Returns this token's parameter types.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.SignatureToken |
MethodDescription.Token.asSignatureToken(TypeDescription declaringType)
Creates a signature token that represents the method that is represented by this token.
|
List<MethodDescription.SignatureToken> |
MethodList.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.AbstractBase.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
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.
|
boolean |
MethodDescription.isInvokableOn(TypeDescription typeDescription)
Asserts if this method is invokable on an instance of the given type, i.e.
|
boolean |
MethodDescription.AbstractBase.isInvokableOn(TypeDescription typeDescription)
Asserts if this method is invokable on an instance of the given type, i.e.
|
boolean |
MethodDescription.isSpecializableFor(TypeDescription typeDescription)
Checks if this method can be called using the
INVOKESPECIAL for a given type. |
boolean |
MethodDescription.AbstractBase.isSpecializableFor(TypeDescription targetType)
Checks if this method can be called using the
INVOKESPECIAL for a given type. |
boolean |
MethodDescription.AbstractBase.isVisibleTo(TypeDescription typeDescription)
Checks if this element is visible from a given type.
|
Modifier and Type | Method and Description |
---|---|
List<MethodDescription.SignatureToken> |
MethodList.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.AbstractBase.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.Empty.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
ParameterDescription.Token |
ParameterDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.
|
MethodDescription.Token |
MethodDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.
|
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.AbstractBase.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.
|
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.AbstractBase.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.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
List<? extends MethodDescription.Token> tokens)
Creates a new list of method descriptions for a list of detached tokens.
|
ForTokens(TypeDescription declaringType,
MethodDescription.Token... token)
Creates a new list of method descriptions for a list of detached tokens.
|
Latent(TypeDescription declaringType,
MethodDescription.Token token)
Creates a new latent method description.
|
Latent(TypeDescription declaringType,
String internalName,
int modifiers,
List<? extends TypeVariableToken> typeVariables,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> declaredAnnotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new latent method description.
|
SignatureToken(String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a new type token.
|
SignatureToken(String name,
TypeDescription returnType,
TypeDescription... parameterType)
Creates a new type token.
|
SignatureToken(String name,
TypeDescription returnType,
TypeDescription... parameterType)
Creates a new type token.
|
TypeInitializer(TypeDescription typeDescription)
Creates a new method description representing the type initializer.
|
TypeToken(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a new type token.
|
Constructor and Description |
---|
SignatureToken(String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a new type token.
|
TypeToken(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a new type token.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.AbstractBase
An abstract base implementation of a type description.
|
static class |
TypeDescription.AbstractBase.OfSimpleType
An adapter implementation of a
TypeDescription 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 existing
TypeDescription . |
static class |
TypeDescription.ForLoadedType
A type description implementation that represents a loaded type.
|
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.
|
Modifier and Type | Field and Description |
---|---|
static TypeDescription |
TypeDescription.CLASS
Deprecated.
Use
TypeDescription.ForLoadedType.of(Class) instead. |
static TypeDescription |
TypeDescription.OBJECT
Deprecated.
Use
TypeDescription.ForLoadedType.of(Class) instead. |
static TypeDescription |
TypeDescription.STRING
Deprecated.
Use
TypeDescription.ForLoadedType.of(Class) instead. |
static TypeDescription |
TypeDescription.THROWABLE
Deprecated.
Use
TypeDescription.ForLoadedType.of(Class) instead. |
static TypeDescription |
TypeDescription.UNDEFINED
Represents any undefined property representing a type description that is instead represented as
null in order
to resemble the Java reflection API which returns null and is intuitive to many Java developers. |
static TypeDescription |
TypeDescription.VOID
Deprecated.
Use
TypeDescription.ForLoadedType.of(Class) instead. |
Modifier and Type | Method and Description |
---|---|
TypeDescription |
TypeDescription.asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless its
void . |
TypeDescription |
TypeDescription.AbstractBase.asBoxed()
Returns a description of this type that represents this type as a boxed type for primitive types, unless its
void . |
TypeDescription |
TypeDescription.Generic.OfNonGenericType.ForLoadedType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfNonGenericType.ForErasure.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfNonGenericType.Latent.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfGenericArray.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfWildcardType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfParameterizedType.ForLoadedType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfParameterizedType.Latent.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfParameterizedType.ForReifiedType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure.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.LazyProjection.WithLazyNavigation.LazySuperClass.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.LazyProjection.ForLoadedSuperClass.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.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()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.Generic.LazyProjection.WithResolvedErasure.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.AbstractBase.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDefinition.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypeDescription.asUnboxed()
Returns a description of this type that represents this type as an unboxed type for boxing types, unless its
Void . |
TypeDescription |
TypeDescription.AbstractBase.asUnboxed()
Returns a description of this type that represents this type as an unboxed type for boxing types, unless its
Void . |
protected abstract TypeDescription |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.delegate()
Returns the delegate type description to this type instance.
|
TypeDescription |
TypeList.ForLoadedTypes.get(int index) |
TypeDescription |
TypeList.Explicit.get(int index) |
TypeDescription |
TypeDescription.getComponentType()
Returns the component type of this type.
|
TypeDescription |
TypeDescription.AbstractBase.OfSimpleType.getComponentType()
Returns the component type of this type.
|
TypeDescription |
TypeDescription.ForLoadedType.getComponentType()
Returns the component type of this type.
|
TypeDescription |
TypeDescription.ArrayProjection.getComponentType()
Returns the component type of this type.
|
TypeDescription |
TypeDescription.SuperTypeLoading.getComponentType()
Returns the component type of this type.
|
TypeDescription |
TypeDescription.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.ForLoadedType.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.ArrayProjection.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.ForPackageDescription.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.SuperTypeLoading.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
RecordComponentDescription.InDefinedShape.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
RecordComponentDescription.ForLoadedRecordComponent.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
RecordComponentDescription.Latent.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
TypeDescription.getEnclosingType()
Returns a description of this type's enclosing type if any.
|
TypeDescription |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.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.ArrayProjection.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.ForPackageDescription.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.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.ForLoadedType.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.ArrayProjection.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.Latent.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.ForPackageDescription.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypeDescription.SuperTypeLoading.getNestHost()
Returns the nest host of this type.
|
protected static TypeDescription |
TypeDescription.LazyProxy.of(Class<?> type)
Resolves a lazy proxy for a loaded type as a type description.
|
static TypeDescription |
TypeDescription.ForLoadedType.of(Class<?> type)
Returns a new immutable type description for a loaded 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.
|
TypeDescription |
TypeDescription.Generic.Visitor.Reducing.onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
TypeDescription |
TypeDescription.Generic.Visitor.Reducing.onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
TypeDescription |
TypeDescription.Generic.Visitor.Reducing.onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
TypeDescription |
TypeDescription.Generic.Visitor.Reducing.onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
TypeDescription |
TypeDescription.Generic.Visitor.Reducing.onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
TypeDescription.Generic.OfParameterizedType.RenderingDelegate.apply(StringBuilder stringBuilder,
TypeDescription erasure,
TypeDescription.Generic ownerType)
Applies this rendering delegate.
|
static TypeList.Generic |
TypeList.Generic.ForDetachedTypes.attachVariables(TypeDescription typeDescription,
List<? extends TypeVariableToken> detachedTypeVariables)
Creates a list of type variables that are attached to the provided type.
|
boolean |
PackageDescription.contains(TypeDescription typeDescription)
Checks if this package contains the provided type.
|
boolean |
PackageDescription.AbstractBase.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.
|
boolean |
TypeDescription.isAssignableFrom(TypeDescription typeDescription)
Checks if this type is assignable from the type described by this instance, for example for
class Foo and class Bar extends Foo , this method would return true for
Foo.class.isAssignableFrom(Bar.class) . |
boolean |
TypeDescription.AbstractBase.isAssignableFrom(TypeDescription typeDescription)
Checks if this type is assignable from the type described by this instance, for example for
class Foo and class Bar extends Foo , this method would return true for
Foo.class.isAssignableFrom(Bar.class) . |
boolean |
TypeDescription.ForLoadedType.isAssignableFrom(TypeDescription typeDescription) |
boolean |
TypeDescription.isAssignableTo(TypeDescription typeDescription)
Checks if this type is assignable from the type described by this instance, for example for
class Foo and class Bar extends Foo , this method would return true for
Bar.class.isAssignableFrom(Foo.class) . |
boolean |
TypeDescription.AbstractBase.isAssignableTo(TypeDescription typeDescription)
Checks if this type is assignable from the type described by this instance, for example for
class Foo and class Bar extends Foo , this method would return true for
Bar.class.isAssignableFrom(Foo.class) . |
boolean |
TypeDescription.ForLoadedType.isAssignableTo(TypeDescription typeDescription) |
boolean |
TypeDescription.isInHierarchyWith(TypeDescription typeDescription)
Returns
true if this type and the supplied type are in a type hierarchy with each other, i.e. |
boolean |
TypeDescription.AbstractBase.isInHierarchyWith(TypeDescription typeDescription)
Returns
true 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.isNestMateOf(TypeDescription typeDescription)
Checks if this type and the supplied type are members of the same nest group.
|
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.isSamePackage(TypeDescription typeDescription)
Checks if two types are defined in the same package.
|
boolean |
TypeDescription.AbstractBase.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.Generic.Visitor.Substitutor.ForAttachment |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment.of(TypeDescription typeDescription)
Attaches all types to the given type description.
|
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 |
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.
|
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,
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,
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.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentDescription.Token |
RecordComponentDescription.asToken(ElementMatcher<? super TypeDescription> matcher)
Resolves this record component to a token where all types are detached.
|
RecordComponentDescription.Token |
RecordComponentDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher)
Resolves this record component to a token where all types are detached.
|
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.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher)
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.
|
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.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.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of record component descriptions into a list of detached tokens.
|
static TypeVariableToken |
TypeVariableToken.of(TypeDescription.Generic typeVariable,
ElementMatcher<? super TypeDescription> matcher)
Transforms a type variable into a type variable token with its bounds detached.
|
protected TypeList |
TypeList.AbstractBase.wrap(List<TypeDescription> values) |
Constructor and 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.
|
ForReplacement(TypeDescription typeDescription)
Creates a new substitutor for a type description replacement.
|
ForTokenNormalization(TypeDescription typeDescription)
Creates a new token normalization visitor.
|
ForTokens(TypeDescription typeDescription,
List<? extends RecordComponentDescription.Token> tokens)
Creates a new list of record components that are described as tokens.
|
ForTokens(TypeDescription typeDescription,
RecordComponentDescription.Token... token)
Creates a new list of record components that are described as tokens.
|
Latent(TypeDescription typeDescription,
AnnotationSource annotationSource)
Creates a non-generic type with an implicit owner type.
|
Latent(TypeDescription declaringType,
RecordComponentDescription.Token token)
Creates a new latent record component.
|
Latent(TypeDescription declaringType,
String name,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new latent record component.
|
Latent(TypeDescription typeDescription,
TypeDescription.Generic declaringType,
AnnotationSource annotationSource)
Creates a non-generic type.
|
Latent(TypeDescription rawType,
TypeDescription.Generic ownerType,
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.Generic ownerType)
Creates a builder for a non-generic type.
|
OfNonGenericType(TypeDescription typeDescription,
TypeDescription.Generic ownerType,
List<? extends AnnotationDescription> annotations)
Creates a builder for a non-generic type.
|
OfNonGenericType(TypeDescription typeDescription,
TypeDescription ownerType)
Creates a builder for a non-generic type.
|
OfParameterizedType(TypeDescription rawType,
TypeDescription.Generic ownerType,
List<? extends TypeDescription.Generic> parameterTypes)
Creates a builder for a parameterized type.
|
OfParameterizedType(TypeDescription rawType,
TypeDescription.Generic ownerType,
List<? extends TypeDescription.Generic> parameterTypes,
List<? extends AnnotationDescription> annotations)
Creates a builder for a parameterized type.
|
Reducing(TypeDescription declaringType,
List<? extends TypeVariableToken> typeVariableTokens)
Creates a new reducing type visitor.
|
Reducing(TypeDescription declaringType,
TypeVariableToken... typeVariableToken)
Creates a new reducing type visitor.
|
SuperTypeLoading(TypeDescription delegate,
ClassLoader classLoader)
Creates a super type loading type description.
|
SuperTypeLoading(TypeDescription delegate,
ClassLoader classLoader,
TypeDescription.SuperTypeLoading.ClassLoadingDelegate classLoadingDelegate)
Creates a super type loading type description.
|
Constructor and Description |
---|
Explicit(List<? extends TypeDescription> typeDescriptions)
Creates an immutable wrapper.
|
ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a visitor for detaching a type.
|
Modifier and Type | Field and Description |
---|---|
static TypeDescription |
TargetType.DESCRIPTION
A description of the
TargetType . |
protected TypeDescription |
DynamicType.Default.typeDescription
A type description of this dynamic type.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
DynamicType.getTypeDescription()
Returns a description of this dynamic type.
|
TypeDescription |
DynamicType.Default.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 the
TargetType placeholder. |
TypeDescription |
DynamicType.Builder.toTypeDescription()
Returns a
TypeDescription for the currently built type. |
TypeDescription |
DynamicType.Builder.AbstractBase.Delegator.toTypeDescription()
Returns a
TypeDescription for the currently built type. |
TypeDescription |
DynamicType.Builder.AbstractBase.Adapter.toTypeDescription()
Returns a
TypeDescription for the currently built type. |
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
DynamicType.Loaded.getAllLoaded()
Returns all loaded types that are implied by this dynamic type.
|
Map<TypeDescription,Class<?>> |
DynamicType.Default.Loaded.getAllLoaded()
Returns all loaded types that are implied by this dynamic type.
|
Map<TypeDescription,byte[]> |
DynamicType.getAllTypes()
Returns all types that are implied by this dynamic type.
|
Map<TypeDescription,byte[]> |
DynamicType.Default.getAllTypes()
Returns all types that are implied by this dynamic type.
|
Map<TypeDescription,byte[]> |
DynamicType.getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.
|
Map<TypeDescription,byte[]> |
DynamicType.Default.getAuxiliaryTypes()
Returns a map of all auxiliary types that are required for making use of the main type.
|
Map<TypeDescription,Class<?>> |
DynamicType.Loaded.getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.
|
Map<TypeDescription,Class<?>> |
DynamicType.Default.Loaded.getLoadedAuxiliaryTypes()
Returns a map of all loaded auxiliary types to this dynamic type.
|
Map<TypeDescription,LoadedTypeInitializer> |
DynamicType.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.
|
Map<TypeDescription,LoadedTypeInitializer> |
DynamicType.Default.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Resolved.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Passive.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Active.Resolved.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Lazy.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Disabled.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
Map<TypeDescription,File> |
DynamicType.saveIn(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.
|
Map<TypeDescription,File> |
DynamicType.Default.saveIn(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.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder.InnerTypeDefinition.ForType<T> |
DynamicType.Builder.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<U> |
DynamicType.Builder.AbstractBase.Adapter.innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.
|
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<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<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<T> |
DynamicType.Builder.nestMembers(TypeDescription... type)
Defines this type as a nest host for the supplied types.
|
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.permittedSubclass(TypeDescription... type)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.
|
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.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)
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.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.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 the
TargetType placeholder. |
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.
|
Object |
Transformer.NoOp.transform(TypeDescription instrumentedType,
Object target)
Transforms the supplied target.
|
S |
Transformer.Compound.transform(TypeDescription instrumentedType,
S target)
Transforms the supplied target.
|
T |
Transformer.transform(TypeDescription instrumentedType,
T target)
Transforms the supplied target.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.declaredTypes(Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.declaredTypes(Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.declaredTypes(Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<T> |
DynamicType.Builder.nestMembers(Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.nestMembers(Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.nestMembers(Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.
|
static ClassFileLocator |
ClassFileLocator.Simple.of(Map<TypeDescription,byte[]> binaryRepresentations)
Creates a class file locator that represents all types of a dynamic type.
|
DynamicType.Builder<T> |
DynamicType.Builder.permittedSubclass(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(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.Adapter.permittedSubclass(Collection<? extends TypeDescription> types)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.
|
Constructor and Description |
---|
Default(TypeDescription typeDescription,
byte[] binaryRepresentation,
LoadedTypeInitializer loadedTypeInitializer,
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,
List<? extends DynamicType> auxiliaryTypes,
Map<TypeDescription,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,
List<? extends DynamicType> auxiliaryTypes,
TypeResolutionStrategy.Resolved typeResolutionStrategy)
Creates a new unloaded representation of a dynamic type.
|
Constructor and Description |
---|
Loaded(TypeDescription typeDescription,
byte[] typeByte,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes,
Map<TypeDescription,Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.
|
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
ClassInjector.inject(Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.
|
Map<TypeDescription,Class<?>> |
ClassInjector.AbstractBase.inject(Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.
|
Map<TypeDescription,Class<?>> |
ClassReloadingStrategy.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.InjectionDispatcher.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.WrappingDispatcher.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.UsingLookup.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForBootstrapInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForUnsafeInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForJnaInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.ChildFirst.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations using a child-first class loader.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types,
ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler,
PackageDefinitionStrategy packageDefinitionStrategy,
boolean forbidExisting,
boolean sealed)
Loads a given set of class descriptions and their binary representations.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.ChildFirst.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types,
ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler,
PackageDefinitionStrategy packageDefinitionStrategy,
boolean forbidExisting,
boolean sealed)
Loads a given set of class descriptions and their binary representations using a child-first class loader.
|
Map<TypeDescription,Class<?>> |
InjectionClassLoader.Strategy.load(InjectionClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.load(T classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
ClassInjector.inject(Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.
|
Map<TypeDescription,Class<?>> |
ClassInjector.AbstractBase.inject(Map<? extends TypeDescription,byte[]> types)
Injects the given types into the represented class loader.
|
Map<TypeDescription,Class<?>> |
ClassReloadingStrategy.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.InjectionDispatcher.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.Default.WrappingDispatcher.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.UsingLookup.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForBootstrapInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForUnsafeInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.ForJnaInjection.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.ChildFirst.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given set of class descriptions and their binary representations using a child-first class loader.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types,
ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler,
PackageDefinitionStrategy packageDefinitionStrategy,
boolean forbidExisting,
boolean sealed)
Loads a given set of class descriptions and their binary representations.
|
static Map<TypeDescription,Class<?>> |
ByteArrayClassLoader.ChildFirst.load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types,
ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler,
PackageDefinitionStrategy packageDefinitionStrategy,
boolean forbidExisting,
boolean sealed)
Loads a given set of class descriptions and their binary representations using a child-first class loader.
|
Map<TypeDescription,Class<?>> |
InjectionClassLoader.Strategy.load(InjectionClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Map<TypeDescription,Class<?>> |
ClassLoadingStrategy.load(T classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InstrumentedType
Implementations of this interface represent an instrumented type that is subject to change.
|
static interface |
InstrumentedType.WithFlexibleName
Implementations represent an
InstrumentedType with a flexible name. |
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription |
FieldLocator.AbstractBase.accessingType
The type accessing the field.
|
protected TypeDescription |
TypeWriter.Default.instrumentedType
The instrumented type to be created.
|
protected TypeDescription |
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.instrumentedType
The instrumented type.
|
protected TypeDescription |
TypeInitializer.Drain.Default.instrumentedType
The instrumented type.
|
protected TypeDescription |
TypeWriter.Default.ForInlining.originalType
The original type's description.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.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 |
InstrumentedType.Default.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
InstrumentedType.Frozen.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.Prepared.getInstrumentedType()
Returns the fully prepared instrumented type.
|
TypeDescription |
MethodRegistry.Compiled.getInstrumentedType()
Returns the instrumented type that is to be created.
|
TypeDescription |
MethodRegistry.Default.Prepared.getInstrumentedType()
Returns the fully prepared instrumented type.
|
TypeDescription |
MethodRegistry.Default.Compiled.getInstrumentedType()
Returns the instrumented type that is to be created.
|
TypeDescription |
InstrumentedType.Default.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
InstrumentedType.Frozen.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
InstrumentedType.validated()
Validates the instrumented type to define a legal Java 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.
|
Modifier and Type | Method and Description |
---|---|
protected MethodRegistry.Default.Prepared.Entry |
MethodRegistry.Default.Entry.asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> methodTypes,
Visibility visibility)
Transforms this entry into a prepared state.
|
protected MethodRegistry.Default.Prepared.Entry |
MethodRegistry.Default.Entry.asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Visibility visibility)
Transforms this entry into a prepared state.
|
protected TypeWriter.MethodPool.Record |
MethodRegistry.Default.Compiled.Entry.bind(TypeDescription instrumentedType,
boolean supportsBridges)
Transforms this entry into a method record.
|
protected TypeWriter.FieldPool.Record |
FieldRegistry.Default.Compiled.Entry.bind(TypeDescription instrumentedType,
FieldDescription fieldDescription)
Binds this entry to the provided field description.
|
protected TypeWriter.RecordComponentPool.Record |
RecordComponentRegistry.Default.Compiled.Entry.bind(TypeDescription instrumentedType,
RecordComponentDescription recordComponentDescription)
Binds this entry to the provided record component description.
|
MethodGraph.Linked |
MethodGraph.Empty.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint)
Compiles the given type into a method graph.
|
MethodGraph.Linked |
MethodGraph.Compiler.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.Default.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint)
Compiles the given type into a method graph.
|
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.
|
MethodGraph.Linked |
MethodGraph.Empty.compile(TypeDescription typeDescription)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.compile(TypeDescription typeDescription)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.ForDeclaredMethods.compile(TypeDescription typeDescription)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.AbstractBase.compile(TypeDescription typeDescription)
Deprecated.
|
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.Empty.compile(TypeDescription typeDefinition,
TypeDescription viewPoint)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.compile(TypeDescription typeDefinition,
TypeDescription viewPoint)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.ForDeclaredMethods.compile(TypeDescription typeDefinition,
TypeDescription viewPoint)
Deprecated.
|
MethodGraph.Linked |
MethodGraph.Compiler.AbstractBase.compile(TypeDescription typeDefinition,
TypeDescription viewPoint)
Deprecated.
|
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.Disabled.dump(TypeDescription instrumentedType,
boolean original,
byte[] binaryRepresentation)
Dumps a class file to the file system.
|
void |
TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled.dump(TypeDescription instrumentedType,
boolean original,
byte[] binaryRepresentation)
Dumps a class file to the file system.
|
static <U> TypeWriter<U> |
TypeWriter.Default.forDecoration(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
List<? extends DynamicType> auxiliaryTypes,
List<? extends MethodDescription> methods,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
ClassFileLocator classFileLocator)
Creates a type writer for decorating a type.
|
static <U> TypeWriter<U> |
TypeWriter.Default.forRebasing(MethodRegistry.Prepared methodRegistry,
List<? extends DynamicType> auxiliaryTypes,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
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,
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.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.
|
FieldLocator.Resolution |
FieldLocator.locate(String name,
TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.
|
FieldLocator.Resolution |
FieldLocator.NoOp.locate(String name,
TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.
|
FieldLocator.Resolution |
FieldLocator.AbstractBase.locate(String name,
TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.
|
FieldLocator |
FieldLocator.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.
|
FieldLocator |
FieldLocator.ForExactType.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.ForTopLevelType.Factory.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,
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.ForDefinedMethod.OfVisibilityBridge.of(TypeDescription instrumentedType,
MethodDescription bridgeTarget,
MethodAttributeAppender attributeAppender)
Creates a record for a visibility bridge.
|
static TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Wraps the given record in an accessor bridge wrapper if necessary.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Factory.represent(TypeDescription typeDescription)
Creates an instrumented type that represents the provided type.
|
ElementMatcher<? super RecordComponentDescription> |
RecordComponentRegistry.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 FieldDescription> |
FieldRegistry.Default.Entry.resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
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.
|
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.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.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.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.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.
|
Constructor and Description |
---|
AbstractBase(TypeDescription accessingType)
Creates a new field locator.
|
AccessBridgeWrapper(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
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(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(String target,
TypeDescription instrumentedType,
boolean original,
long suffix,
byte[] binaryRepresentation)
Creates a new class dump action.
|
Compiled(TypeDescription instrumentedType)
Creates a new compiled handler for a visibility bridge.
|
Compiled(TypeDescription instrumentedType,
List<FieldRegistry.Default.Compiled.Entry> entries)
Creates a new compiled field registry.
|
Compiled(TypeDescription instrumentedType,
List<RecordComponentRegistry.Default.Compiled.Entry> entries)
Creates a new compiled record component registry.
|
Compiled(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
MethodList<?> methods,
LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations,
boolean supportsBridges)
Creates a new compiled version of a default method registry.
|
Creating(TypeDescription instrumentedType,
TypeWriter.MethodPool methodPool,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new creating initialization handler.
|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
Map<String,Object> auxiliaryFieldValues,
List<? extends MethodDescription.Token> methodTokens,
List<? extends RecordComponentDescription.Token> recordComponentTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
List<? extends TypeDescription> permittedSubclasses,
boolean anonymousClass,
boolean localClass,
boolean record,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer.
|
Default(TypeDescription instrumentedType,
TypeWriter.MethodPool methodPool,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new default type initializer drain.
|
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,
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,
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(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(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.
|
WithActiveRecord(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.
|
WithDecorationOnly(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
List<? extends DynamicType> auxiliaryTypes,
MethodList<?> methods,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
ClassFileLocator classFileLocator)
Creates a new inlining type writer that only applies a decoration.
|
WithDrain(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,
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(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.
|
WithoutActiveRecord(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.
|
WithoutDrain(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 and Description |
---|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
Map<String,Object> auxiliaryFieldValues,
List<? extends MethodDescription.Token> methodTokens,
List<? extends RecordComponentDescription.Token> recordComponentTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
List<? extends TypeDescription> permittedSubclasses,
boolean anonymousClass,
boolean localClass,
boolean record,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
Map<String,Object> auxiliaryFieldValues,
List<? extends MethodDescription.Token> methodTokens,
List<? extends RecordComponentDescription.Token> recordComponentTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
List<? extends TypeDescription> permittedSubclasses,
boolean anonymousClass,
boolean localClass,
boolean record,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
Map<String,Object> auxiliaryFieldValues,
List<? extends MethodDescription.Token> methodTokens,
List<? extends RecordComponentDescription.Token> recordComponentTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
List<? extends TypeDescription> permittedSubclasses,
boolean anonymousClass,
boolean localClass,
boolean record,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Delegation(MethodGraph methodGraph,
MethodGraph superClassGraph,
Map<TypeDescription,MethodGraph> interfaceGraphs)
Creates a new delegation method graph.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription |
AbstractInliningDynamicTypeBuilder.originalType
The original type that is being redefined or rebased.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.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 a
TypeDescription for the currently built type. |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.InnerTypeDefinition.ForType<T> |
DecoratingDynamicTypeBuilder.innerTypeOf(TypeDescription type)
Defines this type as an inner type of the supplied type.
|
Implementation.Target |
RebaseImplementationTarget.Factory.make(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
ClassFileVersion classFileVersion)
Creates an implementation target.
|
static MethodRebaseResolver |
MethodRebaseResolver.Default.make(TypeDescription instrumentedType,
Set<? extends MethodDescription.SignatureToken> rebaseables,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
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.
|
protected static Implementation.SpecialMethodInvocation |
RebaseImplementationTarget.RebasedMethodInvocation.of(MethodDescription.InDefinedShape resolvedMethod,
TypeDescription instrumentedType,
TypeList prependedParameters)
Creates a special method invocation for the given method.
|
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.
|
ElementMatcher<? super MethodDescription> |
InliningImplementationMatcher.resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.declaredTypes(Collection<? extends TypeDescription> types)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.nestMembers(Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.permittedSubclass(Collection<? extends TypeDescription> types)
Defines this type to allow the supplied permitted subclasses additionally to any prior permitted subclasses.
|
Constructor and 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,
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,
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.InDefinedShape methodDescription,
TypeDescription instrumentedType,
StackManipulation stackManipulation,
TypeList prependedParameters)
Creates a new rebased method invocation.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
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,
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,
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,
List<? extends DynamicType> auxiliaryTypes,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder.
|
Modifier and Type | Method and Description |
---|---|
protected abstract List<MethodDescription.Token> |
ConstructorStrategy.Default.doExtractConstructors(TypeDescription instrumentedType)
Extracts the relevant method tokens of the instrumented type's constructors.
|
List<MethodDescription.Token> |
ConstructorStrategy.extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
List<MethodDescription.Token> |
ConstructorStrategy.Default.extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
List<MethodDescription.Token> |
ConstructorStrategy.Default.WithMethodAttributeAppenderFactory.extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
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.inject(TypeDescription instrumentedType,
MethodRegistry methodRegistry)
Returns a method registry that is capable of creating byte code for the constructors that were
provided by the
ConstructorStrategy.extractConstructors(TypeDescription)
method of this instance. |
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 the
ConstructorStrategy.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 the
ConstructorStrategy.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 the
ConstructorStrategy.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.
|
Constructor and Description |
---|
SubclassImplementationTarget(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation,
SubclassImplementationTarget.OriginTypeResolver originTypeResolver)
Creates a new subclass implementation target.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription |
Implementation.Target.AbstractBase.instrumentedType
The instrumented type.
|
protected TypeDescription |
Implementation.Context.ExtractableView.AbstractBase.instrumentedType
The instrumented type.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
Implementation.Context.Default.CacheValueField.getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription |
Implementation.Context.Default.AccessorMethod.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.Target.getInstrumentedType()
Returns a description of the instrumented type.
|
TypeDescription |
Implementation.Target.AbstractBase.getInstrumentedType()
Returns a description of the instrumented type.
|
TypeDescription |
Implementation.Context.getInstrumentedType()
Returns the instrumented type of the current implementation.
|
TypeDescription |
Implementation.Context.ExtractableView.AbstractBase.getInstrumentedType()
Returns the instrumented type of the current implementation.
|
TypeDescription |
InvokeDynamic.InvocationProvider.Target.Resolved.getReturnType()
Returns the requested return type.
|
TypeDescription |
InvokeDynamic.InvocationProvider.Target.Resolved.Simple.getReturnType()
Returns the requested return type.
|
TypeDescription |
MethodCall.TargetHandler.Resolved.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.Simple.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForConstructingInvocation.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForValue.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForField.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForMethodParameter.Resolved.getTypeDescription()
Returns the target's type description.
|
TypeDescription |
MethodCall.TargetHandler.ForMethodCall.Resolved.getTypeDescription()
Returns the target's type description.
|
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 |
Implementation.Context.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.Default.register(AuxiliaryType auxiliaryType)
Registers an auxiliary type as required for the current implementation.
|
TypeDescription |
InvokeDynamic.InvocationProvider.ReturnTypeProvider.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.ForExplicitType.resolve(MethodDescription methodDescription)
Resolves the return type that is requested from the bootstrap method.
|
Modifier and Type | Method and Description |
---|---|
List<TypeDescription> |
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.
|
List<TypeDescription> |
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved.Simple.getLoadedTypes()
Returns a list of all types of the arguments that were loaded onto the operand stack.
|
List<TypeDescription> |
InvokeDynamic.InvocationProvider.Target.Resolved.getParameterTypes()
Returns the types of the values on the operand stack.
|
List<TypeDescription> |
InvokeDynamic.InvocationProvider.Target.Resolved.Simple.getParameterTypes()
Returns the types of the values on the operand stack.
|
Modifier and Type | Method and 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.OfInstance.as(TypeDescription typeDescription) |
InvokeDynamic |
InvokeDynamic.WithImplicitType.OfArgument.as(TypeDescription typeDescription) |
InvokeDynamic |
InvokeDynamic.WithImplicitType.OfField.as(TypeDescription typeDescription) |
FieldDescription.InDefinedShape |
Implementation.Context.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
FieldDescription.InDefinedShape |
Implementation.Context.Disabled.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
FieldDescription.InDefinedShape |
Implementation.Context.Default.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
MethodDelegation.ImplementationDelegate.Compiled |
MethodDelegation.ImplementationDelegate.compile(TypeDescription instrumentedType)
Compiles this implementation delegate.
|
MethodDelegation.ImplementationDelegate.Compiled |
MethodDelegation.ImplementationDelegate.ForStaticMethod.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.ForConstruction.compile(TypeDescription instrumentedType)
Compiles this implementation delegate.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.OwnerTypeLocatable.in(TypeDescription typeDescription)
Determines that a field should only be considered when it was defined in a given type.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.ForImplicitProperty.in(TypeDescription typeDescription)
Determines that a field should only be considered when it was defined in a given type.
|
protected abstract T |
FieldAccessor.ForSetter.initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.
|
protected Void |
FieldAccessor.ForSetter.OfParameterValue.initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.
|
protected Void |
FieldAccessor.ForSetter.OfDefaultValue.initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.
|
protected Void |
FieldAccessor.ForSetter.OfConstantValue.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.
|
protected FieldAccessor.FieldLocation.Prepared |
FieldAccessor.ForSetter.OfFieldValue.initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.
|
InvokeDynamic.WithImplicitArguments |
InvokeDynamic.WithImplicitTarget.invoke(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.invokeDefault(MethodDescription.SignatureToken token,
TypeDescription targetType)
Creates a special method invocation for invoking a default method.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.AbstractBase.invokeDefault(MethodDescription.SignatureToken token,
TypeDescription targetType)
Creates a special method invocation for invoking a default method.
|
MethodCall.MethodLocator |
MethodCall.MethodLocator.Factory.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.MethodLocator |
MethodCall.MethodLocator.ForExplicitMethod.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.MethodInvoker |
MethodCall.MethodInvoker.Factory.make(TypeDescription instrumentedType)
Creates a method invoker.
|
MethodCall.MethodInvoker |
MethodCall.MethodInvoker.ForVirtualInvocation.WithImplicitType.make(TypeDescription instrumentedType)
Creates a method invoker.
|
MethodCall.MethodInvoker |
MethodCall.MethodInvoker.ForVirtualInvocation.Factory.make(TypeDescription instrumentedType)
Creates a method invoker.
|
MethodCall.TerminationHandler |
MethodCall.TerminationHandler.Factory.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.
|
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.
|
Implementation.Context.ExtractableView |
Implementation.Context.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
|
Implementation.Context.ExtractableView |
Implementation.Context.Disabled.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Deprecated.
|
Implementation.Context.ExtractableView |
Implementation.Context.Default.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Deprecated.
|
Implementation.Context.ExtractableView |
Implementation.Context.Default.Factory.WithFixedSuffix.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion)
Deprecated.
|
Implementation.Context.ExtractableView |
Implementation.Context.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new implementation context.
|
Implementation.Context.ExtractableView |
Implementation.Context.Disabled.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new implementation context.
|
Implementation.Context.ExtractableView |
Implementation.Context.Default.Factory.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new implementation context.
|
Implementation.Context.ExtractableView |
Implementation.Context.Default.Factory.WithFixedSuffix.make(TypeDescription instrumentedType,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion classFileVersion,
ClassFileVersion auxiliaryClassFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new implementation context.
|
Implementation.Target |
Implementation.Target.Factory.make(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
ClassFileVersion classFileVersion)
Creates an implementation target.
|
static Implementation.SpecialMethodInvocation |
Implementation.SpecialMethodInvocation.Simple.of(MethodDescription methodDescription,
TypeDescription typeDescription)
Creates a special method invocation for a given invocation target.
|
protected static StackManipulation |
ToStringMethod.ValueConsumer.of(TypeDescription typeDescription)
Resolves an appropriate value resolver for a given type.
|
protected static MethodDelegation.ImplementationDelegate |
MethodDelegation.ImplementationDelegate.ForConstruction.of(TypeDescription typeDescription,
MethodList<?> methods,
MethodDelegationBinder methodDelegationBinder)
Creates an implementation delegate for constructing a new instance.
|
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.prepare(TypeDescription instrumentedType)
A prepared field location.
|
FieldAccessor.FieldLocation.Prepared |
FieldAccessor.FieldLocation.Absolute.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 a
DefaultMethodCall implementation which searches the given list
of interface types for a suitable default method in their order. |
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.OfReferenceValue.resolve(FieldDescription.InDefinedShape target,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
protected abstract StackManipulation |
InvokeDynamic.TerminationHandler.resolve(MethodDescription interceptedMethod,
TypeDescription returnType,
Assigner assigner,
Assigner.Typing typing)
Returns a stack manipulation that handles the method return.
|
protected abstract StackManipulation |
FieldAccessor.ForSetter.resolve(T initialized,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
String |
ToStringMethod.PrefixResolver.resolve(TypeDescription instrumentedType)
Resolves the prefixed value.
|
String |
ToStringMethod.PrefixResolver.ForFixedValue.resolve(TypeDescription instrumentedType)
Resolves the prefixed value.
|
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) |
FieldDescription |
MethodCall.TargetHandler.ForField.Location.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.ForExplicitField.resolve(TypeDescription instrumentedType)
Resolves the field to invoke the method upon.
|
StackManipulation |
HashCodeMethod.OffsetProvider.resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.
|
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.ForStaticTypeHash.resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.
|
StackManipulation |
HashCodeMethod.OffsetProvider.ForDynamicTypeHash.resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.
|
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.
|
InvokeDynamic.InvocationProvider.Target.Resolved |
InvokeDynamic.InvocationProvider.Target.resolve(TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Resolves the target.
|
InvokeDynamic.InvocationProvider.Target.Resolved |
InvokeDynamic.InvocationProvider.Default.Target.resolve(TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Resolves the target.
|
MethodDescription |
MethodCall.MethodLocator.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.ForExplicitMethod.resolve(TypeDescription targetType,
MethodDescription instrumentedMethod)
Resolves the method to be invoked.
|
MethodDescription |
MethodCall.MethodLocator.ForElementMatcher.resolve(TypeDescription targetType,
MethodDescription instrumentedMethod)
Resolves the method to be invoked.
|
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved |
InvokeDynamic.InvocationProvider.ArgumentProvider.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.ConstantPoolWrapper.WrappingArgumentProvider.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.ForInstance.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.ForMethodParameter.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.ForShortConstant.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.ForIntegerConstant.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.ForFloatConstant.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.ForStringConstant.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.ForEnumerationValue.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.ForJavaConstant.resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Assigner.Typing typing)
Resolves an argument provider.
|
protected StackManipulation |
FieldAccessor.ForSetter.OfParameterValue.resolve(Void unused,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
protected StackManipulation |
FieldAccessor.ForSetter.OfDefaultValue.resolve(Void initialized,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
protected StackManipulation |
FieldAccessor.ForSetter.OfConstantValue.resolve(Void unused,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(TypeDescription typeDescription)
Defines a setter of a given class constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.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 given
Throwable type on each method invocation
which is then thrown immediately. |
static Implementation |
ExceptionMethod.throwing(TypeDescription throwableType,
String message)
Creates an implementation that creates a new instance of the given
Throwable type on each method
invocation which is then thrown immediately. |
static MethodDelegation |
MethodDelegation.to(TypeDescription typeDescription)
Delegates any intercepted method to invoke a
static method that is declared by the supplied type. |
MethodDelegation |
MethodDelegation.WithCustomProperties.to(TypeDescription typeDescription)
Delegates any intercepted method to invoke a
static 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 type)
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.withNullValue(TypeDescription... typeDescription)
Passes
null values of the given types to the bootstrapped method. |
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withNullValue(TypeDescription... typeDescription)
Passes
null values of the given types to the bootstrapped method. |
InvokeDynamic |
InvokeDynamic.withThis(TypeDescription... typeDescription)
Passes references to
this onto the operand stack where the instance is represented as
the given types. |
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withThis(TypeDescription... typeDescription)
Passes references to
this onto the operand stack where the instance is represented as
the given types. |
InvokeDynamic |
InvokeDynamic.withType(TypeDescription... typeDescription)
Hands the provided types to the dynamically bound method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withType(TypeDescription... typeDescription)
Hands the provided types to the dynamically bound method.
|
Modifier and Type | Method and Description |
---|---|
static Implementation |
DefaultMethodCall.prioritize(Collection<? extends TypeDescription> prioritizedInterfaces)
Creates a
DefaultMethodCall implementation which searches the given list
of interface types for a suitable default method in their order. |
Constructor and Description |
---|
AbstractBase(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
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,
TypeDescription typeDescription,
String suffix)
Creates a new accessor method.
|
AccessorMethodDelegation(TypeDescription instrumentedType,
String suffix,
MethodAccessorFactory.AccessType accessType,
Implementation.SpecialMethodInvocation specialMethodInvocation)
Creates a delegation to an accessor method.
|
Appender(TypeDescription instrumentedType)
Creates a new byte code appender for an invoke dynamic implementation.
|
Appender(TypeDescription instrumentedType)
Creates a new appender.
|
Appender(TypeDescription originType)
Creates a new appender.
|
Appender(TypeDescription instrumentedType)
Creates a new byte code appender for returning
this . |
Appender(TypeDescription instrumentedType,
StackManipulation baseline,
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.
|
CacheValueField(TypeDescription instrumentedType,
TypeDescription.Generic fieldType,
String suffix,
int hashCode)
Creates a new cache value field.
|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
TypeInitializer typeInitializer,
ClassFileVersion auxiliaryClassFileVersion,
Implementation.Context.FrameGeneration frameGeneration,
String suffix)
Creates a new default implementation context.
|
Disabled(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
Implementation.Context.FrameGeneration frameGeneration)
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,
String suffix)
Creates a new field getter.
|
FieldGetterDelegation(TypeDescription instrumentedType,
String suffix,
MethodAccessorFactory.AccessType accessType,
FieldDescription fieldDescription)
Creates a new field getter implementation.
|
FieldSetter(TypeDescription instrumentedType,
FieldDescription fieldDescription,
String suffix)
Creates a new field setter.
|
FieldSetterDelegation(TypeDescription instrumentedType,
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.
|
ForConstantValue(StackManipulation valueLoadInstruction,
TypeDescription loadedType)
Creates a new constant pool fixed value implementation.
|
ForConstructingInvocation(TypeDescription instrumentedType)
Creates a new target handle constructor invocation.
|
ForConstruction(TypeDescription typeDescription,
List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a constructor delegation.
|
ForConstruction(TypeDescription typeDescription,
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(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 the
null value. |
ForSelfOrStaticInvocation(TypeDescription instrumentedType)
Creates a new target handler for a static or self-declared invocation.
|
ForStringConstructor(TypeDescription throwableType,
String message)
Creates a new construction delegate that calls a constructor by handing it the given string.
|
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 the
this 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,
String internalName,
TypeDescription returnType,
List<TypeDescription> parameterTypes)
Creates a new simple instance.
|
Simple(StackManipulation stackManipulation,
TypeDescription loadedType)
Creates a simple resolved argument provider.
|
Simple(TypeDescription typeDescription,
StackManipulation stackManipulation)
Creates a simple target handler.
|
Target(String internalName,
TypeDescription returnType,
List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders,
MethodDescription instrumentedMethod)
Creates a new target.
|
WithExplicitType(int index,
TypeDescription typeDescription)
Creates a new argument provider for a method parameter with an explicit type.
|
WithExplicitType(String fieldName,
FieldLocator.Factory fieldLocatorFactory,
TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.
|
Constructor and Description |
---|
Appender(Implementation.Target implementationTarget,
List<TypeDescription> prioritizedInterfaces)
Creates a new appender for implementing a
DefaultMethodCall . |
DefaultMethodCall(List<TypeDescription> prioritizedInterfaces)
Creates a new
DefaultMethodCall implementation for a given list of
prioritized interfaces. |
Simple(StackManipulation stackManipulation,
List<TypeDescription> loadedTypes)
Creates a simple resolved argument provider.
|
Simple(StackManipulation stackManipulation,
String internalName,
TypeDescription returnType,
List<TypeDescription> parameterTypes)
Creates a new simple instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
AnnotationAppender.Default.apply(AnnotationVisitor annotationVisitor,
TypeDescription valueType,
String name,
Object value)
Performs the writing of a given annotation value to an annotation visitor.
|
void |
TypeAttributeAppender.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.NoOp.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.ForInstrumentedType.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.ForInstrumentedType.Differentiating.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.Explicit.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.Compound.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
RecordComponentAttributeAppender |
RecordComponentAttributeAppender.NoOp.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.Factory.Compound.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.Explicit.make(TypeDescription typeDescription)
Returns a record component 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.
|
MethodAttributeAppender |
MethodAttributeAppender.Factory.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.ForInstrumentedMethod.make(TypeDescription typeDescription)
Returns a method 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.ForReceiverType.make(TypeDescription typeDescription)
Returns a method 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.
|
FieldAttributeAppender |
FieldAttributeAppender.Factory.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.ForInstrumentedField.make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
FieldAttributeAppender |
FieldAttributeAppender.Explicit.make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
AnnotationValueFilter |
AnnotationValueFilter.Factory.on(TypeDescription instrumentedType)
Creates an annotation value filter for writing annotations on an instrumented type.
|
AnnotationValueFilter |
AnnotationValueFilter.Default.on(TypeDescription instrumentedType)
Creates an annotation value filter for writing annotations on an instrumented type.
|
Constructor and Description |
---|
Differentiating(TypeDescription typeDescription)
Creates a new differentiating type attribute appender.
|
Modifier and Type | Method and 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)
Deprecated.
|
MethodGraph.Linked |
MethodCallProxy.PrecomputedMethodGraph.compile(TypeDescription typeDefinition,
TypeDescription viewPoint)
Deprecated.
|
Implementation.SpecialMethodInvocation |
TypeProxy.InvocationFactory.invoke(Implementation.Target implementationTarget,
TypeDescription proxiedType,
MethodDescription instrumentedMethod)
Creates a special method invocation to implement for a given method.
|
String |
AuxiliaryType.NamingStrategy.name(TypeDescription instrumentedType,
AuxiliaryType auxiliaryType)
Names an auxiliary type.
|
String |
AuxiliaryType.NamingStrategy.Enumerating.name(TypeDescription instrumentedType,
AuxiliaryType auxiliaryType)
Names an auxiliary type.
|
String |
AuxiliaryType.NamingStrategy.Suffixing.name(TypeDescription instrumentedType,
AuxiliaryType auxiliaryType)
Names an auxiliary type.
|
String |
AuxiliaryType.NamingStrategy.SuffixingRandom.name(TypeDescription instrumentedType,
AuxiliaryType auxiliaryType)
Names an auxiliary type.
|
Constructor and Description |
---|
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,
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 and Description |
---|
ForSuperMethodByConstructor(TypeDescription proxiedType,
Implementation.Target implementationTarget,
List<TypeDescription> constructorParameters,
boolean ignoreFinalizer,
boolean serializableProxy)
Creates a new stack operation for creating a type proxy by calling one of its constructors.
|
Modifier and Type | Method and Description |
---|---|
static ArgumentTypeResolver.PrimitiveTypePrecedence |
ArgumentTypeResolver.PrimitiveTypePrecedence.forPrimitive(TypeDescription typeDescription)
Locates the primitive type precedence for a given type.
|
Constructor and Description |
---|
Virtual(TypeDescription typeDescription)
Creates an immutable method invoker that dispatches all methods on a given type.
|
Modifier and Type | Method and Description |
---|---|
protected TypeDescription |
FieldGetterHandle.Binder.Delegate.declaringType(AnnotationDescription.Loadable<FieldGetterHandle> annotation) |
protected TypeDescription |
FieldProxy.Binder.declaringType(AnnotationDescription.Loadable<FieldProxy> annotation) |
protected TypeDescription |
FieldSetterHandle.Binder.Delegate.declaringType(AnnotationDescription.Loadable<FieldSetterHandle> annotation) |
protected TypeDescription |
FieldValue.Binder.Delegate.declaringType(AnnotationDescription.Loadable<FieldValue> annotation) |
protected abstract TypeDescription |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.declaringType(AnnotationDescription.Loadable<S> annotation)
Extracts the declaring type from an annotation.
|
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 |
FieldProxy.Binder.FieldResolver.ForGetter.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.ForGetterSetterPair.getProxyType()
Returns the type of the field access proxy.
|
TypeDescription |
Default.Binder.TypeLocator.resolve(TypeDescription.Generic parameterType)
Resolves the target type.
|
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 |
Super.Binder.TypeLocator.resolve(TypeDescription instrumentedType,
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.
|
Modifier and Type | Method and Description |
---|---|
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Pipe> |
Pipe.Binder.install(TypeDescription typeDescription)
Installs a given type for use on a
Pipe
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<Morph> |
Morph.Binder.install(TypeDescription typeDescription)
Installs a given type for use on a
Morph
annotation. |
static TargetMethodAnnotationDrivenBinder.ParameterBinder<FieldProxy> |
FieldProxy.Binder.install(TypeDescription typeDescription)
Creates a binder by installing a single proxy type where annotating a parameter with
FieldProxy 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 the
FieldProxy annotation. |
protected static Super.Binder.TypeLocator |
Super.Binder.TypeLocator.ForType.of(TypeDescription typeDescription)
Resolves a type locator based upon an annotation value.
|
protected static Default.Binder.TypeLocator |
Default.Binder.TypeLocator.ForType.of(TypeDescription typeDescription)
Resolves a type locator based upon an annotation value.
|
protected abstract StackManipulation |
Super.Instantiation.proxyFor(TypeDescription parameterType,
Implementation.Target implementationTarget,
AnnotationDescription.Loadable<Super> annotation)
Creates a stack manipulation which loads a
super -call proxy onto the stack. |
FieldProxy.Binder.FieldResolver |
FieldProxy.Binder.FieldResolver.Factory.resolve(TypeDescription parameterType,
FieldDescription fieldDescription)
Creates a field resolver.
|
FieldProxy.Binder.FieldResolver |
FieldProxy.Binder.FieldResolver.Factory.Duplex.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.resolve(TypeDescription instrumentedType,
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.
|
Constructor and Description |
---|
AccessorProxy(FieldDescription fieldDescription,
TypeDescription instrumentedType,
FieldProxy.Binder.FieldResolver fieldResolver,
Assigner assigner,
boolean serializableProxy) |
Binder(TypeDescription proxyType,
MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a new binder for a
FieldProxy 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.
|
Explicit(TypeDescription typeDescription)
Creates a new explicit default method locator.
|
ForExplicitType(TypeDescription typeDescription)
Creates a method locator for an explicit target.
|
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 instance field constructor implementation.
|
InstanceFieldConstructor(TypeDescription instrumentedType)
Creates a new implementation for implementing a field accessor proxy's constructor when accessing
a non-static field.
|
RedirectionProxy(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 and Description |
---|
DelegationProcessor(Map<? extends TypeDescription,? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
TypeCreation.of(TypeDescription typeDescription)
Creates a type creation for the given type.
|
Constructor and Description |
---|
TypeCreation(TypeDescription typeDescription)
Constructs a new type creation.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
InstanceCheck.of(TypeDescription typeDescription)
Creates a new instance check.
|
Constructor and Description |
---|
InstanceCheck(TypeDescription typeDescription)
Creates a new instance check.
|
TypeCasting(TypeDescription typeDescription)
Creates a new type casting.
|
Constructor and Description |
---|
ForReferenceType(TypeDescription referenceType)
Creates a new array creator for a reference type.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
ClassConstant.of(TypeDescription typeDescription)
Returns a stack manipulation that loads a
Class type onto the operand stack which
represents the given type. |
Modifier and Type | Method and Description |
---|---|
Type |
JavaConstantValue.Visitor.onType(JavaConstant.Simple<TypeDescription> constant)
Invoked on a
JavaConstant.Simple constant that represents a TypeDescription . |
protected static List<StackManipulation> |
MethodConstant.typeConstantsFor(List<TypeDescription> parameterTypes)
Returns a list of type constant load operations for the given list of parameters.
|
Constructor and Description |
---|
ForReferenceType(TypeDescription typeDescription)
Creates a stack manipulation that represents loading a class constant onto the stack.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
MethodInvocation.IllegalInvocation.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.WithImplicitInvocationTargetType.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.OfGenericMethod.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.Invocation.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
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 |
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.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 |
MethodInvocation.IllegalInvocation.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.OfGenericMethod.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.IllegalInvocation.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.
|
StackManipulation |
MethodInvocation.OfGenericMethod.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.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
MethodInvocation.IllegalInvocation.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.WithImplicitInvocationTargetType.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.OfGenericMethod.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
MethodInvocation.Invocation.dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
Constructor and Description |
---|
DynamicInvocation(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes,
MethodDescription.InDefinedShape bootstrapMethod,
List<? extends JavaConstant> 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 and Description |
---|
DynamicInvocation(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes,
MethodDescription.InDefinedShape bootstrapMethod,
List<? extends JavaConstant> arguments)
Creates a new dynamic method invocation.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassFileVersionMatcher<T extends TypeDescription>
A matcher to consider if a class file version reaches a given boundary.
|
class |
HasSuperClassMatcher<T extends TypeDescription>
An element matcher that matches a super class.
|
class |
HasSuperTypeMatcher<T extends TypeDescription>
An element matcher that matches a super type.
|
class |
InheritedAnnotationMatcher<T extends TypeDescription>
An element matcher that matches the list of inherited annotations of a type description.
|
class |
SubTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's subtype.
|
class |
SuperTypeMatcher<T extends TypeDescription>
An element matcher that matches its argument for being another type's super type.
|
Modifier and Type | Method and Description |
---|---|
static <T extends TypeDescription> |
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> |
ElementMatchers.hasClassFileVersionAtLeast(ClassFileVersion classFileVersion)
Matches a type to have a minimal class file version.
|
static <T extends TypeDescription> |
ElementMatchers.hasClassFileVersionAtMost(ClassFileVersion classFileVersion)
Matches a type to have a maximal class file version.
|
static <T extends TypeDescription> |
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> |
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> |
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> |
ElementMatchers.hasSuperType(ElementMatcher<? super TypeDescription> matcher)
Matches any type description that declares a super type that matches the provided matcher.
|
static <T extends TypeDescription> |
ElementMatchers.inheritsAnnotation(Class<?> type)
Matches any annotations by their type on a type that declared these annotations or inherited them from its
super classes.
|
static <T extends TypeDescription> |
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> |
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> |
ElementMatchers.isAnnotation()
Matches a
TypeDescription that is an annotation type. |
static <T extends TypeDescription> |
ElementMatchers.isInterface()
Matches a
TypeDescription that is an interface. |
static <T extends TypeDescription> |
ElementMatchers.isSubTypeOf(Class<?> type)
Matches any type description that is a subtype of the given type.
|
static <T extends TypeDescription> |
ElementMatchers.isSubTypeOf(TypeDescription type)
Matches any type description that is a subtype of the given type.
|
static <T extends TypeDescription> |
ElementMatchers.isSuperTypeOf(Class<?> type)
Matches any type description that is a super type of the given type.
|
static <T extends TypeDescription> |
ElementMatchers.isSuperTypeOf(TypeDescription type)
Matches any type description that is a super type of the given type.
|
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotationDescription> |
ElementMatchers.annotationType(TypeDescription type)
Matches if an annotation is of a given type.
|
static <T extends MethodDescription> |
ElementMatchers.canThrow(TypeDescription exceptionType)
Matches a
MethodDescription by its capability to throw a given
checked exception. |
static <T extends MethodDescription> |
ElementMatchers.declaresException(TypeDescription exceptionType)
Matches a method that declares the given generic exception type as a (erased) exception type.
|
static <T extends TypeDescription.Generic> |
ElementMatchers.erasure(TypeDescription type)
Matches a generic type's erasure against the provided type.
|
static <T extends Iterable<? extends TypeDescription.Generic>> |
ElementMatchers.erasures(TypeDescription... type)
Matches an iteration of generic types' erasures against the provided types.
|
static <T extends FieldDescription> |
ElementMatchers.fieldType(TypeDescription fieldType)
Matches a field's raw type against the provided matcher.
|
static <T extends TypeDescription> |
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> |
ElementMatchers.isAccessibleTo(TypeDescription type)
Matches a
ByteCodeElement that is accessible to a given Class . |
static <T extends AnnotationSource> |
ElementMatchers.isAnnotatedWith(TypeDescription type)
Matches an
AnnotationSource for declared annotations. |
static <T extends ByteCodeElement> |
ElementMatchers.isDeclaredBy(TypeDescription type)
Matches a
ByteCodeElement for being declared by a given TypeDescription . |
static <T extends MethodDescription> |
ElementMatchers.isGetter(TypeDescription type)
Matches any Java bean getter method which returns the given type.
|
static <T extends MethodDescription> |
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> |
ElementMatchers.isSetter(TypeDescription type)
Matches any Java bean setter method which takes an argument the given type.
|
static <T extends TypeDescription> |
ElementMatchers.isSubTypeOf(TypeDescription type)
Matches any type description that is a subtype of the given type.
|
static <T extends TypeDescription> |
ElementMatchers.isSuperTypeOf(TypeDescription type)
Matches any type description that is a super type of the given type.
|
static <T extends ByteCodeElement> |
ElementMatchers.isVisibleTo(TypeDescription type)
Matches a
ByteCodeElement that is visible to a given TypeDescription . |
ElementMatcher<? super T> |
LatentMatcher.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 S> |
LatentMatcher.Resolved.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 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.
|
static <T extends MethodDescription> |
ElementMatchers.returns(TypeDescription type)
Matches
MethodDescription s that return a given erasure type. |
static <T extends MethodDescription> |
ElementMatchers.takesArgument(int index,
TypeDescription type)
Matches
MethodDescription s that define a given type erasure as a parameter at the given index. |
static <T extends MethodDescription> |
ElementMatchers.takesArguments(TypeDescription... type)
Matches a method description that takes the provided raw arguments.
|
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotationDescription> |
ElementMatchers.annotationType(ElementMatcher<? super TypeDescription> matcher)
Matches if an annotation's type matches the supplied matcher.
|
static <T extends TypeDescription.Generic> |
ElementMatchers.erasure(ElementMatcher<? super TypeDescription> matcher)
Converts a matcher for a type description into a matcher for the matched type's erasure.
|
static <T extends Iterable<? extends TypeDescription.Generic>> |
ElementMatchers.erasures(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher)
Applies the provided matchers to an iteration og generic types' erasures.
|
static <T extends Iterable<? extends TypeDescription.Generic>> |
ElementMatchers.erasures(Iterable<? extends TypeDescription> types)
Matches an iteration of generic types' erasures against the provided types.
|
static <T extends FieldDescription> |
ElementMatchers.fieldType(ElementMatcher<? super TypeDescription> matcher)
Matches a field's raw type against the provided matcher.
|
static <T extends TypeDescription> |
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> |
ElementMatchers.hasSuperType(ElementMatcher<? super TypeDescription> matcher)
Matches any type description that declares a super type that matches the provided matcher.
|
static <T extends ParameterDescription> |
ElementMatchers.hasType(ElementMatcher<? super TypeDescription> matcher)
Matches a parameter's type by the given matcher.
|
static <T extends TypeDescription> |
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> |
ElementMatchers.isAnnotatedWith(ElementMatcher<? super TypeDescription> matcher)
Matches an
AnnotationSource for declared annotations. |
static <T extends ByteCodeElement> |
ElementMatchers.isDeclaredBy(ElementMatcher<? super TypeDescription> matcher)
Matches a
ByteCodeElement for being declared by a TypeDescription that is matched by the given matcher. |
static <T extends MethodDescription> |
ElementMatchers.isGetter(ElementMatcher<? super TypeDescription> matcher)
Matches any Java bean getter method which returns a value with a type matches the supplied matcher.
|
static <T extends MethodDescription> |
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> |
ElementMatchers.isSetter(ElementMatcher<? super TypeDescription> matcher)
Matches any Java bean setter method which takes an argument that matches the supplied matcher.
|
static <T extends ClassLoader> |
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> |
ElementMatchers.returns(ElementMatcher<? super TypeDescription> matcher)
Matches a method's return type's erasure by the given matcher.
|
static <T extends MethodDescription> |
ElementMatchers.takesArgument(int index,
ElementMatcher<? super TypeDescription> matcher)
Matches
MethodDescription s that define a type erasure as a parameter at the given index that matches the supplied matcher. |
static <T extends MethodDescription> |
ElementMatchers.takesArguments(ElementMatcher<? super Iterable<? extends TypeDescription>> matchers)
Matches a
MethodDescription by applying an iterable collection of element matcher on any parameter's TypeDescription . |
static <T extends MethodDescription> |
ElementMatchers.takesArguments(Iterable<? extends TypeDescription> types)
Matches a method description that takes the provided raw arguments.
|
Constructor and 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 given
typeDescription . |
SuperTypeMatcher(TypeDescription typeDescription)
Creates a new matcher for matching its input for being a super type of the given
typeDescription . |
VisibilityMatcher(TypeDescription typeDescription)
Creates a matcher that validates that a byte code element can be seen by a given type.
|
Constructor and Description |
---|
AnnotationTypeMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new matcher for an annotation description's type.
|
CollectionErasureMatcher(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher)
Creates a new raw type matcher.
|
ErasureMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new raw type matcher.
|
InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new instance type matcher.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.Default.LazyTypeDescription
A type description that looks up any referenced
ByteCodeElement or
AnnotationDescription 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.
|
Modifier and Type | Field and Description |
---|---|
protected static Map<String,TypeDescription> |
TypePool.AbstractBase.PRIMITIVE_TYPES
A map of primitive types by their name.
|
Modifier and Type | Method and Description |
---|---|
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.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType.asErasure()
Returns the erasure of this type.
|
TypeDescription |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType.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.LazyTypeList.get(int index) |
TypeDescription |
TypePool.Default.LazyTypeDescription.LazyNestMemberList.get(int index) |
TypeDescription |
TypePool.Default.LazyTypeDescription.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 or
null if no such type exists. |
TypeDescription |
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained.getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
TypeDescription |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinType.getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
TypeDescription |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod.getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
TypeDescription |
TypePool.Default.LazyTypeDescription.getNestHost()
Returns the nest host of this type.
|
TypeDescription |
TypePool.Resolution.resolve()
Resolves this resolution to a
TypeDescription . |
TypeDescription |
TypePool.Resolution.Simple.resolve()
Resolves this resolution to a
TypeDescription . |
TypeDescription |
TypePool.Resolution.Illegal.resolve()
Resolves this resolution to a
TypeDescription . |
TypeDescription |
TypePool.AbstractBase.ArrayTypeResolution.resolve()
Resolves this resolution to a
TypeDescription . |
TypeDescription |
TypePool.Default.WithLazyResolution.LazyResolution.resolve()
Resolves this resolution to a
TypeDescription . |
TypeDescription |
TypePool.LazyFacade.LazyResolution.resolve()
Resolves this resolution to a
TypeDescription . |
protected static TypeDescription |
TypePool.Default.LazyTypeDescription.TokenizedGenericType.toErasure(TypePool typePool,
String descriptor)
Creates a type description from a descriptor by looking up the corresponding type.
|
protected TypeDescription |
TypePool.Default.TypeExtractor.toTypeDescription()
Creates a type description from all data that is currently collected.
|
Modifier and Type | Method and Description |
---|---|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
static TypePool |
TypePool.Explicit.wrap(TypeDescription instrumentedType,
List<? extends DynamicType> auxiliaryTypes,
TypePool typePool)
Wraps another type pool for an instrumented type and its auxiliary types.
|
Constructor and Description |
---|
LazyNestMemberList(TypeDescription typeDescription,
TypePool typePool,
List<String> nestMembers)
Creates a new lazy type list of all nest members of this group.
|
LazyPrimitiveType(TypePool typePool,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription typeDescription)
Creates a new lazy primitive type.
|
RawAnnotatedType(TypePool typePool,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription typeDescription)
Creates a new raw annotated type.
|
Simple(TypeDescription typeDescription)
Creates a new successful resolution of a given type description.
|
Constructor and Description |
---|
Explicit(Map<String,TypeDescription> types)
Creates a new explicit type pool without a parent.
|
Explicit(TypePool parent,
Map<String,TypeDescription> types)
Creates a new explicit type pool.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
JavaType.LatentTypeWithSimpleName
A latent type that resolves the simple name without considering the declaring type which is not normally available.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
JavaConstant.MethodHandle.getOwnerType()
Returns the owner type of this instance.
|
TypeDescription |
JavaConstant.MethodType.getReturnType()
Returns the return type of this method type.
|
TypeDescription |
JavaConstant.MethodHandle.getReturnType()
Returns the return type represented by this instance.
|
TypeDescription |
JavaConstant.Simple.getTypeDescription()
Returns a description of the type of this constant.
|
TypeDescription |
JavaConstant.MethodType.getTypeDescription()
Returns a description of the type of this constant.
|
TypeDescription |
JavaConstant.MethodHandle.getTypeDescription()
Returns a description of the type of this constant.
|
TypeDescription |
JavaConstant.Dynamic.getTypeDescription()
Returns a description of the type of this constant.
|
TypeDescription |
ConstantValue.getTypeDescription()
Returns a description of the type of this constant.
|
TypeDescription |
ConstantValue.Simple.getTypeDescription()
Returns a description of the type of this constant.
|
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 a
TypeDescription . |
Modifier and Type | Method and Description |
---|---|
static JavaConstant |
JavaConstant.Simple.of(TypeDescription typeDescription)
Returns a Java constant representation for a
TypeDescription . |
static JavaConstant.MethodType |
JavaConstant.MethodType.of(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(TypeDescription returnType,
TypeDescription... parameterType)
Returns a method type description of the given return type and parameter types.
|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(TypeDescription returnType,
TypeDescription... parameterType)
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 a
Class 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 this
JavaConstant.Dynamic constant to resolve the returned instance to the supplied type. |
Modifier and Type | Method and Description |
---|---|
static JavaConstant.MethodType |
JavaConstant.MethodType.of(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Returns a method type description of the given return type and parameter types.
|
T |
JavaConstant.Visitor.onType(JavaConstant.Simple<TypeDescription> constant)
Invoked on a
JavaConstant.Simple constant that represents a TypeDescription . |
JavaConstant |
JavaConstant.Visitor.NoOp.onType(JavaConstant.Simple<TypeDescription> constant)
Invoked on a
JavaConstant.Simple constant that represents a TypeDescription . |
Constructor and Description |
---|
Dynamic(String name,
TypeDescription typeDescription,
JavaConstant.MethodHandle bootstrap,
List<JavaConstant> arguments)
Creates a dynamic resolved constant.
|
MethodHandle(JavaConstant.MethodHandle.HandleType handleType,
TypeDescription ownerType,
String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a method handle representation.
|
MethodType(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a method type for the given types.
|
OfTrivialValue(S value,
TypeDescription typeDescription)
Creates a representation of a trivial constant that represents itself.
|
OfTypeDescription(TypeDescription value)
Creates a type constant.
|
Simple(StackManipulation stackManipulation,
TypeDescription typeDescription)
Creates a simple constant value.
|
Simple(T value,
TypeDescription typeDescription)
Creates a simple Java constant.
|
Constructor and Description |
---|
MethodHandle(JavaConstant.MethodHandle.HandleType handleType,
TypeDescription ownerType,
String name,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a method handle representation.
|
MethodType(TypeDescription returnType,
List<? extends TypeDescription> parameterTypes)
Creates a method type for the given types.
|
Copyright © 2014–2023. All rights reserved.