public static class JavaInstance.MethodType.Dispatcher.ForJava7CapableVm extends Object implements JavaInstance.MethodType.Dispatcher
java.lang.invoke.MethodType
type that was added in Java version 7.JavaInstance.MethodType.Dispatcher.ForJava7CapableVm, JavaInstance.MethodType.Dispatcher.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava7CapableVm(Method returnType,
Method parameterArray)
Creates a new dispatcher for a modern JVM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
Class<?>[] |
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.
|
String |
toString() |
public Class<?> returnType(Object methodType)
JavaInstance.MethodType.Dispatcher
returnType
in interface JavaInstance.MethodType.Dispatcher
methodType
- An instance of java.lang.invoke.MethodType
.public Class<?>[] parameterArray(Object methodType)
JavaInstance.MethodType.Dispatcher
parameterArray
in interface JavaInstance.MethodType.Dispatcher
methodType
- An instance of java.lang.invoke.MethodType
.Copyright © 2014–2016. All rights reserved.