Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction
-
- All Implemented Interfaces:
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Enclosing interface:
- AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
@Enhance public static class AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction extends java.lang.Object implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
A matcher for immediate resubmission that matches either of the supplied delegate matchers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher>
matchers
The matchers in their application order.
-
Constructor Summary
Constructors Constructor Description Disjunction(java.util.List<? extends AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher> matchers)
Creates a new disjunction for an immediate resubmission matcher.Disjunction(AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher... matcher)
Creates a new conjunction for an immediate resubmission matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module)
Returnstrue
if a type should be resubmitted if it is not yet loaded.
-
-
-
Field Detail
-
matchers
private final java.util.List<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher> matchers
The matchers in their application order.
-
-
Constructor Detail
-
Disjunction
public Disjunction(AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher... matcher)
Creates a new conjunction for an immediate resubmission matcher.- Parameters:
matcher
- The matchers in their application order.
-
Disjunction
public Disjunction(java.util.List<? extends AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher> matchers)
Creates a new disjunction for an immediate resubmission matcher.- Parameters:
matchers
- The matchers in their application order.
-
-
Method Detail
-
matches
public boolean matches(java.lang.String typeName, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module)
Returnstrue
if a type should be resubmitted if it is not yet loaded.- Specified by:
matches
in interfaceAgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Parameters:
typeName
- The name of the instrumented type.classLoader
- The class loader of the instrumented type ornull
if the type is loaded by the bootstrap class loader.module
- The module of the instrumented type ornull
if the current VM does not support modules.- Returns:
true
if the type should be resubmitted.
-
-