public static enum AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial extends Enum<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial> implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial| Enum Constant and Description |
|---|
MATCHING
Always matches a type.
|
NON_MATCHING
Never matches a type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Throwable throwable,
String typeName,
ClassLoader classLoader,
JavaModule module)
Returns
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation. |
static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial NON_MATCHING
public static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial[] values()
for (AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial c : AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial.values()) System.out.println(c);
public static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean matches(Throwable throwable, String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module)
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.matches in interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcherthrowable - The exception being raised.typeName - The name of the instrumented type.classLoader - The class loader of the instrumented type or null if the type is loaded by the bootstrap class loader.module - The module of the instrumented type or null if the current VM does not support modules.true if the type should be resubmitted.Copyright © 2014–2025. All rights reserved.