Package net.bytebuddy.implementation
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 enum
Represents wrapper types and types that could be stored in a class's constant pool as such constant pool values.static class
An argument provider for aboolean
value.static class
An argument provider for abyte
value.static class
An argument provider for achar
value.static class
An argument provider for aClass
constant.static class
An argument provider for adouble
value.static class
An argument provider for anEnum
constant.static class
Provides an argument from an existing field.static class
An argument provider for afloat
value.static class
An argument provider for a value that is stored in a randomly named static field.static class
An argument provider for aint
value.static enum
An argument provider that loads a reference to the intercepted instance and all arguments of the intercepted method.static enum
An argument provider that loads all arguments of the intercepted method.static class
An argument provider for a Java instance.static class
An argument provider for along
value.static class
An argument provider that loads an argument of the intercepted method.static class
An argument provider for thenull
value.static class
An argument provider for ashort
value.static class
An argument provider for aString
value.static class
An 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.
-