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 java.lang.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
Fields Modifier and Type Field Description private java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider>
argumentProviders
The arguments to be passed to the bootstrap method.private MethodDescription
instrumentedMethod
The intercepted method.private java.lang.String
internalName
The name to be passed to the bootstrap method.private TypeDescription
returnType
The return type to be requested from the bootstrapping method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Target(java.lang.String internalName, TypeDescription returnType, java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod)
Creates a new target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvokeDynamic.InvocationProvider.Target.Resolved
resolve(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
Resolves the target.
-
-
-
Field Detail
-
internalName
private final java.lang.String internalName
The name to be passed to the bootstrap method.
-
returnType
private final TypeDescription returnType
The return type to be requested from the bootstrapping method.
-
argumentProviders
private final java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders
The arguments to be passed to the bootstrap method.
-
instrumentedMethod
private final MethodDescription instrumentedMethod
The intercepted method.
-
-
Constructor Detail
-
Target
protected Target(java.lang.String internalName, TypeDescription returnType, java.util.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 Detail
-
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.
-
-