public static class FieldTransformer.Simple extends Object implements FieldTransformer
Modifier and Type | Class and Description |
---|---|
static interface |
FieldTransformer.Simple.TokenTransformer
A transformer for a field token where the resulting token is used to represent the transformed field.
|
protected static class |
FieldTransformer.Simple.TransformedField
An implementation of a transformed field.
|
FieldTransformer.Compound, FieldTransformer.NoOp, FieldTransformer.Simple
Constructor and Description |
---|
Simple(FieldTransformer.Simple.TokenTransformer tokenTransformer)
Creates a new simple field transformer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
FieldDescription |
transform(TypeDescription instrumentedType,
FieldDescription fieldDescription)
Transforms a field.
|
static FieldTransformer |
withModifiers(ModifierContributor.ForField... modifierContributor)
Creates a field transformer that patches the transformed field by the givien modifier contributors.
|
public Simple(FieldTransformer.Simple.TokenTransformer tokenTransformer)
tokenTransformer
- The token transformer to apply to a transformed field.public static FieldTransformer withModifiers(ModifierContributor.ForField... modifierContributor)
modifierContributor
- The modifier contributors to apply.public FieldDescription transform(TypeDescription instrumentedType, FieldDescription fieldDescription)
FieldTransformer
transform
in interface FieldTransformer
instrumentedType
- The instrumented type.fieldDescription
- The field to be transformed.Copyright © 2014–2016. All rights reserved.