public static enum AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial extends Enum<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial> implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
Enum Constant and Description |
---|
MATCHING
Always matches a type.
|
NON_MATCHING
Never matches a type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String typeName,
ClassLoader classLoader,
JavaModule module)
Returns
true if a type should be resubmitted if it is not yet loaded. |
static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial NON_MATCHING
public static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial[] values()
for (AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial c : AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial.values()) System.out.println(c);
public static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.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(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module)
true
if a type should be resubmitted if it is not yet loaded.matches
in interface AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
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–2023. All rights reserved.