Package net.bytebuddy.implementation
Class InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType
java.lang.Object
net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType
- All Implemented Interfaces:
InvokeDynamic.InvocationProvider.ReturnTypeProvider
- Enclosing interface:
- InvokeDynamic.InvocationProvider.ReturnTypeProvider
@Enhance
public static class InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType
extends Object
implements InvokeDynamic.InvocationProvider.ReturnTypeProvider
Requests an explicit return type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ReturnTypeProvider
InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForExplicitType, InvokeDynamic.InvocationProvider.ReturnTypeProvider.ForInterceptedMethod
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForExplicitType
(TypeDescription typeDescription) Creates a new return type provider for an explicit return type. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription methodDescription) Resolves the return type that is requested from the bootstrap method.
-
Field Details
-
typeDescription
The requested return type.
-
-
Constructor Details
-
ForExplicitType
Creates a new return type provider for an explicit return type.- Parameters:
typeDescription
- The requested return type.
-
-
Method Details
-
resolve
Resolves the return type that is requested from the bootstrap method.- Specified by:
resolve
in interfaceInvokeDynamic.InvocationProvider.ReturnTypeProvider
- Parameters:
methodDescription
- The intercepted method.- Returns:
- The return type that is requested from the bootstrap method.
-