Package net.bytebuddy.implementation
Class FieldAccessor.ForParameterSetter
- java.lang.Object
-
- net.bytebuddy.implementation.FieldAccessor
-
- net.bytebuddy.implementation.FieldAccessor.ForParameterSetter
-
- All Implemented Interfaces:
InstrumentedType.Prepareable
,Implementation
,Implementation.Composable
- Enclosing class:
- FieldAccessor
protected static class FieldAccessor.ForParameterSetter extends FieldAccessor implements Implementation.Composable
A field accessor that sets a parameters value of a given index.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FieldAccessor.ForParameterSetter.Appender
An appender for a field accessor that sets a parameter of a given index.protected static class
FieldAccessor.ForParameterSetter.TerminationHandler
A termination handler is responsible for handling a field accessor's return.-
Nested classes/interfaces inherited from class net.bytebuddy.implementation.FieldAccessor
FieldAccessor.AssignerConfigurable, FieldAccessor.FieldLocation, FieldAccessor.FieldNameExtractor, FieldAccessor.ForImplicitProperty, FieldAccessor.ForParameterSetter, FieldAccessor.OwnerTypeLocatable, FieldAccessor.PropertyConfigurable
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.implementation.FieldAccessor
assigner, fieldLocation, typing
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForParameterSetter(FieldAccessor.FieldLocation fieldLocation, Assigner assigner, Assigner.Typing typing, int index)
Creates a new field accessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation
andThen(Implementation implementation)
Appends the supplied implementation to this implementation.ByteCodeAppender
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.-
Methods inherited from class net.bytebuddy.implementation.FieldAccessor
getter, of, of, of, ofBeanProperty, ofField, prepare, setter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
prepare
-
-
-
-
Constructor Detail
-
ForParameterSetter
protected ForParameterSetter(FieldAccessor.FieldLocation fieldLocation, Assigner assigner, Assigner.Typing typing, int index)
Creates a new field accessor.- Parameters:
fieldLocation
- The field's location.assigner
- The assigner to use.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.index
- The targeted parameter index.
-
-
Method Detail
-
appender
public ByteCodeAppender appender(Implementation.Target implementationTarget)
Description copied from interface:Implementation
Creates a byte code appender that determines the implementation of the instrumented type's methods.- Specified by:
appender
in interfaceImplementation
- Parameters:
implementationTarget
- The target of the current implementation.- Returns:
- A byte code appender for implementing methods delegated to this implementation. This byte code appender
is also responsible for handling methods that were added by this implementation on the call to
InstrumentedType.Prepareable.prepare(InstrumentedType)
.
-
andThen
public Implementation andThen(Implementation implementation)
Description copied from interface:Implementation.Composable
Appends the supplied implementation to this implementation.- Specified by:
andThen
in interfaceImplementation.Composable
- Parameters:
implementation
- The subsequent implementation.- Returns:
- An implementation that combines this implementation with the provided one.
-
-