Package net.bytebuddy.implementation
Class InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType
- java.lang.Object
-
- net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
-
- net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType
-
- All Implemented Interfaces:
InvokeDynamic.InvocationProvider.ArgumentProvider
- Enclosing class:
- InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
@Enhance protected static class InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType extends InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
An argument provider for a field value with an explicit type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitType
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper, InvokeDynamic.InvocationProvider.ArgumentProvider.ForBooleanConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForByteConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForCharacterConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForClassConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForDoubleConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForEnumerationValue, InvokeDynamic.InvocationProvider.ArgumentProvider.ForField, InvokeDynamic.InvocationProvider.ArgumentProvider.ForFloatConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance, InvokeDynamic.InvocationProvider.ArgumentProvider.ForIntegerConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodInstanceAndParameters, InvokeDynamic.InvocationProvider.ArgumentProvider.ForInterceptedMethodParameters, InvokeDynamic.InvocationProvider.ArgumentProvider.ForJavaConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForLongConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForMethodParameter, InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue, InvokeDynamic.InvocationProvider.ArgumentProvider.ForShortConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForStringConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance, InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The explicit type.-
Fields inherited from class net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
fieldLocatorFactory, fieldName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithExplicitType(java.lang.String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved
doResolve(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing)
Resolves this argument provider.-
Methods inherited from class net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
prepare, resolve
-
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The explicit type.
-
-
Constructor Detail
-
WithExplicitType
protected WithExplicitType(java.lang.String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription)
Creates an argument provider for a field value with an explicit type.- Parameters:
fieldName
- The name of the field.fieldLocatorFactory
- The field locator factory to use.typeDescription
- The explicit type.
-
-
Method Detail
-
doResolve
protected InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved doResolve(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing)
Resolves this argument provider.- Overrides:
doResolve
in classInvokeDynamic.InvocationProvider.ArgumentProvider.ForField
- Parameters:
access
- The stack manipulation for accessing the argument value.typeDescription
- The type of the loaded value.assigner
- The assigner to use.typing
- The typing required.- Returns:
- A resolved version of this arguments provider.
-
-