Package net.bytebuddy.agent.builder
Class AgentBuilder.RawMatcher.Disjunction
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RawMatcher.Disjunction
-
- All Implemented Interfaces:
AgentBuilder.RawMatcher
- Enclosing interface:
- AgentBuilder.RawMatcher
@Enhance public static class AgentBuilder.RawMatcher.Disjunction extends java.lang.Object implements AgentBuilder.RawMatcher
A disjunction of two raw matchers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Conjunction, AgentBuilder.RawMatcher.Disjunction, AgentBuilder.RawMatcher.ForElementMatchers, AgentBuilder.RawMatcher.ForLoadState, AgentBuilder.RawMatcher.ForResolvableTypes, AgentBuilder.RawMatcher.Inversion, AgentBuilder.RawMatcher.Trivial
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AgentBuilder.RawMatcher>matchersThe matchers to apply in their application order.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDisjunction(java.util.List<? extends AgentBuilder.RawMatcher> matchers)Creates a new conjunction of two raw matchers.protectedDisjunction(AgentBuilder.RawMatcher... matcher)Creates a new conjunction of two raw matchers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)Decides if the giventypeDescriptionshould be instrumented with the entailedAgentBuilder.Transformers.
-
-
-
Field Detail
-
matchers
private final java.util.List<AgentBuilder.RawMatcher> matchers
The matchers to apply in their application order.
-
-
Constructor Detail
-
Disjunction
protected Disjunction(AgentBuilder.RawMatcher... matcher)
Creates a new conjunction of two raw matchers.- Parameters:
matcher- The matchers to apply in their application order.
-
Disjunction
protected Disjunction(java.util.List<? extends AgentBuilder.RawMatcher> matchers)
Creates a new conjunction of two raw matchers.- Parameters:
matchers- The matchers to apply in their application order.
-
-
Method Detail
-
matches
public boolean matches(TypeDescription typeDescription, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull java.lang.Class<?> classBeingRedefined, @MaybeNull java.security.ProtectionDomain protectionDomain)
Decides if the giventypeDescriptionshould be instrumented with the entailedAgentBuilder.Transformers.- Specified by:
matchesin interfaceAgentBuilder.RawMatcher- Parameters:
typeDescription- A description of the type to be instrumented.classLoader- The class loader of the instrumented type. Might benullif this class loader represents the bootstrap class loader.module- The transformed type's module ornullif the current VM does not support modules.classBeingRedefined- The class being redefined which is only notnullif a retransformation is applied.protectionDomain- The protection domain of the type being transformed ornullif none is available.- Returns:
trueif the entailedAgentBuilder.Transformers should be applied for the giventypeDescription.
-
-