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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Target(String internalName, TypeDescription returnType, 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.
-
-
-
Constructor Detail
-
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 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.
-
-