public static class MethodTransformer.Simple extends Object implements MethodTransformer
MethodTransformer.Simple.TokenTransformer
.Modifier and Type | Class and Description |
---|---|
static interface |
MethodTransformer.Simple.TokenTransformer
A transformer is responsible for transforming a method token into its transformed form.
|
protected static class |
MethodTransformer.Simple.TransformedMethod
The transformed method.
|
MethodTransformer.Compound, MethodTransformer.NoOp, MethodTransformer.Simple
Constructor and Description |
---|
Simple(MethodTransformer.Simple.TokenTransformer tokenTransformer)
Creates a new transforming method transformer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
MethodDescription |
transform(TypeDescription instrumentedType,
MethodDescription methodDescription)
Transforms a method.
|
static MethodTransformer |
withModifiers(ModifierContributor.ForMethod... modifierTransformer)
Creates a transformer that enforces the supplied modifier contributors.
|
public Simple(MethodTransformer.Simple.TokenTransformer tokenTransformer)
tokenTransformer
- The transformer to be applied.public static MethodTransformer withModifiers(ModifierContributor.ForMethod... modifierTransformer)
modifierTransformer
- The modifier transformers in their application order.public MethodDescription transform(TypeDescription instrumentedType, MethodDescription methodDescription)
MethodTransformer
transform
in interface MethodTransformer
instrumentedType
- The instrumented type.methodDescription
- The method to be transformed.Copyright © 2014–2016. All rights reserved.