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.PropertyConfigurable
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
assigner, 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, setter
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
prepare
protected 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)
Implementation
appender
in interface Implementation
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.public Implementation.Composable setsArgumentAt(int index)
FieldAccessor.PropertyConfigurable
void
or a chained instrumentation must be supplied.setsArgumentAt
in interface FieldAccessor.PropertyConfigurable
index
- The index of the parameter for which to set the field's value.public FieldAccessor.PropertyConfigurable withAssigner(Assigner assigner, Assigner.Typing typing)
FieldAccessor.AssignerConfigurable
withAssigner
in interface FieldAccessor.AssignerConfigurable
assigner
- The assigner to use.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.public FieldAccessor.AssignerConfigurable in(Class<?> type)
FieldAccessor.OwnerTypeLocatable
in
in interface FieldAccessor.OwnerTypeLocatable
type
- The type to be considered.public FieldAccessor.AssignerConfigurable in(TypeDescription typeDescription)
FieldAccessor.OwnerTypeLocatable
in
in interface FieldAccessor.OwnerTypeLocatable
typeDescription
- A description of the type to be considered.public FieldAccessor.AssignerConfigurable in(FieldLocator.Factory fieldLocatorFactory)
FieldAccessor.OwnerTypeLocatable
in
in interface FieldAccessor.OwnerTypeLocatable
fieldLocatorFactory
- 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.