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 java.lang.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 Modifier and Type Field Description private TypeDescription
typeDescription
The requested return type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForExplicitType(TypeDescription typeDescription)
Creates a new return type provider for an explicit return type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription
resolve(MethodDescription methodDescription)
Resolves the return type that is requested from the bootstrap method.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The requested return type.
-
-
Constructor Detail
-
ForExplicitType
protected ForExplicitType(TypeDescription typeDescription)
Creates a new return type provider for an explicit return type.- Parameters:
typeDescription
- The requested return type.
-
-
Method Detail
-
resolve
public TypeDescription resolve(MethodDescription methodDescription)
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.
-
-