Package net.bytebuddy.implementation
Interface FixedValue.AssignerConfigurable
- All Superinterfaces:
Implementation
,InstrumentedType.Prepareable
- All Known Implementing Classes:
FixedValue.ForArgument
,FixedValue.ForOriginType
,FixedValue.ForPoolValue
,FixedValue.ForThisValue
,FixedValue.ForValue
- Enclosing class:
- FixedValue
Represents a fixed value implementation that is using a default assigner for attempting to assign
the fixed value to the return type of the instrumented method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
-
Method Summary
Modifier and TypeMethodDescriptionwithAssigner
(Assigner assigner, Assigner.Typing typing) Defines an explicit assigner to this fixed value implementation.Methods inherited from interface net.bytebuddy.implementation.Implementation
appender
Methods inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
prepare
-
Method Details
-
withAssigner
Defines an explicit assigner to this fixed value implementation.- Parameters:
assigner
- The assigner to use for assigning the fixed value to the return type of the instrumented value.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.- Returns:
- A fixed value implementation that makes use of the given assigner.
-