@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RawMatcher.Conjunction extends Object implements AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Conjunction, AgentBuilder.RawMatcher.Disjunction, AgentBuilder.RawMatcher.ForElementMatchers, AgentBuilder.RawMatcher.ForLoadState, AgentBuilder.RawMatcher.ForResolvableTypes, AgentBuilder.RawMatcher.Inversion, AgentBuilder.RawMatcher.Trivial| Modifier | Constructor and Description |
|---|---|
protected |
Conjunction(AgentBuilder.RawMatcher... matcher)
Creates a new conjunction of two raw matchers.
|
protected |
Conjunction(List<? extends AgentBuilder.RawMatcher> matchers)
Creates a new conjunction of two raw matchers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers. |
protected Conjunction(AgentBuilder.RawMatcher... matcher)
matcher - The matchers to apply in their application order.protected Conjunction(List<? extends AgentBuilder.RawMatcher> matchers)
matchers - The matchers to apply in their application order.public boolean matches(TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain)
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers.matches in interface AgentBuilder.RawMatchertypeDescription - A description of the type to be instrumented.classLoader - The class loader of the instrumented type. Might be null if this class
loader represents the bootstrap class loader.module - The transformed type's module or null if the current VM does not support modules.classBeingRedefined - The class being redefined which is only not null if a retransformation
is applied.protectionDomain - The protection domain of the type being transformed or null if none is available.true if the entailed AgentBuilder.Transformers should
be applied for the given typeDescription.Copyright © 2014–2025. All rights reserved.