Package net.bytebuddy.agent.builder
Enum Class 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>
,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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
true
if this matcher is matching. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Trivial
(boolean matching) Creates a new trivial matcher for immediate resubmission. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, 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 matchingtrue
if this matcher is matching.
-
-
Constructor Details
-
Trivial
private Trivial(boolean matching) Creates a new trivial matcher for immediate resubmission.- Parameters:
matching
-true
if this matcher is matching.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
matches
public boolean matches(String typeName, @MaybeNull 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.
-