Uses of Interface
net.bytebuddy.matcher.ElementMatcher
Packages that use ElementMatcher
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
A package containing classes for applying Byte Buddy transformers within a Maven build.
Classes of this package allow the representation of Java classes, their member and their meta data.
Contains descriptions of annotations and annotation values.
Contains descriptions of Java fields.
Contains descriptions of Java methods and constructors as well as their parameters.
Contains descriptions of Java types and packages.
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
This package contains classes that are responsible for class loading of classes that are represented by
byte arrays.This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type.All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type.The implementation package contains any logic for intercepting method calls.
Contains an API for matching Java byte code entities.
Classes of this package allow for the creating
TypeDescriptions without
loading any classes.-
Uses of ElementMatcher in net.bytebuddy
Methods in net.bytebuddy with parameters of type ElementMatcherModifier and TypeMethodDescriptionByteBuddy.ignore(ElementMatcher<? super MethodDescription> ignoredMethods) Creates a new configuration where anyMethodDescriptionthat matches the provided method matcher is excluded from instrumentation. -
Uses of ElementMatcher in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super ClassLoader> AgentBuilder.RawMatcher.ForElementMatchers.classLoaderMatcherThe class loader matcher to apply to aClassLoader.private final ElementMatcher<? super ClassLoader> AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.classLoaderMatcherThe matcher to use for the instrumented type's class loader.private final ElementMatcher<? super ClassLoader> AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.classLoaderMatcherThe matcher to use for the instrumented type's class loader.private final ElementMatcher<? super Throwable> AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.exceptionMatcherThe matcher to use for the exception that was caused.private final ElementMatcher<? super String> AgentBuilder.Listener.Filtering.matcherThe matcher to decide upon a type should be logged.private final ElementMatcher<? super JavaModule> AgentBuilder.RawMatcher.ForElementMatchers.moduleMatcherA module matcher to apply to ajava.lang.Module.private final ElementMatcher<? super JavaModule> AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.moduleMatcherThe matcher to use for the instrumented type's module.private final ElementMatcher<? super JavaModule> AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.moduleMatcherThe matcher to use for the instrumented type's module.private final ElementMatcher<? super TypeDescription> AgentBuilder.RawMatcher.ForElementMatchers.typeMatcherThe type matcher to apply to aTypeDescription.private final ElementMatcher<String> AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers.typeNameMatcherThe matcher to use for the instrumented type's name.private final ElementMatcher<String> AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers.typeNameMatcherThe matcher to use for the instrumented type's name.Fields in net.bytebuddy.agent.builder with type parameters of type ElementMatcherModifier and TypeFieldDescriptionprivate final Collection<? extends ElementMatcher<? super TypeDescription>> AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping.matchersThe type matchers to apply.Methods in net.bytebuddy.agent.builder with parameters of type ElementMatcherModifier and TypeMethodDescriptionAgentBuilder.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.advice(ElementMatcher<? super MethodDescription> matcher, String enter, String exit) Applies the given advice class onto all methods that satisfy the supplied matcher.AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> ignoredTypes) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoaders.AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> ignoredTypes, ElementMatcher<? super ClassLoader> ignoredClassLoaders) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.Delegator.ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoaders.AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher) Excludes any type that is matched by the provided matcher from instrumentation and considers types by allClassLoaders.AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.ignore(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Excludes any type that is matched by the provided matcher and is loaded by a class loader matching the second matcher.AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Redefining.WithResubmission.resubmitImmediate(ElementMatcher<String> typeNameMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.Default.Redefining.WithResubmission.resubmitImmediate(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.Default.Redefining.WithResubmission.resubmitImmediate(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitImmediate(ElementMatcher<String> typeNameMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitImmediate(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitImmediate(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.AgentBuilder.Default.Redefining.WithResubmission.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matcher matches the type in question.AgentBuilder.Default.Redefining.WithResubmission.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.Default.Redefining.WithResubmission.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.Default.Redefining.WithResubmission.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matcher matches the type in question.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification.resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.Default.Delegator.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.Default.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.type(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.Constructors in net.bytebuddy.agent.builder with parameters of type ElementMatcherModifierConstructorDescriptionFiltering(ElementMatcher<? super String> matcher, AgentBuilder.Listener delegate) Creates a new filtering listener.ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher) Creates a newAgentBuilder.RawMatcherthat only matches the suppliedTypeDescriptionagainst a supplied matcher.ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Creates a newAgentBuilder.RawMatcherthat only matches the suppliedTypeDescriptionand itsClassLoaderagainst two matcher in order to decided if an instrumentation should be conducted.ForElementMatchers(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Creates a newAgentBuilder.RawMatcherthat only matches the suppliedTypeDescription, itsClassLoaderand module against element suitable matchers.ForElementMatchers(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Creates a new matcher for immediate resubmission that is using element matchers.ForElementMatchers(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Creates a new matcher for resubmission upon an exception that is using element matchers.ForMatchedGrouping(ElementMatcher<? super TypeDescription>... matcher) Creates a new batch allocator that groups all batches by discriminating types using a type matcher.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type ElementMatcherModifierConstructorDescriptionForMatchedGrouping(Collection<? extends ElementMatcher<? super TypeDescription>> matchers) Creates a new batch allocator that groups all batches by discriminating types using a type matcher. -
Uses of ElementMatcher in net.bytebuddy.asm
Classes in net.bytebuddy.asm that implement ElementMatcherModifier and TypeClassDescriptionprotected static classAn entry describing a field visitor wrapper paired with a matcher for fields to be wrapped.protected static classAn entry describing a method visitor wrapper paired with a matcher for fields to be wrapped.protected static classA matcher for method handles of thejava.lang.invoke.LambdaMetafactory.protected static classA description of a conditional adjustment.Fields in net.bytebuddy.asm declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super AnnotationDescription> AnnotationRemoval.annotationMatcherMatches annotations that should be removed.private final ElementMatcher<? super AnnotationDescription> AnnotationRemoval.AnnotationRemovingClassVisitor.annotationMatcherMatches annotations that should be removed.private final ElementMatcher<? super AnnotationDescription> AnnotationRemoval.AnnotationRemovingFieldVisitor.annotationMatcherMatches annotations that should be removed.private final ElementMatcher<? super AnnotationDescription> AnnotationRemoval.AnnotationRemovingMethodVisitor.annotationMatcherMatches annotations that should be removed.private final ElementMatcher<? super FieldDescription.InDefinedShape> AnnotationRemoval.AnnotationRemovingClassVisitor.fieldMatcherMatches fields from which annotations should be removed.private final ElementMatcher<? super FieldDescription.InDefinedShape> AnnotationRemoval.fieldMatcherMatches fields from which annotations should be removed.private final ElementMatcher<? super FieldDescription> MemberSubstitution.Replacement.ForElementMatchers.Factory.fieldMatcherThe field matcher to consider when discovering fields.private final ElementMatcher<? super FieldDescription> MemberSubstitution.Replacement.ForElementMatchers.fieldMatcherThe field matcher to consider when discovering fields.private final ElementMatcher<? super TypeDescription> TypeReferenceAdjustment.TypeReferenceClassVisitor.filterA filter for excluding types from type reference analysis.private final ElementMatcher<? super JavaConstant.MethodHandle> MemberSubstitution.Replacement.ForDynamicInvocation.Factory.handleMatcherA matcher for an invokedynamic bootstrap method.private final ElementMatcher<? super JavaConstant.MethodHandle> MemberSubstitution.Replacement.ForDynamicInvocation.handleMatcherA matcher for an invokedynamic bootstrap method.private final ElementMatcher<? super JavaConstant.MethodHandle> MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.handleMatcherA matcher for an invokedynamic bootstrap method.private final ElementMatcher<? super FieldDescription.InDefinedShape> AsmVisitorWrapper.ForDeclaredFields.Entry.matcherThe matcher to identify fields to be wrapped.private final ElementMatcher<? super MethodDescription> AsmVisitorWrapper.ForDeclaredMethods.Entry.matcherThe matcher to identify methods to be wrapped.private final ElementMatcher<? super FieldDescription> MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher.matcherThe matcher to use for locating the field to substitute with.private final ElementMatcher<? super FieldDescription> MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField.matcherThe matcher to apply.private final ElementMatcher<? super MethodDescription> MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.matcherThe matcher to use for locating the method to substitute with.private final ElementMatcher<? super MethodDescription> MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.matcherThe matcher for locating the method to substitute with.private final ElementMatcher<? super ByteCodeElement.Member> MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.matcherA matcher for any byte code elements that should be substituted.private final ElementMatcher<? super FieldDescription> MemberSubstitution.WithoutSpecification.ForMatchedField.matcherA matcher for any field that should be substituted.private final ElementMatcher<? super MethodDescription> MemberSubstitution.WithoutSpecification.ForMatchedMethod.matcherA matcher for any method or constructor that should be substituted.private final ElementMatcher<? super T> ModifierAdjustment.Adjustment.matcherThe matcher to determine an adjustment.private final ElementMatcher<? super MethodDescription> AnnotationRemoval.AnnotationRemovingClassVisitor.methodMatcherMatches methods from which annotations should be removed.private final ElementMatcher<? super MethodDescription> AnnotationRemoval.methodMatcherMatches methods from which annotations should be removed.private final ElementMatcher<? super MethodDescription> MemberSubstitution.Replacement.ForElementMatchers.Factory.methodMatcherThe method matcher to consider when discovering methods.private final ElementMatcher<? super MethodDescription> MemberSubstitution.Replacement.ForElementMatchers.methodMatcherThe method matcher to consider when discovering methods.Methods in net.bytebuddy.asm with parameters of type ElementMatcherModifier and TypeMethodDescriptionAsmVisitorWrapper.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.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.MemberSubstitution.constructor(ElementMatcher<? super MethodDescription> matcher) Substitutes any constructor invocation that matches the given matcher.MemberSubstitution.dynamic(ElementMatcher<? super JavaConstant.MethodHandle> matcher) Matches invokedynamic instructions that are dispatched for the supplied method handle.MemberSubstitution.element(ElementMatcher<? super ByteCodeElement.Member> matcher) Substitutes any interaction with a field or method that matches the given matcher.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.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.MemberSubstitution.field(ElementMatcher<? super FieldDescription> matcher) Substitutes any field access that matches the given matcher.TypeReferenceAdjustment.filter(ElementMatcher<? super TypeDescription> filter) Excludes all matched types from being added as an attribute.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.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.MemberSubstitution.invokable(ElementMatcher<? super MethodDescription> matcher) Substitutes any method or constructor invocation that matches the given matcher.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.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.MemberSubstitution.method(ElementMatcher<? super MethodDescription> matcher) Substitutes any method invocation that matches the given matcher.protected static MemberSubstitution.Replacement.FactoryMemberSubstitution.Replacement.ForElementMatchers.Factory.of(ElementMatcher<? super ByteCodeElement.Member> matcher, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory for applying a substitution on all matched byte code elements for all access types.protected static MemberSubstitution.Replacement.FactoryMemberSubstitution.Replacement.ForElementMatchers.Factory.ofField(ElementMatcher<? super FieldDescription> matcher, boolean matchFieldRead, boolean matchFieldWrite, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory that only matches field access for given access types.protected static MemberSubstitution.Replacement.FactoryMemberSubstitution.Replacement.ForElementMatchers.Factory.ofMethod(ElementMatcher<? super MethodDescription> matcher, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory that only matches method and constructor invocations for given invocation types.Advice.on(ElementMatcher<? super MethodDescription> matcher) Returns an ASM visitor wrapper that matches the given matcher and applies this advice to the matched methods.MemberAttributeExtension.ForField.on(ElementMatcher<? super FieldDescription.InDefinedShape> matcher) Applies this attribute extension on any field that matches the supplied matcher.MemberAttributeExtension.ForMethod.on(ElementMatcher<? super MethodDescription> matcher) Applies this attribute extension on any method or constructor that matches the supplied matcher.MemberSubstitution.on(ElementMatcher<? super MethodDescription> matcher) Applies this member substitution to any method that matches the supplied matcher.AnnotationRemoval.onConstructorParameter(ElementMatcher<? super MethodDescription> matcher, int parameter) Creates a visitor that removes annotations from the constructor parameters with the given index where the constructor matches the specified matcher.AnnotationRemoval.onConstructorParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructor parameters where the constructor matches the specified matcher.AnnotationRemoval.onConstructors(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructors that match the specified matcher.AnnotationRemoval.onConstructorsAndParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructors and their parameters that match the specified matcher.AnnotationRemoval.onFields(ElementMatcher<? super FieldDescription> matcher) Creates a visitor that only removes annotations from fields that match the specified matcher.AnnotationRemoval.onInvokableParameter(ElementMatcher<? super MethodDescription> matcher, int parameter) Creates a visitor that removes annotations from the constructor or method parameters with the given index where the constructor or method matches the specified matcher.AnnotationRemoval.onInvokableParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructor or method parameters where the constructor or method matches the specified matcher.AnnotationRemoval.onInvokables(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructors or methods that match the specified matcher.AnnotationRemoval.onInvokablesAndParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from constructors or methods and their parameters that match the specified matcher.AnnotationRemoval.onMethodParameter(ElementMatcher<? super MethodDescription> matcher, int parameter) Creates a visitor that removes annotations from the method parameters with the given index where the method matches the specified matcher.AnnotationRemoval.onMethodParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from method parameters where the method matches the specified matcher.AnnotationRemoval.onMethods(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from methods that match the specified matcher.AnnotationRemoval.onMethodsAndParameters(ElementMatcher<? super MethodDescription> matcher) Creates a visitor that removes annotations from methods and their parameters that match the specified matcher.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.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.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.static AnnotationRemovalAnnotationRemoval.strip(ElementMatcher<? super AnnotationDescription> matcher) Creates a visitor that removes all annotations that match the specified matcher from the instrumented type.MemberRemoval.stripConstructors(ElementMatcher<? super MethodDescription> matcher) Specifies that any constructor that matches the specified matcher should be removed.MemberRemoval.stripFields(ElementMatcher<? super FieldDescription.InDefinedShape> matcher) Specifies that any field that matches the specified matcher should be removed.MemberRemoval.stripInvokables(ElementMatcher<? super MethodDescription> matcher) Specifies that any method or constructor that matches the specified matcher should be removed.MemberRemoval.stripMethods(ElementMatcher<? super MethodDescription> matcher) Specifies that any method that matches the specified matcher should be removed.MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.withArguments(ElementMatcher<? super List<? extends JavaConstant>> argumentsMatcher) Reduces matched invokedynamic instructions to such instructions that is provided with constant arguments which are matched by the supplied matcher.ModifierAdjustment.withConstructorModifiers(ElementMatcher<? super MethodDescription> matcher, List<? extends ModifierContributor.ForMethod> modifierContributors) Adjusts a constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withConstructorModifiers(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, List<? extends ModifierContributor.ForField> modifierContributors) Adjusts a field's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, ModifierContributor.ForField... modifierContributor) Adjusts a field's modifiers if it fulfills the supplied matcher.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.withInvokableModifiers(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a method's or constructor's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withMethodModifiers(ElementMatcher<? super MethodDescription> matcher, List<? extends ModifierContributor.ForMethod> modifierContributors) Adjusts a method's modifiers if it fulfills the supplied matcher.ModifierAdjustment.withMethodModifiers(ElementMatcher<? super MethodDescription> matcher, ModifierContributor.ForMethod... modifierContributor) Adjusts a method's modifiers if it fulfills the supplied matcher.MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.withName(ElementMatcher<? super String> nameMatcher) Reduces matched invokedynamic instructions to such instructions that declare a name which is matched by the supplied matcher.MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.withType(ElementMatcher<? super JavaConstant.MethodType> typeMatcher) Reduces matched invokedynamic instructions to such instructions that require a type which is matched by the supplied matcher.ModifierAdjustment.withTypeModifiers(ElementMatcher<? super TypeDescription> matcher, List<? extends ModifierContributor.ForType> modifierContributors) Adjusts an instrumented type's modifiers if it matches the supplied matcher.ModifierAdjustment.withTypeModifiers(ElementMatcher<? super TypeDescription> matcher, ModifierContributor.ForType... modifierContributor) Adjusts an instrumented type's modifiers if it matches the supplied matcher.Constructors in net.bytebuddy.asm with parameters of type ElementMatcherModifierConstructorDescriptionprotectedAdjustment(ElementMatcher<? super T> matcher, ModifierContributor.Resolver<?> resolver) Creates a new adjustment.protectedAnnotationRemoval(boolean type, ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, ElementMatcher<? super AnnotationDescription> annotationMatcher, int parameters) Creates a visitor for annotation removal.privateAnnotationRemovingClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, ElementMatcher<? super AnnotationDescription> annotationMatcher, int parameters, Map<String, FieldDescription.InDefinedShape> fields, Map<String, MethodDescription> methods, Map<String, AnnotationDescription> annotations) Creates a class visitor for annotation removal.privateAnnotationRemovingFieldVisitor(org.objectweb.asm.FieldVisitor fieldVisitor, ElementMatcher<? super AnnotationDescription> annotationMatcher, Map<String, AnnotationDescription> annotations) Creates a visitor for removing annotations from fields.privateAnnotationRemovingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, ElementMatcher<? super AnnotationDescription> annotationMatcher, Map<Integer, Map<String, AnnotationDescription>> parameterAnnotations, Map<String, AnnotationDescription> annotations) Creates an annotation removing method visitor.protectedEntry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers) Creates a new entry.protectedEntry(ElementMatcher<? super MethodDescription> matcher, List<? extends AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper> methodVisitorWrappers) Creates a new entry.protectedFactory(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForDynamicInvocation> substitutionFactory) Creates a factory for a replacement for a replacement for an invokedynamic instruction.protectedFactory(ElementMatcher<? super FieldDescription> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, boolean matchFieldRead, boolean matchFieldWrite, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory) Creates a new replacement that triggers a substitution based on a row of matchers.protectedForDynamicInvocation(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution) Creates a replacement for an invokedynamic instruction.protectedForElementMatcher(TypeDescription instrumentedType, ElementMatcher<? super FieldDescription> matcher) Creates a new field resolver that locates a field on the receiver type using a matcher.protectedForElementMatchers(ElementMatcher<? super FieldDescription> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, boolean matchFieldRead, boolean matchFieldWrite, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForMember> substitution) Creates a new replacement that triggers a substitution based on a row of matchers.protectedForMatchedByteCodeElement(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super ByteCodeElement.Member> matcher) Creates a new member substitution for a matched byte code element that requires a specification for how to perform a substitution.protectedForMatchedDynamicInvocation(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<? extends JavaConstant>> argumentsMatcher) Creates a member substitution for an invokedynamic instruction.protectedForMatchedField(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super FieldDescription> matcher) Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.protectedForMatchedField(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super FieldDescription> matcher, boolean matchRead, boolean matchWrite) Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.protectedForMatchedMethod(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protectedForMatchedMethod(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, 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.protectedTypeReferenceClassVisitor(org.objectweb.asm.ClassVisitor classVisitor, boolean strict, ElementMatcher<? super TypeDescription> filter, TypePool typePool) Creates a type reference class visitor. -
Uses of ElementMatcher in net.bytebuddy.build
Subinterfaces of ElementMatcher in net.bytebuddy.buildModifier and TypeInterfaceDescriptioninterfaceA plugin that allows for the application of Byte Buddy transformations during a build process.static interfaceAllows for the generation of types before a plugin is applied.static interfaceA plugin that applies a preprocessor, i.e.Classes in net.bytebuddy.build that implement ElementMatcherModifier and TypeClassDescriptionclassA build tool plugin that instruments methods to dispatch to methodsjava.security.AccessControllerwith equal signature.classA plugin that caches the return value of a method in a synthetic field.classA plugin that adds aJavaDispatcher.Proxiedannotation to any method of an enhanced type where the annotation is not set.classA build tool plugin that addsObject.hashCode()andObject.equals(Object)methods to a class if theHashCodeAndEqualsPlugin.Enhanceannotation is present and no explicit method declaration was added.protected static classAn element matcher for aHashCodeAndEqualsPlugin.ValueHandlingannotation.static classA version of theHashCodeAndEqualsPluginthat assumes that all fields are non-nullable unless they are explicitly marked.classA plugin that includes a version number in the declared module-info class.protected static classAn element matcher that filters multi-release files above a given version.protected static enumA matcher that removes folders from the iteration.static classAn abstract base for aPluginthat matches types by a givenElementMatcher.static classA non-operational plugin that does not instrument any type.classA plugin that replaces names that are discovered in class files.classA plugin that allows for adding ajava.lang.annotation.Repeatableannotation even if compiled prior to Java 8 which introduces this annotation.classA plugin that allows for adding ajava.lang.SafeVarargsannotation even if compiled prior to Java 7 which introduces this annotation.classA build tool plugin that adds aObject.toString()and method to a class if theToStringPlugin.Enhanceannotation is present and no explicit method declaration was added.Fields in net.bytebuddy.build declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<Plugin.Engine.Source.Element> Plugin.Engine.Source.Filtering.matcherThe element matcher being used to filter elements.private final ElementMatcher<Plugin.Engine.Source.Element> Plugin.Engine.Source.Origin.Filtering.FilteringIterator.matcherThe element matcher being used to filter elements.private final ElementMatcher<Plugin.Engine.Source.Element> Plugin.Engine.Source.Origin.Filtering.matcherThe element matcher being used to filter elements.private final ElementMatcher<? super TypeDescription> Plugin.ForElementMatcher.matcherThe element matcher to apply.private final ElementMatcher<? super TypeDescription> RenamingPlugin.matcherA matcher that determines what types to consider for renaming.Methods in net.bytebuddy.build that return ElementMatcherModifier and TypeMethodDescriptionprotected 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.Methods in net.bytebuddy.build with parameters of type ElementMatcherModifier and TypeMethodDescriptionPlugin.Engine.Default.ignore(ElementMatcher<? super TypeDescription> matcher) Ignores all types that are matched by this matcher or any previously registered ignore matcher.Plugin.Engine.ignore(ElementMatcher<? super TypeDescription> matcher) Ignores all types that are matched by this matcher or any previously registered ignore matcher.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.Constructors in net.bytebuddy.build with parameters of type ElementMatcherModifierConstructorDescriptionFiltering(Plugin.Engine.Source delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher) Creates a new filtering source that retains the manifest of the delegated source.Filtering(Plugin.Engine.Source delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher, boolean manifest) Creates a new filtering source.Filtering(Plugin.Engine.Source.Origin delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher) Creates a new filtering origin that retains the delegated origin's manifest.Filtering(Plugin.Engine.Source.Origin delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher, boolean manifest) Creates a new filtering origin.privateFilteringIterator(Iterator<Plugin.Engine.Source.Element> iterator, ElementMatcher<Plugin.Engine.Source.Element> matcher) Creates a new filtering iterator.protectedForElementMatcher(ElementMatcher<? super TypeDescription> matcher) Creates a new plugin that matches types using an element matcher.RenamingPlugin(RenamingPlugin.Renaming renaming, ElementMatcher<? super TypeDescription> matcher) Creates a renaming plugin for the given renaming and type matcher. -
Uses of ElementMatcher in net.bytebuddy.build.maven
Classes in net.bytebuddy.build.maven that implement ElementMatcherModifier and TypeClassDescriptionprivate static classMatches elements which represent a Java class that is represented in the list or an inner class of the classes represented in the list.protected static classA filter for files that were written before a given timestamp, to avoid duplicate application. -
Uses of ElementMatcher in net.bytebuddy.description
Methods in net.bytebuddy.description with parameters of type ElementMatcherModifier and TypeMethodDescriptionByteCodeElement.TypeDependant.asToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant. -
Uses of ElementMatcher in net.bytebuddy.description.annotation
Methods in net.bytebuddy.description.annotation with parameters of type ElementMatcherModifier and TypeMethodDescriptionAnnotationList.AbstractBase.visibility(ElementMatcher<? super RetentionPolicy> matcher) Only retains annotations with the given retention policy.AnnotationList.Empty.visibility(ElementMatcher<? super RetentionPolicy> matcher) Only retains annotations with the given retention policy.AnnotationList.visibility(ElementMatcher<? super RetentionPolicy> matcher) Only retains annotations with the given retention policy. -
Uses of ElementMatcher in net.bytebuddy.description.field
Methods in net.bytebuddy.description.field with parameters of type ElementMatcherModifier and TypeMethodDescriptionFieldDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.FieldList.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.FieldList.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.FieldList.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens. -
Uses of ElementMatcher in net.bytebuddy.description.method
Methods in net.bytebuddy.description.method with parameters of type ElementMatcherModifier and TypeMethodDescriptionMethodList.AbstractBase.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodList.Empty.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.MethodDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.ParameterDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.MethodList.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.MethodList.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.MethodList.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.ParameterList.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.ParameterList.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens.ParameterList.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of parameter descriptions into a list of detached tokens. -
Uses of ElementMatcher in net.bytebuddy.description.type
Fields in net.bytebuddy.description.type declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super TypeDescription> TypeDescription.Generic.Visitor.Substitutor.ForDetachment.typeMatcherA type matcher for identifying the declaring type.Methods in net.bytebuddy.description.type with parameters of type ElementMatcherModifier and TypeMethodDescriptionRecordComponentDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.RecordComponentDescription.asToken(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.RecordComponentList.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.RecordComponentList.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.RecordComponentList.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.TypeList.Generic.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms a list of attached type variables into their tokenized form.TypeList.Generic.asTokenList(ElementMatcher<? super TypeDescription> visitor) Transforms a list of attached type variables into their tokenized form.TypeList.Generic.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms a list of attached type variables into their tokenized form.static TypeVariableTokenTypeVariableToken.of(TypeDescription.Generic typeVariable, ElementMatcher<? super TypeDescription> matcher) Transforms a type variable into a type variable token with its bounds detached.Constructors in net.bytebuddy.description.type with parameters of type ElementMatcherModifierConstructorDescriptionForDetachment(ElementMatcher<? super TypeDescription> typeMatcher) Creates a visitor for detaching a type. -
Uses of ElementMatcher in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super String> ClassFileLocator.Filtering.matcherThe matcher to determine if the delegate matcher is considered.Methods in net.bytebuddy.dynamic with parameters of type ElementMatcherModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.constructor(ElementMatcher<? super MethodDescription> matcher) Matches a constructor that is already declared by the instrumented type.DynamicType.Builder.constructor(ElementMatcher<? super MethodDescription> matcher) Matches a constructor that is already declared by the instrumented type.DynamicType.Builder.AbstractBase.field(ElementMatcher<? super FieldDescription> matcher) Matches a field that is already declared by the instrumented type.DynamicType.Builder.field(ElementMatcher<? super FieldDescription> matcher) Matches a field that is already declared by the instrumented type.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.AbstractBase.ignoreAlso(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.ignoreAlso(ElementMatcher<? super MethodDescription> ignoredMethods) Specifies to exclude any method that is matched by the supplied matcher from instrumentation.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.invokable(ElementMatcher<? super MethodDescription> matcher) Matches a method or constructor that is already declared or inherited by the instrumented type.DynamicType.Builder.AbstractBase.method(ElementMatcher<? super MethodDescription> matcher) Matches a method that is already declared or inherited by the instrumented type.DynamicType.Builder.method(ElementMatcher<? super MethodDescription> matcher) Matches a method that is already declared or inherited by the instrumented type.DynamicType.Builder.AbstractBase.Delegator.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher) Matches a record component that is already declared by the instrumented type.DynamicType.Builder.AbstractBase.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher) Matches a record component that is already declared by the instrumented type.DynamicType.Builder.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher) Matches a record component that is already declared by the instrumented type.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.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.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.Constructors in net.bytebuddy.dynamic with parameters of type ElementMatcherModifierConstructorDescriptionFiltering(ElementMatcher<? super String> matcher, ClassFileLocator delegate) Creates a new filtering class file locator. -
Uses of ElementMatcher in net.bytebuddy.dynamic.loading
Methods in net.bytebuddy.dynamic.loading with parameters of type ElementMatcherModifier and TypeMethodDescriptionMultipleParentClassLoader.Builder.filter(ElementMatcher<? super ClassLoader> matcher) Only retains all class loaders that match the given matcher. -
Uses of ElementMatcher in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement ElementMatcherModifier and TypeClassDescriptionprotected static classAn entry of a compiled field registry.protected static classAn entry of a compiled record component registry.Fields in net.bytebuddy.dynamic.scaffold declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super FieldDescription> FieldRegistry.Default.Compiled.Entry.matcherThe matcher to identify any field that this definition concerns.private final ElementMatcher<? super MethodDescription> MethodGraph.Compiler.Default.matcherA matcher to filter methods from the graph.private final ElementMatcher<? super RecordComponentDescription> RecordComponentRegistry.Default.Compiled.Entry.matcherThe matcher to identify any record component that this definition concerns.Methods in net.bytebuddy.dynamic.scaffold that return ElementMatcherModifier and TypeMethodDescriptionElementMatcher<? super FieldDescription> FieldRegistry.Default.Entry.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super MethodDescription> MethodRegistry.Default.Entry.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super RecordComponentDescription> RecordComponentRegistry.Default.Entry.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.dynamic.scaffold with parameters of type ElementMatcherModifier and TypeMethodDescriptionprotected 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.ForClassHierarchy.locate(ElementMatcher<? super FieldDescription> matcher) protected FieldList<?> FieldLocator.ForExactType.locate(ElementMatcher<? super FieldDescription> matcher) protected FieldList<?> FieldLocator.ForTopLevelType.locate(ElementMatcher<? super FieldDescription> matcher) static <S> MethodGraph.CompilerMethodGraph.Compiler.Default.of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer, MethodGraph.Compiler.Default.Merger merger, ElementMatcher<? super MethodDescription> matcher) Creates a default compiler using the given harmonizer and merger.InstrumentedType.Default.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.InstrumentedType.Frozen.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.InstrumentedType.WithFlexibleName.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type ElementMatcherModifierConstructorDescriptionDefault(MethodGraph.Compiler.Default.Harmonizer<T> harmonizer, MethodGraph.Compiler.Default.Merger merger, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor, ElementMatcher<? super MethodDescription> matcher) Creates a new default method graph compiler.protectedEntry(ElementMatcher<? super FieldDescription> matcher, FieldAttributeAppender fieldAttributeAppender, Object defaultValue, Transformer<FieldDescription> transformer) Creates a new entry.protectedEntry(ElementMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer) Creates a new entry. -
Uses of ElementMatcher in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super MethodDescription> InliningImplementationMatcher.predefinedMethodSignaturesA method matcher that matches any predefined method.Methods in net.bytebuddy.dynamic.scaffold.inline that return ElementMatcherModifier and TypeMethodDescriptionElementMatcher<? super MethodDescription> InliningImplementationMatcher.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type ElementMatcherModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.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.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type ElementMatcherModifierConstructorDescriptionprotectedInliningImplementationMatcher(LatentMatcher<? super MethodDescription> ignoredMethods, ElementMatcher<? super MethodDescription> predefinedMethodSignatures) Creates a new inline implementation matcher. -
Uses of ElementMatcher in net.bytebuddy.dynamic.scaffold.subclass
Fields in net.bytebuddy.dynamic.scaffold.subclass declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super MethodDescription> ConstructorStrategy.ForDefaultConstructor.elementMatcherA matcher to select a super constructor among possible candidates.Methods in net.bytebuddy.dynamic.scaffold.subclass that return ElementMatcherModifier and TypeMethodDescriptionElementMatcher<? super MethodDescription> SubclassDynamicTypeBuilder.InstrumentableMatcher.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type ElementMatcherModifierConstructorDescriptionForDefaultConstructor(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. -
Uses of ElementMatcher in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super FieldDescription.InDefinedShape> EqualsMethod.Appender.identityA matcher to determine fields of a reference type that cannot benull.private final ElementMatcher<? super FieldDescription.InDefinedShape> HashCodeMethod.Appender.identityA matcher to determine that a field should be considered by its identity.private final ElementMatcher<? super MethodDescription> MethodCall.MethodLocator.ForElementMatcher.Factory.matcherThe matcher to use.private final ElementMatcher<? super MethodDescription> MethodCall.MethodLocator.ForElementMatcher.matcherThe matcher to use.private final ElementMatcher<? super FieldDescription> MethodCall.TerminationHandler.FieldSetting.Implicit.matcherThe matcher being used for locating a field.protected final ElementMatcher<? super MethodDescription> MethodDelegation.ImplementationDelegate.ForField.matcherThe matcher to use for filtering methods.private final ElementMatcher<? super MethodDescription> MethodDelegation.ImplementationDelegate.ForMethodReturn.matcherThe matcher to use for filtering methods.private final ElementMatcher<? super MethodDescription> MethodDelegation.WithCustomProperties.matcherThe matcher to use for filtering relevant methods.private final ElementMatcher<? super FieldDescription.InDefinedShape> EqualsMethod.Appender.nonNullableA matcher to determine fields of a reference type that cannot benull.private final ElementMatcher<? super FieldDescription.InDefinedShape> HashCodeMethod.Appender.nonNullableA matcher to determine fields of a reference type that cannot benull.Methods in net.bytebuddy.implementation with parameters of type ElementMatcherModifier and TypeMethodDescriptionMethodDelegation.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.MethodCall.invoke(ElementMatcher<? super MethodDescription> matcher) Invokes a unique virtual method or constructor of the instrumented type that is matched by the specified matcher.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.setsField(ElementMatcher<? super FieldDescription> matcher) Sets the result of the method call as a value of the specified field.EqualsMethod.withIdentityFields(ElementMatcher<? super FieldDescription.InDefinedShape> identity) Returns a new version of this equals method implementation that considers the matched fields by their identity.HashCodeMethod.withIdentityFields(ElementMatcher<? super FieldDescription.InDefinedShape> identity) Returns a new version of this hash code method implementation that considers the matched fields by their identity.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.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.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.EqualsMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable) Returns a new version of this equals method implementation that does not apply anullvalue check for the specified fields if they have a reference type additionally to any previously specified fields.HashCodeMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable) Returns a new version of this hash code method implementation that does not apply anullvalue check for the specified fields if they have a reference type additionally to any previously specified fields.Constructors in net.bytebuddy.implementation with parameters of type ElementMatcherModifierConstructorDescriptionprotectedAppender(TypeDescription instrumentedType, StackManipulation baseline, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender.protectedAppender(StackManipulation initialValue, int multiplier, List<FieldDescription.InDefinedShape> fieldDescriptions, ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable, ElementMatcher<? super FieldDescription.InDefinedShape> identity) Creates a new appender for implementing a hash code method.Factory(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a factory for a method locator that identifies a method using a matcher.protectedForElementMatcher(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Creates a new method locator for an element matcher.protectedForField(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher) Creates a new implementation delegate for a field delegation.protectedForMethodReturn(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.protectedImplicit(ElementMatcher<? super FieldDescription> matcher) Creates a factory for a field-setting termination handler.privateWithCustomProperties(MethodDelegationBinder.AmbiguityResolver ambiguityResolver, List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, MethodDelegationBinder.BindingResolver bindingResolver, ElementMatcher<? super MethodDescription> matcher) Creates a new method delegation with custom properties.protectedWithInstance(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.protectedWithLookup(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. -
Uses of ElementMatcher in net.bytebuddy.matcher
Subinterfaces of ElementMatcher in net.bytebuddy.matcherModifier and TypeInterfaceDescriptionstatic interfaceA junctions allows to chain differentElementMatchers in a readable manner.Classes in net.bytebuddy.matcher that implement ElementMatcherModifier and TypeClassDescriptionclassAccessibilityMatcher<T extends ByteCodeElement>An element matcher that validates that a given byte code element is accessible to a given type.classAnnotationTargetMatcher<T extends AnnotationDescription>A matcher for annotations that target a given element type.classAnnotationTypeMatcher<T extends AnnotationDescription>An element matcher that matches the type of an annotation description.classArrayTypeMatcher<T extends TypeDefinition>Matches an enumeration type.classAn element matcher that returns a fixed result.classA matcher that remembers the results of previously matching an equal target.static classA caching matcher with inline cache eviction.classClassFileVersionMatcher<T extends TypeDescription>A matcher to consider if a class file version reaches a given boundary.classClassLoaderHierarchyMatcher<T extends ClassLoader>An element matcher that matches allClassLoaders in the matched class loaders hierarchy against a given matcher.classClassLoaderParentMatcher<T extends ClassLoader>An element matcher that matches a class loader for being a parent of the given class loader.classA matcher that matches a given element of a collection.classCollectionErasureMatcher<T extends Iterable<? extends TypeDefinition>>An element matcher that matches a collection of types by their erasures.classA 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.classAn element matcher that matches a given iterable collection to a list of matchers on a per-element basis.classCollectionSizeMatcher<T extends Iterable<?>>An element matcher that matches a collection by its size.classDeclaringAnnotationMatcher<T extends AnnotationSource>An element matcher that matches the list of annotations that are provided by an annotated element.classDeclaringFieldMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares fields of a given property.classDeclaringMethodMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares methods of a given property.classDeclaringTypeMatcher<T extends DeclaredByType>An element matcher that matches the declaring type of another element, only if this element is actually declared in a type.classDefinedShapeMatcher<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.classDescriptorMatcher<T extends NamedElement.WithDescriptor>An element matcher that matches a Java descriptor.static classA base implementation ofElementMatcher.Junction.static classA conjunction matcher which only matches an element if both represented matchers constitute a match.static classA disjunction matcher which matches an element against matchers in order to constitute a successful match.static classAn abstract base implementation that rejects null values.classAn element matcher that checks an object's equality to another object.classErasureMatcher<T extends TypeDefinition>An element matcher that matches its argument'sTypeDescription.Genericraw type against the given matcher for aTypeDescription.classA fail-safe matcher catches exceptions that are thrown by a delegate matcher and returns an alternative value.classFieldTypeMatcher<T extends FieldDescription>An element matcher that matches a field's type.classHasSuperClassMatcher<T extends TypeDescription>An element matcher that matches a super class.classHasSuperTypeMatcher<T extends TypeDescription>An element matcher that matches a super type.classInheritedAnnotationMatcher<T extends TypeDescription>An element matcher that matches the list of inherited annotations of a type description.classAn element matcher that matches an object's type.classIsNamedMatcher<T extends NamedElement.WithOptionalName>An element matcher that matches a named element only if is explicitly named.protected static classA resolved matcher of a latent field matcher for a field token.protected static classA resolved matcher of a latent method matcher for a method token.classMethodExceptionTypeMatcher<T extends MethodDescription>An element matcher that matches the exceptions that are declared by a method.classMethodOverrideMatcher<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.classMethodParametersMatcher<T extends MethodDescription>An element matcher that matches a method's parameters.classMethodParameterTypeMatcher<T extends ParameterDescription>An element matcher that matches a method's parameter's type.classMethodParameterTypesMatcher<T extends ParameterList<?>>An element matcher that matches a method's parameter types.classMethodReturnTypeMatcher<T extends MethodDescription>An element matcher that matches its argument's return type against a given type matcher.classMethodSortMatcher<T extends MethodDescription>Matches a method description by its general characteristics which are represented as aMethodSortMatcher.Sort.classModifierMatcher<T extends ModifierReviewable>An element matcher that matches a byte code element by its modifiers.classNameMatcher<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.classAn element matcher that reverses the matching result of another matcher.classNullMatcher<T>An element matcher that matches thenullvalue.classPrimitiveTypeMatcher<T extends TypeDefinition>Matches a primitive type.classRecordMatcher<T extends TypeDefinition>Matches a record.classSignatureTokenMatcher<T extends MethodDescription>Matches a method description's signature token against another matcher.classAn element matcher that compares two strings by a given pattern which is characterized by aStringMatcher.Mode.classAn element matcher which checks if a string is in a set of strings.classSubTypeMatcher<T extends TypeDescription>An element matcher that matches its argument for being another type's subtype.classSuperTypeMatcher<T extends TypeDescription>An element matcher that matches its argument for being another type's super type.classTypeSortMatcher<T extends TypeDefinition>An element matcher that validates that a given generic type description represents a type of a given name.classVisibilityMatcher<T extends ByteCodeElement>An element matcher that validates that a given byte code element is visible to a given type.Fields in net.bytebuddy.matcher declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<? super TypeDescription> AnnotationTypeMatcher.matcherThe type matcher to apply to an annotation's type.private final ElementMatcher<? super T> CachingMatcher.matcherThe underlying matcher to apply for non-cached targets.private final ElementMatcher<? super ClassLoader> ClassLoaderHierarchyMatcher.matcherThe matcher to apply on each class loader in the hierarchy.private final ElementMatcher<? super T> CollectionElementMatcher.matcherThe matcher for the given element, if it exists.private final ElementMatcher<? super Iterable<? extends TypeDescription>> CollectionErasureMatcher.matcherThe matcher to be applied to the raw types.private final ElementMatcher<? super T> CollectionItemMatcher.matcherThe element matcher to apply to each element of a collection.private final ElementMatcher<? super AnnotationList> DeclaringAnnotationMatcher.matcherThe matcher to be applied to the provided annotation list.private final ElementMatcher<? super FieldList<?>> DeclaringFieldMatcher.matcherThe field matcher to apply to the declared fields of the matched type description.private final ElementMatcher<? super MethodList<?>> DeclaringMethodMatcher.matcherThe field matcher to apply to the declared fields of the matched type description.private final ElementMatcher<? super TypeDescription.Generic> DeclaringTypeMatcher.matcherThe type matcher to be applied if the target element is declared in a type.private final ElementMatcher<? super S> DefinedShapeMatcher.matcherThe matcher to apply onto the defined shape of the matched entity.private final ElementMatcher<String> DescriptorMatcher.matcherA matcher to apply to the descriptor.private final ElementMatcher<? super TypeDescription> ErasureMatcher.matcherThe matcher to apply to the raw type of the matched element.private final ElementMatcher<? super T> FailSafeMatcher.matcherThe delegate matcher that might throw an exception.private final ElementMatcher<? super TypeDescription.Generic> FieldTypeMatcher.matcherThe type matcher to apply to the field's type.private final ElementMatcher<? super TypeDescription.Generic> HasSuperClassMatcher.matcherThe matcher to apply to any super class of the matched type.private final ElementMatcher<? super TypeDescription.Generic> HasSuperTypeMatcher.matcherThe matcher to apply to any super type of the matched type.private final ElementMatcher<? super AnnotationList> InheritedAnnotationMatcher.matcherThe matcher to be applied to the provided annotation list.private final ElementMatcher<? super TypeDescription> InstanceTypeMatcher.matcherThe matcher to apply to the object's type.private final ElementMatcher<? super S> LatentMatcher.Resolved.matcherThe resolved matcher.private final ElementMatcher<? super TypeList.Generic> MethodExceptionTypeMatcher.matcherThe matcher to apply to the matched method's exceptions.private final ElementMatcher<? super TypeDescription.Generic> MethodOverrideMatcher.matcherThe matcher that is to be applied to the type that declares a method of the same shape.private final ElementMatcher<? super ParameterList<?>> MethodParametersMatcher.matcherThe matcher to apply to the parameters.private final ElementMatcher<? super TypeDescription.Generic> MethodParameterTypeMatcher.matcherThe matcher to apply to the type of the parameter.private final ElementMatcher<? super List<? extends TypeDescription.Generic>> MethodParameterTypesMatcher.matcherThe matcher to apply to the type of the parameter.private final ElementMatcher<? super TypeDescription.Generic> MethodReturnTypeMatcher.matcherThe type matcher to apply to the matched element's return type.private final ElementMatcher<String> NameMatcher.matcherThe matcher that is applied to a byte code element's source code name.private final ElementMatcher<? super T> NegatingMatcher.matcherThe element matcher to be negated.private final ElementMatcher<? super MethodDescription.SignatureToken> SignatureTokenMatcher.matcherThe matcher to match the signature token against.private final ElementMatcher<? super TypeDefinition.Sort> TypeSortMatcher.matcherAn element matcher to be applied to the type's sort.Fields in net.bytebuddy.matcher with type parameters of type ElementMatcherModifier and TypeFieldDescriptionprivate final List<? extends ElementMatcher<? super T>> CollectionOneToOneMatcher.matchersThe list of element matchers to match any elements of the matched iterable collection against.private final List<ElementMatcher<? super W>> ElementMatcher.Junction.Conjunction.matchersThe element matchers that constitute this conjunction.private final List<ElementMatcher<? super W>> ElementMatcher.Junction.Disjunction.matchersThe element matchers that constitute this disjunction.Methods in net.bytebuddy.matcher that return ElementMatcherModifier and TypeMethodDescriptionElementMatcher<? super S> LatentMatcher.Conjunction.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super S> LatentMatcher.Disjunction.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super FieldDescription> LatentMatcher.ForFieldToken.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super MethodDescription> LatentMatcher.ForMethodToken.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super RecordComponentDescription> LatentMatcher.ForRecordComponentToken.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super MethodDescription> LatentMatcher.ForSelfDeclaredMethod.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super T> LatentMatcher.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.ElementMatcher<? super S> LatentMatcher.Resolved.resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Methods in net.bytebuddy.matcher with parameters of type ElementMatcherModifier and TypeMethodDescription<U extends V>
ElementMatcher.Junction<U> ElementMatcher.Junction.AbstractBase.and(ElementMatcher<? super U> other) Creates a conjunction where this matcher and theothermatcher must both be matched in order to constitute a successful match.<U extends S>
ElementMatcher.Junction<U> ElementMatcher.Junction.and(ElementMatcher<? super U> other) Creates a conjunction where this matcher and theothermatcher must both be matched in order to constitute a successful match.static <T extends AnnotationDescription>
ElementMatcher.Junction<T> ElementMatchers.annotationType(ElementMatcher<? super TypeDescription> matcher) Matches if an annotation's type matches the supplied matcher.static <T> ElementMatcher.Junction<T> ElementMatchers.cached(ElementMatcher<? super T> matcher, int evictionSize) Wraps another matcher but caches the result of previously matched elements.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 extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher) Matches anAnnotationSourceto declare any annotation that matches the given matcher.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.declaresField(ElementMatcher<? super FieldDescription> matcher) Matches a type by another matcher that is applied on any of its declared fields.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.declaresGenericException(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matcher) Matches a method's generic exception types against the provided matcher.static <T extends TypeDefinition>
ElementMatcher.Junction<T> ElementMatchers.declaresMethod(ElementMatcher<? super MethodDescription> matcher) Matches a type by another matcher that is applied on any of its declared methods.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.definedField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher) Matches a field in its defined shape.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.definedMethod(ElementMatcher<? super MethodDescription.InDefinedShape> matcher) Matches a method in its defined shape.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.definedParameter(ElementMatcher<? super ParameterDescription.InDefinedShape> matcher) Matches a parameter in its defined shape.static <T extends TypeDescription.Generic>
ElementMatcher.Junction<T> ElementMatchers.erasure(ElementMatcher<? super TypeDescription> matcher) Converts a matcher for a type description into a matcher for the matched type's erasure.static <T extends Iterable<? extends TypeDescription.Generic>>
ElementMatcher.Junction<T> ElementMatchers.erasures(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 anException.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.fieldType(ElementMatcher<? super TypeDescription> matcher) Matches a field's raw type against the provided matcher.FilterableList.AbstractBase.filter(ElementMatcher<? super T> elementMatcher) Filters any elements in this lists by the givenelementMatcherand returns a list that are matched by the given matcher.FilterableList.Empty.filter(ElementMatcher<? super T> elementMatcher) Filters any elements in this lists by the givenelementMatcherand returns a list that are matched by the given matcher.FilterableList.filter(ElementMatcher<? super T> elementMatcher) Filters any elements in this lists by the givenelementMatcherand returns a list that are matched by the given matcher.static <T extends FieldDescription>
ElementMatcher.Junction<T> ElementMatchers.genericFieldType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches a field's generic type against the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasAnnotation(ElementMatcher<? super AnnotationDescription> matcher) Matches a list of annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends ClassLoader>
ElementMatcher.Junction<T> 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>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperClass(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericSuperType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.hasGenericType(ElementMatcher<? super TypeDescription.Generic> matcher) Matches a method parameter by its generic type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.hasParameters(ElementMatcher<? super Iterable<? extends ParameterDescription>> matcher) Matches aMethodDescriptionby validating that its parameters fulfill a given constraint.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperClass(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super class (but not interface) that matches the provided matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.hasSuperType(ElementMatcher<? super TypeDescription> matcher) Matches any type description that declares a super type that matches the provided matcher.static <T extends ParameterDescription>
ElementMatcher.Junction<T> ElementMatchers.hasType(ElementMatcher<? super TypeDescription> matcher) Matches a parameter's type by the given matcher.static <T extends TypeDescription>
ElementMatcher.Junction<T> ElementMatchers.inheritsAnnotation(ElementMatcher<? super TypeDescription> matcher) Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes.static <T extends AnnotationSource>
ElementMatcher.Junction<T> ElementMatchers.isAnnotatedWith(ElementMatcher<? super TypeDescription> matcher) Matches anAnnotationSourcefor declared annotations.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredBy(ElementMatcher<? super TypeDescription> matcher) Matches aByteCodeElementfor being declared by aTypeDescriptionthat is matched by the given matcher.static <T extends ByteCodeElement>
ElementMatcher.Junction<T> ElementMatchers.isDeclaredByGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) Matches aByteCodeElementfor being declared by aTypeDescription.Genericthat is matched by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isGenericGetter(ElementMatcher<? super TypeDescription.Generic> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.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>
ElementMatcher.Junction<T> ElementMatchers.isGetter(ElementMatcher<? super TypeDescription> matcher) Matches any Java bean getter method which returns a value with a type matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.isOverriddenFrom(ElementMatcher<? super TypeDescription> matcher) Matches any virtual method with a signature that is compatible to a method that is declared by a type that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.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>
ElementMatcher.Junction<T> 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>
ElementMatcher.Junction<T> 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>
ElementMatcher.Junction<T> ElementMatchers.ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher) Matches generic type descriptions of the given sort.static <T extends ClassLoader>
ElementMatcher.Junction<T> ElementMatchers.ofType(ElementMatcher<? super TypeDescription> matcher) Matches a class loader's type unless it is the bootstrap class loader which is never matched.<U extends V>
ElementMatcher.Junction<U> ElementMatcher.Junction.AbstractBase.or(ElementMatcher<? super U> other) Creates a disjunction where either this matcher or theothermatcher must be matched in order to constitute a successful match.<U extends S>
ElementMatcher.Junction<U> ElementMatcher.Junction.or(ElementMatcher<? super U> other) Creates a disjunction where either this matcher or theothermatcher must be matched in order to constitute a successful match.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returns(ElementMatcher<? super TypeDescription> matcher) Matches a method's return type's erasure by the given matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.returnsGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescriptions that match a matched method's return type.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArgument(int index, ElementMatcher<? super TypeDescription> matcher) MatchesMethodDescriptions that define a type erasure as a parameter at the given index that matches the supplied matcher.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesArguments(ElementMatcher<? super Iterable<? extends TypeDescription>> matchers) Matches aMethodDescriptionby applying an iterable collection of element matcher on any parameter'sTypeDescription.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArgument(int index, ElementMatcher<? super TypeDescription.Generic> matcher) MatchesMethodDescriptions that define a given generic type as a parameter at the given index.static <T extends MethodDescription>
ElementMatcher.Junction<T> ElementMatchers.takesGenericArguments(ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matchers) Matches aMethodDescriptionby applying an iterable collection of element matcher on any parameter'sTypeDescription.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.Constructors in net.bytebuddy.matcher with parameters of type ElementMatcherModifierConstructorDescriptionAnnotationTypeMatcher(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>... matcher) 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>... matcher) 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 parameters in net.bytebuddy.matcher with type arguments of type ElementMatcherModifierConstructorDescriptionCollectionOneToOneMatcher(List<? extends ElementMatcher<? super T>> matchers) Creates a new matcher that compares a matched iterable collection against a list of element matchers.Conjunction(List<ElementMatcher<? super W>> matchers) Creates a new conjunction matcher.Disjunction(List<ElementMatcher<? super W>> matchers) Creates a new disjunction matcher. -
Uses of ElementMatcher in net.bytebuddy.pool
Fields in net.bytebuddy.pool declared as ElementMatcherModifier and TypeFieldDescriptionprivate final ElementMatcher<String> TypePool.CacheProvider.Discriminating.matcherThe matcher that determines which cache to use.Constructors in net.bytebuddy.pool with parameters of type ElementMatcherModifierConstructorDescriptionDiscriminating(ElementMatcher<String> matcher, TypePool.CacheProvider matched, TypePool.CacheProvider unmatched) Creates a new discriminating cache provider.