public static interface FieldAccessor.FieldDefinable extends FieldAccessor.OwnerTypeLocatable
Instrumentation.Compound, Instrumentation.Context, Instrumentation.ForAbstractMethod, Instrumentation.SpecialMethodInvocation, Instrumentation.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.
|
in, in, in
assigner
appender, prepare
FieldAccessor.AssignerConfigurable defineAs(Class<?> type, ModifierContributor.ForField... modifier)
type
- The type of the field.modifier
- The modifiers for the field.Copyright © 2014. All rights reserved.