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.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
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.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.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.
|
Modifier and Type | Method and Description |
---|---|
<T> DynamicType.Builder<T> |
ByteBuddy.decorate(Class<T> type)
Decorates a type with
AsmVisitorWrapper and allows adding attributes and annotations. |
<T> DynamicType.Builder<T> |
ByteBuddy.decorate(Class<T> type,
ClassFileLocator classFileLocator)
Decorates a type with
AsmVisitorWrapper and allows adding attributes and annotations. |
<T> DynamicType.Builder<T> |
ByteBuddy.decorate(TypeDescription type,
ClassFileLocator classFileLocator)
Decorates a type with
AsmVisitorWrapper and allows adding attributes and annotations. |
DynamicType.Builder<? extends Annotation> |
ByteBuddy.makeAnnotation()
Creates a new
Annotation type. |
DynamicType.Builder<? extends Enum<?>> |
ByteBuddy.makeEnumeration(Collection<? extends String> values)
Creates a new
Enum type. |
DynamicType.Builder<? extends Enum<?>> |
ByteBuddy.makeEnumeration(String... value)
Creates a new
Enum type. |
DynamicType.Builder<?> |
ByteBuddy.makeInterface()
Creates a new, plain interface type.
|
<T> DynamicType.Builder<T> |
ByteBuddy.makeInterface(Class<T> interfaceType)
Creates a new interface type that extends the provided interface.
|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(Collection<? extends TypeDefinition> interfaceTypes)
Creates a new interface type that extends the provided interface.
|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(List<? extends Type> interfaceTypes)
Creates a new interface type that extends the provided interface.
|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(Type... interfaceType)
Creates a new interface type that extends the provided interface.
|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(TypeDefinition... interfaceType)
Creates a new interface type that extends the provided interface.
|
DynamicType.Builder<?> |
ByteBuddy.makePackage(String name)
Creates a new package definition.
|
<T> DynamicType.Builder<T> |
ByteBuddy.rebase(Class<T> type)
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(Class<T> 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(Class<T> 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.
|
DynamicType.Builder<?> |
ByteBuddy.rebase(Package aPackage,
ClassFileLocator classFileLocator)
Rebases a package.
|
DynamicType.Builder<?> |
ByteBuddy.rebase(PackageDescription aPackage,
ClassFileLocator classFileLocator)
Rebases a package.
|
<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.
|
<T> DynamicType.Builder<T> |
ByteBuddy.redefine(Class<T> type)
Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced
by the new implementation.
|
<T> DynamicType.Builder<T> |
ByteBuddy.redefine(Class<T> 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.
|
<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.
|
<T> DynamicType.Builder<T> |
ByteBuddy.subclass(Class<T> superType)
Creates a new builder for subclassing the provided type.
|
<T> DynamicType.Builder<T> |
ByteBuddy.subclass(Class<T> superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(Type superType)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(Type superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(TypeDefinition superType)
Creates a new builder for subclassing the provided type.
|
DynamicType.Builder<?> |
ByteBuddy.subclass(TypeDefinition superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.Dispatcher.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.NoOp.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.Minimal.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
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.
|
DynamicType.Builder<?> |
AgentBuilder.Transformer.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.NoOp.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForBuildPlugin.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForAdvice.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.Compound.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.Dispatcher.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.NoOp.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.Minimal.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.apply(DynamicType.Builder<?> builder)
Transforms the instrumented type to implement an appropriate initialization strategy.
|
DynamicType.Builder<?> |
AgentBuilder.Transformer.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.NoOp.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForBuildPlugin.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.ForAdvice.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> |
AgentBuilder.Transformer.Compound.transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder . |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
ToStringPlugin.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<?> |
Plugin.Compound.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<?> |
CachedReturnPlugin.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.
|
DynamicType.Builder<?> |
EntryPoint.transform(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Applies a transformation.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
ToStringPlugin.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<?> |
Plugin.Compound.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<?> |
CachedReturnPlugin.apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
DynamicType.Builder.FieldDefinition.Optional<U>
A builder for an optional field definition.
|
static interface |
DynamicType.Builder.FieldDefinition.Optional.Valuable<V>
A builder for an optional field definition that allows for defining a value.
|
static interface |
DynamicType.Builder.InnerTypeDefinition<S>
An inner type definition for defining a type that is contained within another type, method or constructor.
|
static interface |
DynamicType.Builder.InnerTypeDefinition.ForType<U>
An inner type definition for defining a type that is contained within another type.
|
static interface |
DynamicType.Builder.MethodDefinition<S>
A builder for a method definition.
|
static interface |
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
A builder for optionally defining an implementation of a method.
|
static interface |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>
A builder for a method definition with a receiver type.
|
static interface |
DynamicType.Builder.TypeVariableDefinition<S>
A builder for a type variable definition.
|
Modifier and Type | Class and Description |
---|---|
static class |
DynamicType.Builder.AbstractBase<S>
An abstract base implementation of a dynamic type builder.
|
static class |
DynamicType.Builder.AbstractBase.Adapter<U>
An adapter implementation of a dynamic type builder.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter
An adapter for defining a new field.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter
An adapter for matching an existing field.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForMethodAdapter
An adapter for applying an inner type definition for an outer method or constructor.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter
An adapter for applying an inner type definition for an outer type.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter
An annotation adapter for a method definition.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter
An annotation adapter for implementing annotations during a method definition.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter
An adapter for optionally matching methods defined by declared interfaces.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter
An adapter for defining a new type variable for the instrumented type.
|
static class |
DynamicType.Builder.AbstractBase.Delegator<U>
A delegator for a dynamic type builder delegating all invocations to another dynamic type builder.
|
static class |
DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>
An abstract base implementation for an optional field definition.
|
static class |
DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase<U>
An abstract base implementation of an optional field definition that allows for defining a value.
|
static class |
DynamicType.Builder.MethodDefinition.AbstractBase<U>
An abstract base implementation of a method definition.
|
protected static class |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<V>
An adapter implementation of a method definition.
|
static class |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition.AbstractBase<V>
An abstract base implementation of a method definition that can accept a receiver type.
|
static class |
DynamicType.Builder.TypeVariableDefinition.AbstractBase<U>
An abstract base implementation of a type variable definition.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(Annotation... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.annotateType(Annotation... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(AnnotationDescription... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.annotateType(AnnotationDescription... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(List<? extends Annotation> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.annotateType(List<? extends Annotation> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<S> |
DynamicType.Builder.InnerTypeDefinition.asAnonymousType()
Defines this inner type declaration as an anonymous type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.asAnonymousType()
Defines this inner type declaration as an anonymous type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForMethodAdapter.asAnonymousType()
Defines this inner type declaration as an anonymous type.
|
DynamicType.Builder<U> |
DynamicType.Builder.InnerTypeDefinition.ForType.asMemberType()
Defines this inner type declaration as a member type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.asMemberType()
Defines this inner type declaration as a member type.
|
DynamicType.Builder<T> |
DynamicType.Builder.attribute(TypeAttributeAppender typeAttributeAppender)
Applies the given type attribute appender onto the instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.attribute(TypeAttributeAppender typeAttributeAppender)
Applies the given type attribute appender onto the instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.attribute(TypeAttributeAppender typeAttributeAppender)
Applies the given type attribute appender onto the instrumented type.
|
DynamicType.Builder<T> |
DynamicType.Builder.declaredTypes(Class<?>... type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.declaredTypes(Class<?>... type)
Defines this type as an the outer type of the supplied types.
|
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.declaredTypes(List<? extends Class<?>> types)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.declaredTypes(List<? extends Class<?>> type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<T> |
DynamicType.Builder.declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.declaredTypes(TypeDescription... type)
Defines this type as an the outer type of the supplied types.
|
DynamicType.Builder<T> |
DynamicType.Builder.ignoreAlso(ElementMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.ignoreAlso(ElementMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.ignoreAlso(ElementMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<T> |
DynamicType.Builder.ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<T> |
DynamicType.Builder.initializer(ByteCodeAppender byteCodeAppender)
Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.initializer(ByteCodeAppender byteCodeAppender)
Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.initializer(ByteCodeAppender byteCodeAppender)
Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.
|
DynamicType.Builder<T> |
DynamicType.Builder.initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.
|
protected abstract DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.materialize()
Creates a new builder that realizes the current state of the builder.
|
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForMethodAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize() |
protected DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter.materialize() |
protected abstract DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
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)
Materializes the supplied state of a dynamic type builder.
|
DynamicType.Builder<T> |
DynamicType.Builder.merge(Collection<? extends ModifierContributor.ForType> modifierContributors)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.merge(Collection<? extends ModifierContributor.ForType> modifierContributors)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.merge(Collection<? extends ModifierContributor.ForType> modifierContributors)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<T> |
DynamicType.Builder.merge(ModifierContributor.ForType... modifierContributor)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.merge(ModifierContributor.ForType... modifierContributor)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<T> |
DynamicType.Builder.modifiers(Collection<? extends ModifierContributor.ForType> modifierContributors)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.modifiers(Collection<? extends ModifierContributor.ForType> modifierContributors)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<T> |
DynamicType.Builder.modifiers(int modifiers)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.modifiers(int modifiers)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.modifiers(int modifiers)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<T> |
DynamicType.Builder.modifiers(ModifierContributor.ForType... modifierContributor)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.modifiers(ModifierContributor.ForType... modifierContributor)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<T> |
DynamicType.Builder.name(String name)
Names the dynamic type by the supplied name.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.name(String name)
Names the dynamic type by the supplied name.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.name(String name)
Names the dynamic type by the supplied name.
|
DynamicType.Builder<T> |
DynamicType.Builder.nestHost(Class<?> type)
Defines this type as a nest member of the supplied type as a nest host.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.nestHost(Class<?> type)
Defines this type as a nest member of the supplied type as a nest host.
|
DynamicType.Builder<T> |
DynamicType.Builder.nestHost(TypeDescription type)
Defines this type as a nest member of the supplied type as a nest host.
|
DynamicType.Builder<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(Class<?>... type)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.nestMembers(Class<?>... type)
Defines this type as a nest host for 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.
|
DynamicType.Builder<T> |
DynamicType.Builder.nestMembers(List<? extends Class<?>> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.nestMembers(List<? extends Class<?>> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<T> |
DynamicType.Builder.nestMembers(TypeDescription... type)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.nestMembers(TypeDescription... type)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<T> |
DynamicType.Builder.noNestMate()
Defines this type as self-hosted, i.e.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.noNestMate()
Defines this type as self-hosted, i.e.
|
DynamicType.Builder<T> |
DynamicType.Builder.require(Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.require(Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.require(Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<T> |
DynamicType.Builder.require(DynamicType... auxiliaryType)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.require(DynamicType... auxiliaryType)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<T> |
DynamicType.Builder.require(TypeDescription type,
byte[] binaryRepresentation)
Explicitly requires another dynamic type for the creation of this type.
|
DynamicType.Builder<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.
|
DynamicType.Builder<T> |
DynamicType.Builder.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.
|
DynamicType.Builder<T> |
DynamicType.Builder.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Transforms any type variable that is defined by this type if it is matched by the supplied matcher.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Transforms any type variable that is defined by this type if it is matched by the supplied matcher.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Transforms any type variable that is defined by this type if it is matched by the supplied matcher.
|
DynamicType.Builder<T> |
DynamicType.Builder.visit(AsmVisitorWrapper asmVisitorWrapper)
Applies the supplied
AsmVisitorWrapper onto the ClassVisitor during building a dynamic type. |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.visit(AsmVisitorWrapper asmVisitorWrapper)
Applies the supplied
AsmVisitorWrapper onto the ClassVisitor during building a dynamic type. |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.visit(AsmVisitorWrapper asmVisitorWrapper)
Applies the supplied
AsmVisitorWrapper onto the ClassVisitor during building a dynamic type. |
DynamicType.Builder<T> |
DynamicType.Builder.withHashCodeEquals()
Implements
Object.hashCode() and Object.equals(Object) methods for the instrumented type if those
methods are not declared as final by a super class. |
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.withHashCodeEquals()
Implements
Object.hashCode() and Object.equals(Object) methods for the instrumented type if those
methods are not declared as final by a super class. |
DynamicType.Builder<T> |
DynamicType.Builder.withToString()
Implements a
Object.toString() method for the instrumented type if such a method is not declared as final
by a super class. |
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.withToString()
Implements a
Object.toString() method for the instrumented type if such a method is not declared as final
by a super class. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractInliningDynamicTypeBuilder<T>
An abstract base implementation of a dynamic type builder that alters an existing type.
|
class |
DecoratingDynamicTypeBuilder<T>
A type builder that decorates a type by allowing for the application of attribute changes and ASM visitor wrappers.
|
class |
RebaseDynamicTypeBuilder<T>
A type builder that rebases an instrumented type.
|
class |
RedefinitionDynamicTypeBuilder<T>
A type builder that redefines an instrumented type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.attribute(TypeAttributeAppender typeAttributeAppender)
Applies the given type attribute appender onto the instrumented type.
|
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.ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.initializer(ByteCodeAppender byteCodeAppender)
Executes the supplied byte code appender within the beginning of the instrumented type's type initializer.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.
|
protected DynamicType.Builder<T> |
RedefinitionDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
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) |
protected DynamicType.Builder<T> |
RebaseDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
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) |
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.merge(Collection<? extends ModifierContributor.ForType> modifierContributors)
Merges the supplied modifier contributors with the modifiers of the instrumented type and defines them as the instrumented
type's new modifiers.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.modifiers(int modifiers)
Defines the supplied modifiers as the modifiers of the instrumented type.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.name(String name)
Names the dynamic type by the supplied name.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.nestHost(TypeDescription type)
Defines this type as a nest member of the supplied type as a nest host.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.nestMembers(Collection<? extends TypeDescription> types)
Defines this type as a nest host for the supplied types.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.require(Collection<DynamicType> auxiliaryTypes)
Explicitly requires other dynamic types for the creation of this type.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.topLevelType()
Defines this type as a top-level type that is not declared by another type or enclosed by another member.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Transforms any type variable that is defined by this type if it is matched by the supplied matcher.
|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.visit(AsmVisitorWrapper asmVisitorWrapper)
Applies the supplied
AsmVisitorWrapper onto the ClassVisitor during building a dynamic type. |
Modifier and Type | Class and Description |
---|---|
class |
SubclassDynamicTypeBuilder<T>
A type builder that creates an instrumented type as a subclass, i.e.
|
Modifier and Type | Method and Description |
---|---|
protected DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.materialize(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
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) |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.Unresolved.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForGetter.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForSetter.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForGetterSetterPair.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.Unresolved.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForGetter.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForSetter.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
DynamicType.Builder<?> |
FieldProxy.Binder.FieldResolver.ForGetterSetterPair.apply(DynamicType.Builder<?> builder,
FieldDescription fieldDescription,
Assigner assigner,
MethodAccessorFactory methodAccessorFactory)
Applies this field resolver to a dynamic type.
|
Copyright © 2014–2019. All rights reserved.