Interface InvokeDynamic.InvocationProvider.ArgumentProvider
- All Known Implementing Classes:
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider, 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.ForField.WithExplicitType, 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.ForMethodParameter.WithExplicitType, InvokeDynamic.InvocationProvider.ArgumentProvider.ForNullValue, InvokeDynamic.InvocationProvider.ArgumentProvider.ForShortConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForStringConstant, InvokeDynamic.InvocationProvider.ArgumentProvider.ForThisInstance
- Enclosing interface:
InvokeDynamic.InvocationProvider
public static interface InvokeDynamic.InvocationProvider.ArgumentProvider
An argument provider is responsible for loading arguments to a bootstrapped method onto the operand
stack and providing the types of these arguments.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents wrapper types and types that could be stored in a class's constant pool as such constant pool values.static classAn argument provider for abooleanvalue.static classAn argument provider for abytevalue.static classAn argument provider for acharvalue.static classAn argument provider for aClassconstant.static classAn argument provider for adoublevalue.static classAn argument provider for anEnumconstant.static classProvides an argument from an existing field.static classAn argument provider for afloatvalue.static classAn argument provider for a value that is stored in a randomly named static field.static classAn argument provider for aintvalue.static enumAn argument provider that loads a reference to the intercepted instance and all arguments of the intercepted method.static enumAn argument provider that loads all arguments of the intercepted method.static classAn argument provider for a Java instance.static classAn argument provider for alongvalue.static classAn argument provider that loads an argument of the intercepted method.static classAn argument provider for thenullvalue.static classAn argument provider for ashortvalue.static classAn argument provider for aStringvalue.static classAn argument provider that loads the intercepted instance.static interface -
Method Summary
Modifier and TypeMethodDescriptionprepare(InstrumentedType instrumentedType) Prepares the instrumented type.resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.
-
Method Details
-
resolve
InvokeDynamic.InvocationProvider.ArgumentProvider.Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) Resolves an argument provider.- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.assigner- The assigner to be used.typing- Indicates if dynamic type castings should be attempted for incompatible assignments.- Returns:
- A resolved version of this argument provider.
-
prepare
Prepares the instrumented type.- Parameters:
instrumentedType- The instrumented type.- Returns:
- The prepared instrumented type.
-