Package net.bytebuddy.agent.builder
Enum Class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
- All Implemented Interfaces:
Serializable
,Comparable<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial>
,Constable
,AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- Enclosing interface:
- AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
public static enum AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
extends Enum<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial>
implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
A trivial matcher for resubmission upon an exception.
-
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.ResubmissionOnErrorMatcher
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.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 a resubmission upon an exception. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.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
Always matches a type. -
NON_MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.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 a resubmission upon an exception.- 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.ResubmissionOnErrorMatcher.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(Throwable throwable, String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.- Specified by:
matches
in interfaceAgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- Parameters:
throwable
- The exception being raised.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.
-