Package net.bytebuddy.utility
Interface JavaConstant.MethodType.Dispatcher
- Enclosing class:
JavaConstant.MethodType
@Proxied("java.lang.invoke.MethodType")
protected static interface JavaConstant.MethodType.Dispatcher
A dispatcher for extracting information from a
java.lang.invoke.MethodType
instance.-
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
parameterArray
(Object methodType) Extracts the parameter types of the supplied method type.Class
<?> returnType
(Object methodType) Extracts the return type of the supplied method type.
-
Method Details
-
returnType
Extracts the return type of the supplied method type.- Parameters:
methodType
- An instance ofjava.lang.invoke.MethodType
.- Returns:
- The return type that is described by the supplied instance.
-
parameterArray
Extracts the parameter types of the supplied method type.- Parameters:
methodType
- An instance ofjava.lang.invoke.MethodType
.- Returns:
- The parameter types that are described by the supplied instance.
-