public static enum AgentBuilder.Default.Transformation.Ignored extends Enum<AgentBuilder.Default.Transformation.Ignored> implements AgentBuilder.Default.Transformation
AgentBuilder.Default.Transformation.Compound, AgentBuilder.Default.Transformation.Ignored, AgentBuilder.Default.Transformation.Resolution, AgentBuilder.Default.Transformation.Simple
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 |
---|
INSTANCE
The singleton instance.
|
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.Transformer s. |
AgentBuilder.Default.Transformation.Resolution |
resolve(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
boolean loaded,
ProtectionDomain protectionDomain,
TypePool typePool)
Resolves an attempted transformation to a specific transformation.
|
static AgentBuilder.Default.Transformation.Ignored |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.Default.Transformation.Ignored[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.Default.Transformation.Ignored INSTANCE
public static AgentBuilder.Default.Transformation.Ignored[] values()
for (AgentBuilder.Default.Transformation.Ignored c : AgentBuilder.Default.Transformation.Ignored.values()) System.out.println(c);
public static AgentBuilder.Default.Transformation.Ignored 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.RawMatcher
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
.public AgentBuilder.Default.Transformation.Resolution resolve(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, boolean loaded, ProtectionDomain protectionDomain, TypePool typePool)
AgentBuilder.Default.Transformation
resolve
in interface AgentBuilder.Default.Transformation
typeDescription
- A description of the type that is to be transformed.classLoader
- The class loader of the type being transformed.module
- The transformed type's module or null
if the current VM does not support modules.classBeingRedefined
- In case of a type redefinition, the loaded type being transformed or null
if that is not the case.loaded
- true
if the instrumented type is loaded.protectionDomain
- The protection domain of the type being transformed.typePool
- The type pool to apply during type creation.Copyright © 2014–2017. All rights reserved.