2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-09 22:35:14 +01:00
|
|
|
// Java class go.error is a proxy for talking to a Go program.
|
|
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java
|
2017-01-09 22:35:14 +01:00
|
|
|
package go;
|
|
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public interface error {
|
|
|
|
|
public String error();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-09 22:35:14 +01:00
|
|
|
// Java class go.Universe is a proxy for talking to a Go program.
|
|
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java
|
2017-01-09 22:35:14 +01:00
|
|
|
package go;
|
|
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public abstract class Universe {
|
|
|
|
|
static {
|
|
|
|
|
Seq.touch(); // for loading the native library
|
|
|
|
|
_init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Universe() {} // uninstantiable
|
|
|
|
|
|
|
|
|
|
// touch is called from other bound packages to initialize this package
|
|
|
|
|
public static void touch() {}
|
|
|
|
|
|
|
|
|
|
private static native void _init();
|
|
|
|
|
|
|
|
|
|
private static final class proxyerror extends Exception implements Seq.Proxy, error {
|
2018-04-13 18:43:35 +02:00
|
|
|
private final int refnum;
|
2017-01-09 22:35:14 +01:00
|
|
|
|
|
|
|
|
@Override public final int incRefnum() {
|
2018-04-14 12:55:03 +02:00
|
|
|
Seq.incGoRef(refnum, this);
|
2017-01-09 22:35:14 +01:00
|
|
|
return refnum;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
proxyerror(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
|
2017-01-09 22:35:14 +01:00
|
|
|
|
|
|
|
|
@Override public String getMessage() { return error(); }
|
|
|
|
|
|
|
|
|
|
public native String error();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|