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.DispatcherA dispatcher for extracting information from ajava.lang.invoke.MethodTypeinstance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJavaConstant.MethodType.Dispatcher.CreationActionA creation action for a dispatcher.static classJavaConstant.MethodType.Dispatcher.ForJava7CapableVmA dispatcher for virtual machines that are aware of thejava.lang.invoke.MethodTypetype that was added in Java version 7.static classJavaConstant.MethodType.Dispatcher.ForLegacyVmA dispatcher for virtual machines that are not aware of thejava.lang.invoke.MethodTypetype 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.
-
-