public static class FieldAccessor.ForNamedField.PreparationHandler.FieldDefiner extends Object implements FieldAccessor.ForNamedField.PreparationHandler
FieldAccessor.ForNamedField.PreparationHandler.FieldDefiner, FieldAccessor.ForNamedField.PreparationHandler.NoOp| Modifier | Constructor and Description |
|---|---|
protected |
FieldDefiner(String name,
TypeDescription typeDescription,
int modifiers)
Creates a new field definer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
static FieldAccessor.ForNamedField.PreparationHandler |
of(String name,
TypeDescription typeDescription,
ModifierContributor.ForField... contributor)
Creates a new preparation handler that defines a given field.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type.
|
String |
toString() |
protected FieldDefiner(String name, TypeDescription typeDescription, int modifiers)
name - The name of the field that is defined by this preparation handler.typeDescription - The type of the field that is to be defined.modifiers - The modifiers of the field that is to be defined.public static FieldAccessor.ForNamedField.PreparationHandler of(String name, TypeDescription typeDescription, ModifierContributor.ForField... contributor)
name - The name of the field that is defined by this preparation handler.typeDescription - The type of the field that is to be defined.contributor - The modifiers of the field that is to be defined.public InstrumentedType prepare(InstrumentedType instrumentedType)
FieldAccessor.ForNamedField.PreparationHandlerprepare in interface FieldAccessor.ForNamedField.PreparationHandlerinstrumentedType - The instrumented type to be prepared.Copyright © 2014–2015. All rights reserved.