Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction
- All Implemented Interfaces:
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Enclosing interface:
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
@Enhance
public static class AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction
extends Object
implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
A matcher for immediate resubmission that matches both 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
FieldsModifier and TypeFieldDescriptionThe matchers in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionConjunction(List<? extends AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher> matchers) Creates a new conjunction for an immediate resubmission matcher.Creates a new conjunction for an immediate resubmission matcher. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(String typeName, ClassLoader classLoader, JavaModule module) Returnstrueif a type should be resubmitted if it is not yet loaded.
-
Field Details
-
matchers
The matchers in their application order.
-
-
Constructor Details
-
Conjunction
Creates a new conjunction for an immediate resubmission matcher.- Parameters:
matcher- The matchers in their application order.
-
Conjunction
public Conjunction(List<? extends AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher> matchers) Creates a new conjunction for an immediate resubmission matcher.- Parameters:
matchers- The matchers in their application order.
-
-
Method Details
-
matches
public boolean matches(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module) Returnstrueif a type should be resubmitted if it is not yet loaded.- Specified by:
matchesin interfaceAgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher- Parameters:
typeName- The name of the instrumented type.classLoader- The class loader of the instrumented type ornullif the type is loaded by the bootstrap class loader.module- The module of the instrumented type ornullif the current VM does not support modules.- Returns:
trueif the type should be resubmitted.
-