public static enum AgentBuilder.RawMatcher.ForLoadState extends Enum<AgentBuilder.RawMatcher.ForLoadState> implements AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Conjunction, AgentBuilder.RawMatcher.Disjunction, AgentBuilder.RawMatcher.ForElementMatchers, AgentBuilder.RawMatcher.ForLoadState, AgentBuilder.RawMatcher.ForResolvableTypes, AgentBuilder.RawMatcher.Inversion, AgentBuilder.RawMatcher.Trivial| Enum Constant and Description |
|---|
LOADED
Indicates that a type was already loaded.
|
UNLOADED
Indicates that a type was not yet loaded.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers. |
static AgentBuilder.RawMatcher.ForLoadState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RawMatcher.ForLoadState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RawMatcher.ForLoadState LOADED
public static final AgentBuilder.RawMatcher.ForLoadState UNLOADED
public static AgentBuilder.RawMatcher.ForLoadState[] values()
for (AgentBuilder.RawMatcher.ForLoadState c : AgentBuilder.RawMatcher.ForLoadState.values()) System.out.println(c);
public static AgentBuilder.RawMatcher.ForLoadState 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(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain)
AgentBuilder.RawMatchertypeDescription should be instrumented with the entailed
AgentBuilder.Transformers.matches in interface AgentBuilder.RawMatchertypeDescription - A description of the type to be instrumented.classLoader - The class loader of the instrumented type. Might be null if this class
loader represents the bootstrap class loader.module - The transformed type's module or null if the current VM does not support modules.classBeingRedefined - The class being redefined which is only not null if a retransformation
is applied.protectionDomain - The protection domain of the type being transformed.true if the entailed AgentBuilder.Transformers should
be applied for the given typeDescription.Copyright © 2014–2017. All rights reserved.