Package net.bytebuddy.utility
Interface JavaConstant.MethodType.Dispatcher
-
- All Known Implementing Classes:
JavaConstant.MethodType.Dispatcher.ForJava7CapableVm
,JavaConstant.MethodType.Dispatcher.ForLegacyVm
- Enclosing class:
- JavaConstant.MethodType
protected static interface JavaConstant.MethodType.Dispatcher
A dispatcher for extracting information from ajava.lang.invoke.MethodType
instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JavaConstant.MethodType.Dispatcher.CreationAction
A creation action for a dispatcher.static class
JavaConstant.MethodType.Dispatcher.ForJava7CapableVm
A dispatcher for virtual machines that are aware of thejava.lang.invoke.MethodType
type that was added in Java version 7.static class
JavaConstant.MethodType.Dispatcher.ForLegacyVm
A dispatcher for virtual machines that are not aware of thejava.lang.invoke.MethodType
type that was added in Java version 7.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>[]
parameterArray(java.lang.Object methodType)
Extracts the parameter types of the supplied method type.java.lang.Class<?>
returnType(java.lang.Object methodType)
Extracts the return type of the supplied method type.
-
-
-
Method Detail
-
returnType
java.lang.Class<?> returnType(java.lang.Object methodType)
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
java.lang.Class<?>[] parameterArray(java.lang.Object methodType)
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.
-
-