corda/classpath/java/lang/invoke/MethodHandle.java

24 lines
506 B
Java
Raw Normal View History

package java.lang.invoke;
public class MethodHandle {
private final ClassLoader loader;
final avian.VMMethod method;
private volatile MethodType type;
MethodHandle(ClassLoader loader, avian.VMMethod method) {
this.loader = loader;
this.method = method;
}
public String toString() {
return new java.lang.reflect.Method(method).toString();
}
public MethodType type() {
if (type == null) {
type = new MethodType(loader, method.spec);
}
return type;
}
}