@HashCodeAndEqualsPlugin.Enhance protected static class Transformer.ForMethod.MethodModifierTransformer extends java.lang.Object implements Transformer<MethodDescription.Token>
Transformer.Compound<S>, Transformer.ForField, Transformer.ForMethod, Transformer.NoOp
Modifier and Type | Field and Description |
---|---|
private ModifierContributor.Resolver<ModifierContributor.ForMethod> |
resolver
The resolver to apply onto the method's modifiers.
|
Modifier | Constructor and Description |
---|---|
protected |
MethodModifierTransformer(ModifierContributor.Resolver<ModifierContributor.ForMethod> resolver)
Creates a new modifier transformation.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.Token |
transform(TypeDescription instrumentedType,
MethodDescription.Token target)
Transforms the supplied target.
|
private final ModifierContributor.Resolver<ModifierContributor.ForMethod> resolver
protected MethodModifierTransformer(ModifierContributor.Resolver<ModifierContributor.ForMethod> resolver)
resolver
- The resolver to apply onto the method's modifiers.public MethodDescription.Token transform(TypeDescription instrumentedType, MethodDescription.Token target)
transform
in interface Transformer<MethodDescription.Token>
instrumentedType
- The instrumented type that declares the target being transformed.target
- The target entity that is being transformed.