Enum AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
- All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial>, java.lang.constant.Constable, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Enclosing interface:
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
public static enum AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
extends Enum<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial>
implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
A trivial matcher for immediate resubmission.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleantrueif this matcher is matching. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTrivial(boolean matching) Creates a new trivial matcher for immediate resubmission. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(String typeName, ClassLoader classLoader, JavaModule module) Returnstrueif a type should be resubmitted if it is not yet loaded.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial MATCHINGAlways matches a type. -
NON_MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial NON_MATCHINGNever matches a type.
-
-
Field Details
-
matching
private final boolean matchingtrueif this matcher is matching.
-
-
Constructor Details
-
Trivial
private Trivial(boolean matching) Creates a new trivial matcher for immediate resubmission.- Parameters:
matching-trueif this matcher is matching.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
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.
-