protected static class FieldAccessor.ForUnnamedField extends FieldAccessor implements FieldAccessor.OwnerTypeLocatable
ofBeanPropertyFieldAccessor.Appender, FieldAccessor.AssignerConfigurable, FieldAccessor.FieldDefinable, FieldAccessor.FieldNameExtractor, FieldAccessor.ForNamedField, FieldAccessor.ForUnnamedField, FieldAccessor.OwnerTypeLocatableImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Targetassigner, typing| Modifier | Constructor and Description | 
|---|---|
protected  | 
ForUnnamedField(Assigner assigner,
               Assigner.Typing typing,
               FieldAccessor.FieldNameExtractor fieldNameExtractor)
Creates a new field accessor implementation. 
 | 
protected  | 
ForUnnamedField(Assigner assigner,
               Assigner.Typing typing,
               FieldAccessor.FieldNameExtractor fieldNameExtractor,
               FieldLocator.Factory fieldLocatorFactory)
Creates a new field accessor implementation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ByteCodeAppender | 
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods. 
 | 
boolean | 
equals(Object other)  | 
protected String | 
getFieldName(MethodDescription targetMethod)
Locates a field's name. 
 | 
int | 
hashCode()  | 
FieldAccessor.AssignerConfigurable | 
in(Class<?> type)
Determines that a field should only be considered when it was defined in a given type. 
 | 
FieldAccessor.AssignerConfigurable | 
in(FieldLocator.Factory factory)
Determines that a field should only be considered when it was identified by a field locator that is
 produced by the given factory. 
 | 
FieldAccessor.AssignerConfigurable | 
in(TypeDescription typeDescription)
Determines that a field should only be considered when it was defined in a given type. 
 | 
InstrumentedType | 
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type. 
 | 
String | 
toString()  | 
Implementation | 
withAssigner(Assigner assigner,
            Assigner.Typing typing)
Returns a field accessor that is identical to this field accessor but uses the given assigner
 and runtime type use configuration. 
 | 
applyGetter, applySetter, of, ofBeanProperty, ofFieldprotected ForUnnamedField(Assigner assigner, Assigner.Typing typing, FieldAccessor.FieldNameExtractor fieldNameExtractor)
assigner - The assigner to use.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.fieldNameExtractor - The field name extractor to use.protected ForUnnamedField(Assigner assigner, Assigner.Typing typing, FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator.Factory fieldLocatorFactory)
assigner - The assigner to use.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.fieldNameExtractor - The field name extractor to use.fieldLocatorFactory - A factory that will produce a field locator that will be used to find locate
                            a field to be accessed.public FieldAccessor.AssignerConfigurable in(FieldLocator.Factory factory)
FieldAccessor.OwnerTypeLocatablein in interface FieldAccessor.OwnerTypeLocatablefactory - A factory that will produce a field locator that will be used to find locate
                            a field to be accessed.public FieldAccessor.AssignerConfigurable in(Class<?> type)
FieldAccessor.OwnerTypeLocatablein in interface FieldAccessor.OwnerTypeLocatabletype - The type to be considered.public FieldAccessor.AssignerConfigurable in(TypeDescription typeDescription)
FieldAccessor.OwnerTypeLocatablein in interface FieldAccessor.OwnerTypeLocatabletypeDescription - A description of the type to be considered.public Implementation withAssigner(Assigner assigner, Assigner.Typing typing)
FieldAccessor.AssignerConfigurablewithAssigner in interface FieldAccessor.AssignerConfigurableassigner - The assigner to use.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareableprepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
Implementationappender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).protected String getFieldName(MethodDescription targetMethod)
FieldAccessorgetFieldName in class FieldAccessortargetMethod - The method that is target of the implementation.public boolean equals(Object other)
equals in class FieldAccessorpublic int hashCode()
hashCode in class FieldAccessorCopyright © 2014–2016. All rights reserved.