public static interface FieldAccessor.FieldDefinable extends FieldAccessor.OwnerTypeLocatable
Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Modifier and Type | Method and Description |
---|---|
FieldAccessor.AssignerConfigurable |
defineAs(Class<?> type,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
FieldAccessor.AssignerConfigurable |
defineAs(TypeDescription typeDescription,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
in, in, in
withAssigner
appender, prepare
FieldAccessor.AssignerConfigurable defineAs(Class<?> type, ModifierContributor.ForField... modifier)
type
- The type of the field.modifier
- The modifiers for the field.FieldAccessor.AssignerConfigurable defineAs(TypeDescription typeDescription, ModifierContributor.ForField... modifier)
typeDescription
- The type of the field.modifier
- The modifiers for the field.Copyright © 2014–2015. All rights reserved.