public static class AgentBuilder.Default.Transformation.Simple extends Object implements AgentBuilder.Default.Transformation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.Default.Transformation.Simple.Resolution
A resolution that performs a type transformation.
|
AgentBuilder.Default.Transformation.Compound, AgentBuilder.Default.Transformation.Ignored, AgentBuilder.Default.Transformation.Simple| Modifier | Constructor and Description |
|---|---|
protected |
Simple(AgentBuilder.RawMatcher rawMatcher,
AgentBuilder.Transformer transformer,
boolean decorator)
Creates a new transformation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isAlive(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Checks if this transformation is alive.
|
AgentBuilder.Default.Transformation.Resolution |
resolve(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
TypePool typePool,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Resolves an attempted transformation to a specific transformation.
|
String |
toString() |
protected Simple(AgentBuilder.RawMatcher rawMatcher, AgentBuilder.Transformer transformer, boolean decorator)
rawMatcher - The raw matcher that is represented by this transformation.transformer - The transformer that is represented by this transformation.decorator - true if this transformer serves as a decorator.public boolean isAlive(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, AgentBuilder.RawMatcher ignoredTypeMatcher)
AgentBuilder.Default.TransformationisAlive in interface AgentBuilder.Default.TransformationtypeDescription - 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.protectionDomain - The protection domain of the type being transformed.ignoredTypeMatcher - Identifies types that should not be instrumented.true if this transformation is alive.public AgentBuilder.Default.Transformation.Resolution resolve(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, TypePool typePool, AgentBuilder.RawMatcher ignoredTypeMatcher)
AgentBuilder.Default.Transformationresolve in interface AgentBuilder.Default.TransformationtypeDescription - 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.protectionDomain - The protection domain of the type being transformed.typePool - The type pool to apply during type creation.ignoredTypeMatcher - Identifies types that should not be instrumented.Copyright © 2014–2016. All rights reserved.