public static interface FieldAccessor.FieldDefinable extends FieldAccessor.OwnerTypeLocatable
Instrumentation.Compound, Instrumentation.Context, Instrumentation.ForAbstractMethod, Instrumentation.Simple, 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.
|
FieldAccessor.AssignerConfigurable |
defineAs(TypeDescription typeDescription,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
in, in, inwithAssignerappender, prepareFieldAccessor.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. All rights reserved.