Package net.bytebuddy.implementation
Class InvokeDynamic.InvocationProvider.Default.Target
java.lang.Object
net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.Default.Target
- All Implemented Interfaces:
InvokeDynamic.InvocationProvider.Target
- Enclosing class:
InvokeDynamic.InvocationProvider.Default
@Enhance
protected static class InvokeDynamic.InvocationProvider.Default.Target
extends Object
implements InvokeDynamic.InvocationProvider.Target
A target for a synthetically bound method call.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.Target
InvokeDynamic.InvocationProvider.Target.Resolved
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<InvokeDynamic.InvocationProvider.ArgumentProvider> The arguments to be passed to the bootstrap method.private final MethodDescription
The intercepted method.private final String
The name to be passed to the bootstrap method.private final TypeDescription
The return type to be requested from the bootstrapping method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Target
(String internalName, TypeDescription returnType, List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod) Creates a new target. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing) Resolves the target.
-
Field Details
-
internalName
The name to be passed to the bootstrap method. -
returnType
The return type to be requested from the bootstrapping method. -
argumentProviders
The arguments to be passed to the bootstrap method. -
instrumentedMethod
The intercepted method.
-
-
Constructor Details
-
Target
protected Target(String internalName, TypeDescription returnType, List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod) Creates a new target.- Parameters:
internalName
- The name to be passed to the bootstrap method.returnType
- The return type to be requested from the bootstrapping method.argumentProviders
- The arguments to be passed to the bootstrap method.instrumentedMethod
- The intercepted method.
-
-
Method Details
-
resolve
public InvokeDynamic.InvocationProvider.Target.Resolved resolve(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing) Resolves the target.- Specified by:
resolve
in interfaceInvokeDynamic.InvocationProvider.Target
- Parameters:
instrumentedType
- The instrumented type.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.- Returns:
- The resolved target.
-