protected static class FieldAccessor.ForImplicitProperty extends FieldAccessor implements FieldAccessor.OwnerTypeLocatable
ofBeanProperty| Modifier and Type | Class and Description |
|---|---|
protected class |
FieldAccessor.ForImplicitProperty.Appender
An byte code appender for an field accessor implementation.
|
FieldAccessor.AssignerConfigurable, FieldAccessor.FieldNameExtractor, FieldAccessor.ForImplicitProperty, FieldAccessor.ForParameterSetter, FieldAccessor.OwnerTypeLocatable, FieldAccessor.PropertyConfigurableImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Targetassigner, fieldLocatorFactory, fieldNameExtractor, typing| Modifier | Constructor and Description |
|---|---|
protected |
ForImplicitProperty(FieldAccessor.FieldNameExtractor fieldNameExtractor,
FieldLocator.Factory fieldLocatorFactory)
Creates a field accessor for an implicit property.
|
| 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.
|
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 fieldLocatorFactory)
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.
|
Implementation.Composable |
setsArgumentAt(int index)
Creates a field accessor for the described field that serves as a setter for the supplied parameter index.
|
String |
toString() |
FieldAccessor.PropertyConfigurable |
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.
|
equals, getter, hashCode, of, ofBeanProperty, ofField, prepare, setterclone, finalize, getClass, notify, notifyAll, wait, wait, waitprepareprotected ForImplicitProperty(FieldAccessor.FieldNameExtractor fieldNameExtractor, FieldLocator.Factory fieldLocatorFactory)
fieldNameExtractor - The field name extractor to use.fieldLocatorFactory - The field locator factory to use.public ByteCodeAppender appender(Implementation.Target implementationTarget)
Implementationappender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).public Implementation.Composable setsArgumentAt(int index)
FieldAccessor.PropertyConfigurablevoid or a chained instrumentation must be supplied.setsArgumentAt in interface FieldAccessor.PropertyConfigurableindex - The index of the parameter for which to set the field's value.public FieldAccessor.PropertyConfigurable 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 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 FieldAccessor.AssignerConfigurable in(FieldLocator.Factory fieldLocatorFactory)
FieldAccessor.OwnerTypeLocatablein in interface FieldAccessor.OwnerTypeLocatablefieldLocatorFactory - A factory that will produce a field locator that will be used to find locate
a field to be accessed.Copyright © 2014–2016. All rights reserved.