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.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.matcher |
Contains an API for matching Java byte code entities.
|
Modifier and Type | Method and Description |
---|---|
ByteBuddy |
ByteBuddy.ignore(ElementMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where any
MethodDescription that matches the provided method matcher is excluded
from instrumentation. |
Modifier and Type | Method and Description |
---|---|
AgentBuilder.Transformer.ForAdvice |
AgentBuilder.Transformer.ForAdvice.advice(ElementMatcher<? super MethodDescription> matcher,
String name)
Applies the given advice class onto all methods that satisfy the supplied matcher.
|
AgentBuilder.Transformer.ForAdvice |
AgentBuilder.Transformer.ForAdvice.advice(ElementMatcher<? super MethodDescription> matcher,
String enter,
String exit)
Applies the given advice class onto all methods that satisfy the supplied matcher.
|
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.Matchable.AbstractBase.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.
|
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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.
|
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.
|
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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.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.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.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.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.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.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.
|
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.
|
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.Matchable.AbstractBase.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.
|
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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.
|
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.
|
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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.Matchable.AbstractBase.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.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.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.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.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.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.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. |
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. |
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. |
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
Constructor and Description |
---|
Enabled(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Creates a new enabled resubmission strategy.
|
Enabled(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Creates a new enabled resubmission strategy.
|
Filtering(ElementMatcher<? super String> matcher,
AgentBuilder.Listener delegate)
Creates a new filtering listener.
|
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)
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. |
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. |
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(ElementMatcher<? super TypeDescription>... matcher)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.
|
ResubmissionInstallationListener(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
Instrumentation instrumentation,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.CircularityLock circularityLock,
AgentBuilder.RawMatcher matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener,
ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,Set<String>> types)
Creates a new resubmission job.
|
ResubmissionListener(ElementMatcher<? super Throwable> matcher,
ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,Set<String>> types) |
Constructor and Description |
---|
ForMatchedGrouping(Collection<? extends ElementMatcher<? super TypeDescription>> matchers)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
AsmVisitorWrapper.ForDeclaredFields.Entry
An entry describing a field visitor wrapper paired with a matcher for fields to be wrapped.
|
protected static class |
AsmVisitorWrapper.ForDeclaredMethods.Entry
An entry describing a method visitor wrapper paired with a matcher for fields to be wrapped.
|
protected static class |
ModifierAdjustment.Adjustment<T>
A description of a conditional adjustment.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.WithoutSpecification |
MemberSubstitution.constructor(ElementMatcher<? super MethodDescription> matcher)
Substitutes any constructor invocation that matches the given matcher.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.constructor(ElementMatcher<? super MethodDescription> matcher,
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper)
Defines a new method visitor wrapper to be applied on any constructor if the given method matcher is matched.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.constructor(ElementMatcher<? super MethodDescription> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers)
Defines a new method visitor wrapper to be applied on any constructor if the given method matcher is matched.
|
MemberSubstitution.WithoutSpecification |
MemberSubstitution.element(ElementMatcher<? super ByteCodeElement> matcher)
Substitutes any interaction with a field or method that matches the given matcher.
|
MemberSubstitution.WithoutSpecification.ForMatchedField |
MemberSubstitution.field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Substitutes any field access that matches the given matcher.
|
AsmVisitorWrapper.ForDeclaredFields |
AsmVisitorWrapper.ForDeclaredFields.field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper... fieldVisitorWrapper)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
AsmVisitorWrapper.ForDeclaredFields |
AsmVisitorWrapper.ForDeclaredFields.field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
TypeReferenceAdjustment |
TypeReferenceAdjustment.filter(ElementMatcher<? super TypeDescription> filter)
Excludes all matched types from being added as an attribute.
|
MemberSubstitution.WithoutSpecification |
MemberSubstitution.invokable(ElementMatcher<? super MethodDescription> matcher)
Substitutes any method or constructor invocation that matches the given matcher.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.invokable(ElementMatcher<? super MethodDescription> matcher,
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper)
Defines a new method visitor wrapper to be applied on any method or constructor if the given method matcher is matched.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.invokable(ElementMatcher<? super MethodDescription> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers)
Defines a new method visitor wrapper to be applied on any method or constructor if the given method matcher is matched.
|
MemberSubstitution.WithoutSpecification.ForMatchedMethod |
MemberSubstitution.method(ElementMatcher<? super MethodDescription> matcher)
Substitutes any method invocation that matches the given matcher.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.method(ElementMatcher<? super MethodDescription> matcher,
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper... methodVisitorWrapper)
Defines a new method visitor wrapper to be applied on any method if the given method matcher is matched.
|
AsmVisitorWrapper.ForDeclaredMethods |
AsmVisitorWrapper.ForDeclaredMethods.method(ElementMatcher<? super MethodDescription> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers)
Defines a new method visitor wrapper to be applied on any method if the given method matcher is matched.
|
protected static MemberSubstitution.Replacement.Factory |
MemberSubstitution.Replacement.ForElementMatchers.Factory.of(ElementMatcher<? super ByteCodeElement> matcher,
MemberSubstitution.Substitution.Factory factory)
Creates a factory for applying a substitution on all matched byte code elements for all access types.
|
protected static MemberSubstitution.Replacement.Factory |
MemberSubstitution.Replacement.ForElementMatchers.Factory.ofField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
boolean matchFieldRead,
boolean matchFieldWrite,
MemberSubstitution.Substitution.Factory factory)
Creates a factory that only matches field access for given access types.
|
protected static MemberSubstitution.Replacement.Factory |
MemberSubstitution.Replacement.ForElementMatchers.Factory.ofMethod(ElementMatcher<? super MethodDescription> matcher,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Factory factory)
Creates a factory that only matches method and constructor invocations for given invocation types.
|
AsmVisitorWrapper |
MemberAttributeExtension.ForField.on(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Applies this attribute extension on any field that matches the supplied matcher.
|
AsmVisitorWrapper.ForDeclaredMethods |
MemberSubstitution.on(ElementMatcher<? super MethodDescription> matcher)
Applies this member substitution to any method that matches the supplied matcher.
|
AsmVisitorWrapper |
MemberAttributeExtension.ForMethod.on(ElementMatcher<? super MethodDescription> matcher)
Applies this attribute extension on any method or constructor that matches the supplied matcher.
|
AsmVisitorWrapper.ForDeclaredMethods |
Advice.on(ElementMatcher<? super MethodDescription> matcher)
Returns an ASM visitor wrapper that matches the given matcher and applies this advice to the matched methods.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.replaceWithField(ElementMatcher<? super FieldDescription> matcher)
Replaces any interaction with a matched byte code element with a non-static field access on the first
parameter of the matched element.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.replaceWithMethod(ElementMatcher<? super MethodDescription> matcher)
Replaces any interaction with a matched byte code element with a non-static method access on the first
parameter of the matched element.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.replaceWithMethod(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Replaces any interaction with a matched byte code element with a non-static method access on the first
parameter of the matched element.
|
MemberRemoval |
MemberRemoval.stripConstructors(ElementMatcher<? super MethodDescription> matcher)
Specifies that any constructor that matches the specified matcher should be removed.
|
MemberRemoval |
MemberRemoval.stripFields(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Specifies that any field that matches the specified matcher should be removed.
|
MemberRemoval |
MemberRemoval.stripInvokables(ElementMatcher<? super MethodDescription> matcher)
Specifies that any method or constructor that matches the specified matcher should be removed.
|
MemberRemoval |
MemberRemoval.stripMethods(ElementMatcher<? super MethodDescription> matcher)
Specifies that any method that matches the specified matcher should be removed.
|
ModifierAdjustment |
ModifierAdjustment.withConstructorModifiers(ElementMatcher<? super MethodDescription> matcher,
List<? extends ModifierContributor.ForMethod> modifierContributors)
Adjusts a constructor's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withConstructorModifiers(ElementMatcher<? super MethodDescription> matcher,
ModifierContributor.ForMethod... modifierContributor)
Adjusts a constructor's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends ModifierContributor.ForField> modifierContributors)
Adjusts a field's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
ModifierContributor.ForField... modifierContributor)
Adjusts a field's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withInvokableModifiers(ElementMatcher<? super MethodDescription> matcher,
List<? extends ModifierContributor.ForMethod> modifierContributors)
Adjusts a method's or constructor's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withInvokableModifiers(ElementMatcher<? super MethodDescription> matcher,
ModifierContributor.ForMethod... modifierContributor)
Adjusts a method's or constructor's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withMethodModifiers(ElementMatcher<? super MethodDescription> matcher,
List<? extends ModifierContributor.ForMethod> modifierContributors)
Adjusts a method's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withMethodModifiers(ElementMatcher<? super MethodDescription> matcher,
ModifierContributor.ForMethod... modifierContributor)
Adjusts a method's modifiers if it fulfills the supplied matcher.
|
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 |
---|
Adjustment(ElementMatcher<? super T> matcher,
ModifierContributor.Resolver<?> resolver)
Creates a new adjustment.
|
Entry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
Creates a new entry.
|
Entry(ElementMatcher<? super MethodDescription> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers)
Creates a new entry.
|
Factory(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Factory substitutionFactory)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
Factory(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Factory substitutionFactory)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
ForElementMatcher(TypeDescription instrumentedType,
ElementMatcher<? super FieldDescription> matcher)
Creates a new field resolver that locates a field on the receiver type using a matcher.
|
ForElementMatchers(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution substitution)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
ForElementMatchers(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution substitution)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
ForMatchedByteCodeElement(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super ByteCodeElement> matcher)
Creates a new member substitution for a matched byte code element that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
boolean matchRead,
boolean matchWrite)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super MethodDescription> matcher)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Replacement.Factory replacementFactory,
ElementMatcher<? super MethodDescription> matcher,
boolean includeVirtualCalls,
boolean includeSuperCalls)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
Matching(TypeDescription instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
ElementMatcher<? super MethodDescription> matcher)
Creates a new matching method resolver.
|
OfMatchedField(ElementMatcher<? super FieldDescription> matcher)
Creates a new substitution factory that locates a field by applying a matcher on the receiver type.
|
OfMatchedMethod(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a factory for a substitution that locates a method on the receiver type.
|
TypeReferenceClassVisitor(ClassVisitor classVisitor,
boolean strict,
ElementMatcher<? super TypeDescription> filter,
TypePool typePool)
Creates a type reference class visitor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Plugin
A plugin that allows for the application of Byte Buddy transformations during a build process.
|
static interface |
Plugin.WithPreprocessor
A plugin that applies a preprocessor, i.e.
|
Modifier and Type | Class and Description |
---|---|
class |
CachedReturnPlugin
A plugin that caches the return value of a method in a synthetic field.
|
class |
HashCodeAndEqualsPlugin
A build tool plugin that adds
Object.hashCode() and Object.equals(Object) methods to a class if the
HashCodeAndEqualsPlugin.Enhance annotation is present and no explicit method declaration was added. |
protected static class |
HashCodeAndEqualsPlugin.ValueMatcher
An element matcher for a
HashCodeAndEqualsPlugin.ValueHandling annotation. |
static class |
HashCodeAndEqualsPlugin.WithNonNullableFields
A version of the
HashCodeAndEqualsPlugin that assumes that all fields are non-nullable unless they are explicitly marked. |
static class |
Plugin.ForElementMatcher
An abstract base for a
Plugin that matches types by a given ElementMatcher . |
static class |
Plugin.NoOp
A non-operational plugin that does not instrument any type.
|
class |
ToStringPlugin
A build tool plugin that adds a
Object.toString() and method to a class if the ToStringPlugin.Enhance annotation is present and no
explicit method declaration was added. |
Modifier and Type | Method and Description |
---|---|
protected ElementMatcher<FieldDescription> |
HashCodeAndEqualsPlugin.nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.
|
protected ElementMatcher<FieldDescription> |
HashCodeAndEqualsPlugin.WithNonNullableFields.nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.
|
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.
|
protected ElementMatcher<FieldDescription> |
HashCodeAndEqualsPlugin.nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.
|
protected ElementMatcher<FieldDescription> |
HashCodeAndEqualsPlugin.WithNonNullableFields.nonNullable(ElementMatcher<FieldDescription> matcher)
Resolves the matcher to identify non-nullable fields.
|
Constructor and Description |
---|
ForElementMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new plugin that matches types using an element matcher.
|
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 |
---|---|
AnnotationList |
AnnotationList.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
AnnotationList |
AnnotationList.AbstractBase.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
AnnotationList |
AnnotationList.Empty.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Constructor and Description |
---|
ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a visitor for detaching a type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ImplementationDefinition<T> |
DynamicType.Builder.constructor(ElementMatcher<? super MethodDescription> matcher)
Matches a constructor that is already declared by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition<S> |
DynamicType.Builder.AbstractBase.constructor(ElementMatcher<? super MethodDescription> matcher)
Matches a constructor that is already declared by the instrumented type.
|
DynamicType.Builder.FieldDefinition.Valuable<T> |
DynamicType.Builder.field(ElementMatcher<? super FieldDescription> matcher)
Matches a field that is already declared by the instrumented type.
|
DynamicType.Builder.FieldDefinition.Valuable<S> |
DynamicType.Builder.AbstractBase.field(ElementMatcher<? super FieldDescription> matcher)
Matches a field that is already declared by the instrumented type.
|
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.MethodDefinition.ImplementationDefinition<T> |
DynamicType.Builder.invokable(ElementMatcher<? super MethodDescription> matcher)
Matches a method or constructor that is already declared or inherited by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition<S> |
DynamicType.Builder.AbstractBase.invokable(ElementMatcher<? super MethodDescription> matcher)
Matches a method or constructor that is already declared or inherited by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition<T> |
DynamicType.Builder.method(ElementMatcher<? super MethodDescription> matcher)
Matches a method that is already declared or inherited by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition<S> |
DynamicType.Builder.AbstractBase.method(ElementMatcher<? super MethodDescription> matcher)
Matches a method that is already declared or inherited by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<T> |
DynamicType.Builder.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<S> |
DynamicType.Builder.AbstractBase.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<U> |
DynamicType.Builder.AbstractBase.Delegator.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
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.
|
Modifier and Type | Method and Description |
---|---|
MultipleParentClassLoader.Builder |
MultipleParentClassLoader.Builder.filter(ElementMatcher<? super ClassLoader> matcher)
Only retains all class loaders that match the given matcher.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
FieldRegistry.Default.Compiled.Entry
An entry of a compiled field registry.
|
protected static class |
RecordComponentRegistry.Default.Compiled.Entry
An entry of a compiled record component registry.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyze(TypeDefinition typeDefinition,
TypeDefinition key,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if the end of the type hierarchy was reached.
|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyzeNullable(TypeDescription.Generic typeDescription,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description.
|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.doAnalyze(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if it is already presented in the key store.
|
protected abstract FieldList<?> |
FieldLocator.AbstractBase.locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.
|
protected FieldList<?> |
FieldLocator.ForExactType.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForClassHierarchy.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForTopLevelType.locate(ElementMatcher<? super FieldDescription> matcher) |
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Applies a transformation onto all existing type variables of this instrumented type.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Applies a transformation onto all existing type variables of this instrumented type.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Applies a transformation onto all existing type variables of this instrumented type.
|
Constructor and Description |
---|
Entry(ElementMatcher<? super FieldDescription> matcher,
FieldAttributeAppender fieldAttributeAppender,
Object defaultValue,
Transformer<FieldDescription> transformer)
Creates a new entry.
|
Entry(ElementMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
RebaseDynamicTypeBuilder.RebaseableMatcher
A matcher that filters any method that should not be rebased, i.e.
|
Modifier and Type | Method and Description |
---|---|
protected static ElementMatcher<MethodDescription.Token> |
RebaseDynamicTypeBuilder.RebaseableMatcher.of(TypeDescription instrumentedType,
MethodList<?> instrumentedMethods)
Returns a matcher that filters any method that should not be rebased.
|
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.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.
|
Constructor and Description |
---|
InliningImplementationMatcher(LatentMatcher<? super MethodDescription> ignoredMethods,
ElementMatcher<? super MethodDescription> predefinedMethodSignatures)
Creates a new inline implementation matcher.
|
Modifier and Type | Method and Description |
---|---|
ElementMatcher<? super MethodDescription> |
SubclassDynamicTypeBuilder.InstrumentableMatcher.resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
Constructor and Description |
---|
ForDefaultConstructor(ElementMatcher<? super MethodDescription> elementMatcher)
Creates a constructor strategy for invoking a super constructor with default arguments.
|
ForDefaultConstructor(ElementMatcher<? super MethodDescription> elementMatcher,
MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Creates a constructor strategy for invoking a super constructor with default arguments.
|
Modifier and Type | Field and Description |
---|---|
protected ElementMatcher<? super MethodDescription> |
MethodDelegation.ImplementationDelegate.ForField.matcher
The matcher to use for filtering methods.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation.WithCustomProperties |
MethodDelegation.WithCustomProperties.filter(ElementMatcher<? super MethodDescription> matcher)
Configures this method delegation to only consider methods or constructors as a delegation target if they match the supplied matcher.
|
static MethodCall.WithoutSpecifiedTarget |
MethodCall.invoke(ElementMatcher<? super MethodDescription> matcher)
Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.
|
static MethodCall.WithoutSpecifiedTarget |
MethodCall.invoke(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.
|
MethodCall.FieldSetting |
MethodCall.setsField(ElementMatcher<? super FieldDescription> matcher)
Sets the result of the method call as a value of the specified field.
|
ToStringMethod |
ToStringMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this toString method implementation that ignores the specified fields additionally to any
previously specified fields.
|
HashCodeMethod |
HashCodeMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this hash code method implementation that ignores the specified fields additionally to any
previously specified fields.
|
EqualsMethod |
EqualsMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this equals method implementation that ignores the specified fields additionally to any
previously specified fields.
|
HashCodeMethod |
HashCodeMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Returns a new version of this hash code method implementation that does not apply a
null value check for the specified fields
if they have a reference type additionally to any previously specified fields. |
EqualsMethod |
EqualsMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Returns a new version of this equals method implementation that does not apply a
null value check for the specified fields
if they have a reference type additionally to any previously specified fields. |
Constructor and Description |
---|
Appender(StackManipulation initialValue,
int multiplier,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender for implementing a hash code method.
|
Appender(TypeDescription instrumentedType,
StackManipulation baseline,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender.
|
Factory(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a factory for a method locator that identifies a method using a matcher.
|
ForElementMatcher(TypeDescription instrumentedType,
ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a new method locator for an element matcher.
|
ForField(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a field delegation.
|
ForMethodReturn(String name,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a method return value delegation.
|
Implicit(ElementMatcher<? super FieldDescription> matcher)
Creates a factory for a field-setting termination handler.
|
WithInstance(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
Object target,
TypeDescription.Generic fieldType)
Creates a new implementation delegate for invoking methods on a supplied instance.
|
WithLookup(String fieldName,
MethodGraph.Compiler methodGraphCompiler,
List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher,
FieldLocator.Factory fieldLocatorFactory)
Creates a new implementation delegate for a field that is declared by the instrumented type or any super type.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
ElementMatcher.Junction<S>
A junctions allows to chain different
ElementMatcher s in a readable manner. |
Modifier and Type | Class and Description |
---|---|
class |
AccessibilityMatcher<T extends ByteCodeElement>
An element matcher that validates that a given byte code element is accessible to a given type.
|
class |
AnnotationTargetMatcher<T extends AnnotationDescription>
A matcher for annotations that target a given element type.
|
class |
AnnotationTypeMatcher<T extends AnnotationDescription>
An element matcher that matches the type of an annotation description.
|
class |
ArrayTypeMatcher<T extends TypeDefinition>
Matches an enumeration type.
|
class |
BooleanMatcher<T>
An element matcher that returns a fixed result.
|
class |
CachingMatcher<T>
A matcher that remembers the results of previously matching an equal target.
|
static class |
CachingMatcher.WithInlineEviction<S>
A caching matcher with inline cache eviction.
|
class |
ClassLoaderHierarchyMatcher<T extends ClassLoader>
An element matcher that matches all
ClassLoader s in the matched class loaders hierarchy
against a given matcher. |
class |
ClassLoaderParentMatcher<T extends ClassLoader>
An element matcher that matches a class loader for being a parent of the given class loader.
|
class |
CollectionElementMatcher<T>
A matcher that matches a given element of a collection.
|
class |
CollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>>
An element matcher that matches a collection of types by their erasures.
|
class |
CollectionItemMatcher<T>
A list item matcher matches any element of a collection to a given matcher and assures that at least one
element matches the supplied iterable condition.
|
class |
CollectionOneToOneMatcher<T>
An element matcher that matches a given iterable collection to a list of matchers on a per-element basis.
|
class |
CollectionSizeMatcher<T extends Iterable<?>>
An element matcher that matches a collection by its size.
|
class |
DeclaringAnnotationMatcher<T extends AnnotationSource>
An element matcher that matches the list of annotations that are provided by an annotated element.
|
class |
DeclaringFieldMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares fields of a given property.
|
class |
DeclaringMethodMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares methods of a given property.
|
class |
DeclaringTypeMatcher<T extends DeclaredByType>
An element matcher that matches the declaring type of another element, only if this element is actually declared
in a type.
|
class |
DefinedShapeMatcher<T extends ByteCodeElement.TypeDependant<S,?>,S extends ByteCodeElement.TypeDependant<?,?>>
An element matcher that matches a byte code's element's token against a matcher for such a token.
|
class |
DescriptorMatcher<T extends NamedElement.WithDescriptor>
An element matcher that matches a Java descriptor.
|
static class |
ElementMatcher.Junction.AbstractBase<V>
A base implementation of
ElementMatcher.Junction . |
static class |
ElementMatcher.Junction.Conjunction<W>
A conjunction matcher which only matches an element if both represented matchers constitute a match.
|
static class |
ElementMatcher.Junction.Disjunction<W>
A disjunction matcher which only matches an element if both represented matchers constitute a match.
|
class |
EqualityMatcher<T>
An element matcher that checks an object's equality to another object.
|
class |
ErasureMatcher<T extends TypeDefinition>
An element matcher that matches its argument's
TypeDescription.Generic raw type against the
given matcher for a TypeDescription . |
class |
FailSafeMatcher<T>
A fail-safe matcher catches exceptions that are thrown by a delegate matcher and returns an alternative value.
|
class |
FieldTypeMatcher<T extends FieldDescription>
An element matcher that matches a field's type.
|
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 |
InstanceTypeMatcher<T>
An element matcher that matches an object's type.
|
class |
IsNamedMatcher<T extends NamedElement.WithOptionalName>
An element matcher that matches a named element only if is explicitly named.
|
protected static class |
LatentMatcher.ForFieldToken.ResolvedMatcher
A resolved matcher of a latent field matcher for a field token.
|
protected static class |
LatentMatcher.ForMethodToken.ResolvedMatcher
A resolved matcher of a latent method matcher for a method token.
|
class |
MethodExceptionTypeMatcher<T extends MethodDescription>
An element matcher that matches the exceptions that are declared by a method.
|
class |
MethodOverrideMatcher<T extends MethodDescription>
A matcher that checks if any super type of a type declares a method with the same shape of a matched method.
|
class |
MethodParametersMatcher<T extends MethodDescription>
An element matcher that matches a method's parameters.
|
class |
MethodParameterTypeMatcher<T extends ParameterDescription>
An element matcher that matches a method's parameter's type.
|
class |
MethodParameterTypesMatcher<T extends ParameterList<?>>
An element matcher that matches a method's parameter types.
|
class |
MethodReturnTypeMatcher<T extends MethodDescription>
An element matcher that matches its argument's return type against a given type matcher.
|
class |
MethodSortMatcher<T extends MethodDescription>
Matches a method description by its general characteristics which are represented as a
MethodSortMatcher.Sort . |
class |
ModifierMatcher<T extends ModifierReviewable>
An element matcher that matches a byte code element by its modifiers.
|
class |
NameMatcher<T extends NamedElement>
A method matcher that matches a byte code element's source code name:
The source code name of types is equal to their binary name where arrays are appended a
[] by
their arity and where inner classes are appended by dollar signs to their outer class's source name.
Constructors and the type initializer methods are represented by the empty string as they do not
represent a source code name.
Fields are named as in the source code.
|
class |
NegatingMatcher<T>
An element matcher that reverses the matching result of another matcher.
|
class |
NullMatcher<T>
An element matcher that matches the
null value. |
class |
PrimitiveTypeMatcher<T extends TypeDefinition>
Matches a primitive type.
|
class |
RecordMatcher<T extends TypeDefinition>
Matches a record.
|
class |
SignatureTokenMatcher<T extends MethodDescription>
Matches a method description's signature token against another matcher.
|
class |
StringMatcher
An element matcher that compares two strings by a given pattern which is characterized by a
StringMatcher.Mode . |
class |
StringSetMatcher
An element matcher which checks if a string is in a set of strings.
|
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.
|
class |
TypeSortMatcher<T extends TypeDefinition>
An element matcher that validates that a given generic type description represents a type of a given name.
|
class |
VisibilityMatcher<T extends ByteCodeElement>
An element matcher that validates that a given byte code element is visible to a given type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
<U extends S> |
ElementMatcher.Junction.and(ElementMatcher<? super U> other)
Creates a conjunction where this matcher and the
other matcher must both be matched in order
to constitute a successful match. |
<U extends V> |
ElementMatcher.Junction.AbstractBase.and(ElementMatcher<? super U> other)
Creates a conjunction where this matcher and the
other matcher must both be matched in order
to constitute a successful match. |
static <T extends AnnotationDescription> |
ElementMatchers.annotationType(ElementMatcher<? super TypeDescription> matcher)
Matches if an annotation's type matches the supplied matcher.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.cached(ElementMatcher<? super T> matcher,
ConcurrentMap<? super T,Boolean> map)
Wraps another matcher but caches the result of previously matched elements.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.cached(ElementMatcher<? super T> matcher,
int evictionSize)
Wraps another matcher but caches the result of previously matched elements.
|
static <T extends AnnotationSource> |
ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher)
Matches an
AnnotationSource to declare any annotation
that matches the given matcher. |
static <T extends TypeDefinition> |
ElementMatchers.declaresField(ElementMatcher<? super FieldDescription> matcher)
Matches a type by a another matcher that is applied on any of its declared fields.
|
static <T extends MethodDescription> |
ElementMatchers.declaresGenericException(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matcher)
Matches a method's generic exception types against the provided matcher.
|
static <T extends TypeDefinition> |
ElementMatchers.declaresMethod(ElementMatcher<? super MethodDescription> matcher)
Matches a type by a another matcher that is applied on any of its declared methods.
|
static <T extends FieldDescription> |
ElementMatchers.definedField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Matches a field in its defined shape.
|
static <T extends MethodDescription> |
ElementMatchers.definedMethod(ElementMatcher<? super MethodDescription.InDefinedShape> matcher)
Matches a method in its defined shape.
|
static <T extends ParameterDescription> |
ElementMatchers.definedParameter(ElementMatcher<? super ParameterDescription.InDefinedShape> matcher)
Matches a parameter in its defined shape.
|
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> ElementMatcher.Junction<T> |
ElementMatchers.failSafe(ElementMatcher<? super T> matcher)
Wraps another matcher to assure that an element is not matched in case that the matching causes an
Exception . |
static <T extends FieldDescription> |
ElementMatchers.fieldType(ElementMatcher<? super TypeDescription> matcher)
Matches a field's raw type against the provided matcher.
|
S |
FilterableList.filter(ElementMatcher<? super T> elementMatcher)
Filters any elements in this lists by the given
elementMatcher and returns a list that are matched
by the given matcher. |
S |
FilterableList.Empty.filter(ElementMatcher<? super T> elementMatcher)
Filters any elements in this lists by the given
elementMatcher and returns a list that are matched
by the given matcher. |
S |
FilterableList.AbstractBase.filter(ElementMatcher<? super T> elementMatcher)
Filters any elements in this lists by the given
elementMatcher and returns a list that are matched
by the given matcher. |
static <T extends FieldDescription> |
ElementMatchers.genericFieldType(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches a field's generic type against the provided matcher.
|
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 ClassLoader> |
ElementMatchers.hasChild(ElementMatcher<? super ClassLoader> matcher)
Matches all class loaders in the hierarchy of the matched class loader against a given matcher.
|
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 ParameterDescription> |
ElementMatchers.hasGenericType(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches a method parameter by its generic type.
|
static <T extends MethodDescription> |
ElementMatchers.hasParameters(ElementMatcher<? super Iterable<? extends ParameterDescription>> matcher)
Matches a
MethodDescription by validating that its parameters
fulfill a given constraint. |
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 ByteCodeElement> |
ElementMatchers.isDeclaredByGeneric(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches a
ByteCodeElement for being declared by a TypeDescription.Generic that is matched by the given matcher. |
static <T extends MethodDescription> |
ElementMatchers.isGenericGetter(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches any Java bean getter method which returns an value with a type matches the supplied matcher.
|
static <T extends MethodDescription> |
ElementMatchers.isGenericSetter(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches any Java bean setter method which takes an argument that matches the supplied matcher.
|
static <T extends MethodDescription> |
ElementMatchers.isGetter(ElementMatcher<? super TypeDescription> matcher)
Matches any Java bean getter method which returns an value with a type matches the supplied matcher.
|
static <T extends MethodDescription> |
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.isOverriddenFromGeneric(ElementMatcher<? super TypeDescription.Generic> 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 TypeDefinition> |
ElementMatchers.isVariable(ElementMatcher<? super NamedElement> matcher)
Matches a type variable with the given name.
|
static <T> ElementMatcher.Junction<T> |
ElementMatchers.not(ElementMatcher<? super T> matcher)
Inverts another matcher.
|
static <T extends TypeDefinition> |
ElementMatchers.ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher)
Matches generic type descriptions of the given sort.
|
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.
|
<U extends S> |
ElementMatcher.Junction.or(ElementMatcher<? super U> other)
Creates a disjunction where either this matcher or the
other matcher must be matched in order
to constitute a successful match. |
<U extends V> |
ElementMatcher.Junction.AbstractBase.or(ElementMatcher<? super U> other)
Creates a disjunction where either this matcher or the
other matcher must be matched in order
to constitute a successful match. |
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.returnsGeneric(ElementMatcher<? super TypeDescription.Generic> matcher)
Matches
MethodDescription s that match a matched method's return type. |
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.takesGenericArgument(int index,
ElementMatcher<? super TypeDescription.Generic> matcher)
Matches
MethodDescription s that define a given generic type as a parameter at the given index. |
static <T extends MethodDescription> |
ElementMatchers.takesGenericArguments(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matchers)
Matches a
MethodDescription by applying an iterable collection of element matcher on any parameter's TypeDescription.Generic . |
static <T> ElementMatcher.Junction<Iterable<? extends T>> |
ElementMatchers.whereAny(ElementMatcher<? super T> matcher)
Matches an iterable by assuring that at least one element of the iterable collection matches the
provided matcher.
|
static <T> ElementMatcher.Junction<Iterable<? extends T>> |
ElementMatchers.whereNone(ElementMatcher<? super T> matcher)
Matches an iterable by assuring that no element of the iterable collection matches the provided matcher.
|
Constructor and Description |
---|
AnnotationTypeMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new matcher for an annotation description's type.
|
CachingMatcher(ElementMatcher<? super T> matcher,
ConcurrentMap<? super T,Boolean> map)
Creates a new caching matcher.
|
ClassLoaderHierarchyMatcher(ElementMatcher<? super ClassLoader> matcher)
Creates a new class loader hierarchy matcher.
|
CollectionElementMatcher(int index,
ElementMatcher<? super T> matcher)
Creates a new matcher for an element in a collection.
|
CollectionErasureMatcher(ElementMatcher<? super Iterable<? extends TypeDescription>> matcher)
Creates a new raw type matcher.
|
CollectionItemMatcher(ElementMatcher<? super T> matcher)
Creates a new matcher that applies another matcher to each element of a matched iterable collection.
|
Conjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
Creates a new conjunction matcher.
|
Conjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
Creates a new conjunction matcher.
|
DeclaringAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
Creates a new matcher for the annotations of an annotated element.
|
DeclaringFieldMatcher(ElementMatcher<? super FieldList<? extends FieldDescription>> matcher)
Creates a new matcher for a type's declared fields.
|
DeclaringMethodMatcher(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher)
Creates a new matcher for a type's declared methods.
|
DeclaringTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for the declaring type of an element.
|
DefinedShapeMatcher(ElementMatcher<? super S> matcher)
Creates a new matcher for a byte code element's defined shape.
|
DescriptorMatcher(ElementMatcher<String> matcher)
Creates a new matcher for an element's descriptor.
|
Disjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
Creates a new disjunction matcher.
|
Disjunction(ElementMatcher<? super W> left,
ElementMatcher<? super W> right)
Creates a new disjunction matcher.
|
ErasureMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new raw type matcher.
|
FailSafeMatcher(ElementMatcher<? super T> matcher,
boolean fallback)
Creates a new fail-safe element matcher.
|
FieldTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for a matched field's type.
|
HasSuperClassMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for a super class.
|
HasSuperTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for a super type.
|
InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
Creates a new matcher for the inherited annotations of a type description.
|
InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new instance type matcher.
|
MethodExceptionTypeMatcher(ElementMatcher<? super TypeList.Generic> matcher)
Creates a new matcher for a method's exceptions.
|
MethodOverrideMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new method override matcher.
|
MethodParametersMatcher(ElementMatcher<? super ParameterList<? extends ParameterDescription>> matcher)
Creates a new matcher for a method's parameters.
|
MethodParameterTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for a method's parameter's type.
|
MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher)
Creates a new matcher for a method's parameter types.
|
MethodReturnTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
Creates a new matcher for a matched element's return type.
|
NameMatcher(ElementMatcher<String> matcher)
Creates a new matcher for a byte code element's source name.
|
NegatingMatcher(ElementMatcher<? super T> matcher)
Creates a new negating element matcher.
|
Resolved(ElementMatcher<? super S> matcher)
Creates a new resolved latent matcher.
|
SignatureTokenMatcher(ElementMatcher<? super MethodDescription.SignatureToken> matcher)
Creates a new signature token matcher.
|
TypeSortMatcher(ElementMatcher<? super TypeDefinition.Sort> matcher)
Creates a new type sort matcher.
|
WithInlineEviction(ElementMatcher<? super S> matcher,
ConcurrentMap<? super S,Boolean> map,
int evictionSize)
Creates a new caching matcher with inlined cache eviction.
|
Constructor and Description |
---|
CollectionOneToOneMatcher(List<? extends ElementMatcher<? super T>> matchers)
Creates a new matcher that compares a matched iterable collection against a list of element matchers.
|
Copyright © 2014–2020. All rights reserved.