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 InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
InvokeDynamic.InvocationProvider.ArgumentProvider.ForField.WithExplicitTypeNested classes/interfaces inherited from interface 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
FieldsFields inherited from class InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
fieldLocatorFactory, fieldName -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWithExplicitType(String fieldName, FieldLocator.Factory fieldLocatorFactory, TypeDescription typeDescription) Creates an argument provider for a field value with an explicit type. -
Method Summary
Modifier and TypeMethodDescriptiondoResolve(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.Methods inherited from class InvokeDynamic.InvocationProvider.ArgumentProvider.ForField
prepare, resolve
-
Field Details
-
typeDescription
The explicit type.
-
-
Constructor Details
-
WithExplicitType
protected WithExplicitType(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 Details
-
doResolve
protected InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved doResolve(StackManipulation access, TypeDescription.Generic typeDescription, Assigner assigner, Assigner.Typing typing) Resolves this argument provider.- Overrides:
doResolvein 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.
-