public static enum AgentBuilder.RawMatcher.Trivial extends java.lang.Enum<AgentBuilder.RawMatcher.Trivial> 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 |
---|
MATCHING
Always matches a type.
|
NON_MATCHING
Never matches a type.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
matches
true if this matcher always matches a type. |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(TypeDescription typeDescription,
java.lang.ClassLoader classLoader,
JavaModule module,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
static AgentBuilder.RawMatcher.Trivial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RawMatcher.Trivial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RawMatcher.Trivial MATCHING
public static final AgentBuilder.RawMatcher.Trivial NON_MATCHING
public static AgentBuilder.RawMatcher.Trivial[] values()
for (AgentBuilder.RawMatcher.Trivial c : AgentBuilder.RawMatcher.Trivial.values()) System.out.println(c);
public static AgentBuilder.RawMatcher.Trivial valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean matches(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain)
typeDescription
should be instrumented with the entailed
AgentBuilder.Transformer
s.matches
in interface AgentBuilder.RawMatcher
typeDescription
- 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.Transformer
s should
be applied for the given typeDescription
.