Uses of Interface
net.bytebuddy.matcher.LatentMatcher
-
Packages that use LatentMatcher Package Description net.bytebuddy Byte Buddy is a library for creating Java classes at runtime of a Java program.net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.dynamic This package contains classes and interfaces that are connected to writing the byte stream that represents a Java type that is dynamically created and for loading this type into a running JVM process.net.bytebuddy.dynamic.scaffold This package contains helper types and implementations that are responsible for the actual writing of a byte array representing a Java class.net.bytebuddy.dynamic.scaffold.inline All classes and types in this package are related to creating aDynamicType
by enhancing a given type.net.bytebuddy.dynamic.scaffold.subclass All classes and types in this package are related to creating aDynamicType
by creating a subclass of a given type.net.bytebuddy.matcher Contains an API for matching Java byte code entities. -
-
Uses of LatentMatcher in net.bytebuddy
Fields in net.bytebuddy declared as LatentMatcher Modifier and Type Field Description protected LatentMatcher<? super MethodDescription>
ByteBuddy. ignoredMethods
A matcher for identifying methods that should be excluded from instrumentation.Methods in net.bytebuddy with parameters of type LatentMatcher Modifier and Type Method Description ByteBuddy
ByteBuddy. ignore(LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where anyMethodDescription
that matches the provided method matcher is excluded from instrumentation.Constructors in net.bytebuddy with parameters of type LatentMatcher Constructor Description ByteBuddy(ClassFileVersion classFileVersion, NamingStrategy namingStrategy, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, InstrumentedType.Factory instrumentedTypeFactory, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new Byte Buddy instance. -
Uses of LatentMatcher in net.bytebuddy.agent.builder
Methods in net.bytebuddy.agent.builder that return LatentMatcher Modifier and Type Method Description protected LatentMatcher<? super MethodDescription>
AgentBuilder.Transformer.ForAdvice.Entry. getMatcher()
Returns the matcher for advised methods.Methods in net.bytebuddy.agent.builder with parameters of type LatentMatcher Modifier and Type Method Description AgentBuilder.Transformer.ForAdvice
AgentBuilder.Transformer.ForAdvice. advice(LatentMatcher<? super MethodDescription> matcher, java.lang.String name)
Applies the given advice class onto all methods that satisfy the supplied matcher.AgentBuilder.Transformer.ForAdvice
AgentBuilder.Transformer.ForAdvice. advice(LatentMatcher<? super MethodDescription> matcher, java.lang.String enter, java.lang.String exit)
Applies the given advice class onto all methods that satisfy the supplied matcher.Constructors in net.bytebuddy.agent.builder with parameters of type LatentMatcher Constructor Description Entry(LatentMatcher<? super MethodDescription> matcher)
Creates a new entry.ForSplitAdvice(LatentMatcher<? super MethodDescription> matcher, java.lang.String enter, java.lang.String exit)
Creates a new entry for an advice class with explicit entry and exit advice classes.ForUnifiedAdvice(LatentMatcher<? super MethodDescription> matcher, java.lang.String name)
Creates a new entry for an advice class where both the (optional) entry and exit advice methods are declared by the same class. -
Uses of LatentMatcher in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as LatentMatcher Modifier and Type Field Description protected LatentMatcher<? super MethodDescription>
DynamicType.Builder.AbstractBase.Adapter. ignoredMethods
A matcher for identifying methods that should be excluded from instrumentation.Methods in net.bytebuddy.dynamic with parameters of type LatentMatcher Modifier and Type Method Description DynamicType.Builder.FieldDefinition.Valuable<U>
DynamicType.Builder.AbstractBase.Adapter. field(LatentMatcher<? super FieldDescription> matcher)
DynamicType.Builder.FieldDefinition.Valuable<U>
DynamicType.Builder.AbstractBase.Delegator. field(LatentMatcher<? super FieldDescription> matcher)
DynamicType.Builder.FieldDefinition.Valuable<T>
DynamicType.Builder. field(LatentMatcher<? super FieldDescription> matcher)
Matches a field that is already declared by the instrumented type.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
DynamicType.Builder<T>
DynamicType.Builder. ignoreAlso(LatentMatcher<? super MethodDescription> ignoredMethods)
Specifies to exclude any method that is matched by the supplied matcher from instrumentation.DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
DynamicType.Builder.AbstractBase.Adapter. invokable(LatentMatcher<? super MethodDescription> matcher)
DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
DynamicType.Builder.AbstractBase.Delegator. invokable(LatentMatcher<? super MethodDescription> matcher)
DynamicType.Builder.MethodDefinition.ImplementationDefinition<T>
DynamicType.Builder. invokable(LatentMatcher<? super MethodDescription> matcher)
Matches a method or constructor that is already declared or inherited by the instrumented type.protected abstract DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. materialize(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
Materializes the supplied state of a dynamic type builder.Constructors in net.bytebuddy.dynamic with parameters of type LatentMatcher Constructor Description Adapter(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new default type writer for creating a new type that is not based on an existing class file.FieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.Object defaultValue, LatentMatcher<? super FieldDescription> matcher)
Creates a new field match adapter.FieldMatchAdapter(LatentMatcher<? super FieldDescription> matcher)
Creates a new field match adapter.MethodMatchAdapter(LatentMatcher<? super MethodDescription> matcher)
Creates a new method match adapter. -
Uses of LatentMatcher in net.bytebuddy.dynamic.scaffold
Classes in net.bytebuddy.dynamic.scaffold that implement LatentMatcher Modifier and Type Class Description protected static class
FieldRegistry.Default.Entry
An entry of the default field registry.protected static class
MethodRegistry.Default.Entry
An entry of a default method registry.Methods in net.bytebuddy.dynamic.scaffold with parameters of type LatentMatcher Modifier and Type Method Description MethodRegistry
MethodRegistry. append(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
Appends the given method definition to this method registry, i.e.MethodRegistry
MethodRegistry.Default. append(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
MethodRegistry.Prepared
MethodRegistry.Default. prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
MethodRegistry.Prepared
MethodRegistry. prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry.FieldRegistry
FieldRegistry.Default. prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
FieldRegistry
FieldRegistry. prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.MethodRegistry
MethodRegistry.Default. prepend(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
MethodRegistry
MethodRegistry. prepend(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
Prepends the given method definition to this method registry, i.e.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type LatentMatcher Constructor Description Entry(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
Creates a new entry.Entry(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
Creates a new entry. -
Uses of LatentMatcher in net.bytebuddy.dynamic.scaffold.inline
Classes in net.bytebuddy.dynamic.scaffold.inline that implement LatentMatcher Modifier and Type Class Description class
InliningImplementationMatcher
A latent method matcher that identifies methods to instrument when redefining or rebasing a type.Methods in net.bytebuddy.dynamic.scaffold.inline that return LatentMatcher Modifier and Type Method Description protected static LatentMatcher<MethodDescription>
InliningImplementationMatcher. of(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType)
Creates a matcher where only overridable or declared methods are matched unless those are ignored.Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type LatentMatcher Modifier and Type Method Description protected DynamicType.Builder<T>
RebaseDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
protected DynamicType.Builder<T>
RedefinitionDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
protected static LatentMatcher<MethodDescription>
InliningImplementationMatcher. of(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType)
Creates a matcher where only overridable or declared methods are matched unless those are ignored.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type LatentMatcher Constructor Description AbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates an inlining dynamic type builder.InliningImplementationMatcher(LatentMatcher<? super MethodDescription> ignoredMethods, ElementMatcher<? super MethodDescription> predefinedMethodSignatures)
Creates a new inline implementation matcher.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a redefinition dynamic type builder. -
Uses of LatentMatcher in net.bytebuddy.dynamic.scaffold.subclass
Classes in net.bytebuddy.dynamic.scaffold.subclass that implement LatentMatcher Modifier and Type Class Description protected static class
SubclassDynamicTypeBuilder.InstrumentableMatcher
A matcher that locates all methods that are overridable and not ignored or that are directly defined on the instrumented type.Methods in net.bytebuddy.dynamic.scaffold.subclass with parameters of type LatentMatcher Modifier and Type Method Description protected DynamicType.Builder<T>
SubclassDynamicTypeBuilder. materialize(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods)
Constructors in net.bytebuddy.dynamic.scaffold.subclass with parameters of type LatentMatcher Constructor Description InstrumentableMatcher(LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a latent method matcher that matches all methods that are to be instrumented by aSubclassDynamicTypeBuilder
.SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass.SubclassDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, LatentMatcher<? super MethodDescription> ignoredMethods, ConstructorStrategy constructorStrategy)
Creates a new type builder for creating a subclass. -
Uses of LatentMatcher in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher that implement LatentMatcher Modifier and Type Class Description static class
LatentMatcher.Conjunction<S>
A matcher that computes the conjunction of all supplied latent matchers.static class
LatentMatcher.Disjunction<S>
A matcher that computes the disjunction of all supplied latent matchers.static class
LatentMatcher.ForFieldToken
A latent matcher where the field token is being attached to the supplied type description before matching.static class
LatentMatcher.ForMethodToken
A latent matcher where the method token is being attached to the supplied type description before matching.static class
LatentMatcher.ForSelfDeclaredMethod
A latent matching methods that are declared by the resolved type.static class
LatentMatcher.Resolved<S>
A latent matcher representing an already resolvedElementMatcher
.Constructors in net.bytebuddy.matcher with parameters of type LatentMatcher Constructor Description Conjunction(LatentMatcher<? super S>... matcher)
Creates a new conjunction of latent matchers.Disjunction(LatentMatcher<? super S>... matcher)
Creates a new disjunction of latent matchers.Constructor parameters in net.bytebuddy.matcher with type arguments of type LatentMatcher Constructor Description Conjunction(java.util.List<? extends LatentMatcher<? super S>> matchers)
Creates a new conjunction of latent matchers.Disjunction(java.util.List<? extends LatentMatcher<? super S>> matchers)
Creates a new disjunction of latent matchers.
-