2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-01 22:43:46 +01:00
|
|
|
// Java class issue12403.Parsable is a proxy for talking to a Go program.
|
2016-08-20 21:10:46 +02:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java issue12403
|
2017-01-01 22:43:46 +01:00
|
|
|
package issue12403;
|
2016-08-20 21:10:46 +02:00
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public interface Parsable {
|
2016-09-04 23:37:26 +03:00
|
|
|
public String fromJSON(String jstr);
|
|
|
|
|
public String toJSON() throws Exception;
|
2016-08-20 21:10:46 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-01 22:43:46 +01:00
|
|
|
// Java class issue12403.Issue12403 is a proxy for talking to a Go program.
|
2015-08-31 01:06:30 -04:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java issue12403
|
2017-01-01 22:43:46 +01:00
|
|
|
package issue12403;
|
2015-08-31 01:06:30 -04:00
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public abstract class Issue12403 {
|
2016-02-12 18:50:33 +01:00
|
|
|
static {
|
|
|
|
|
Seq.touch(); // for loading the native library
|
2016-09-04 23:37:26 +03:00
|
|
|
_init();
|
2016-02-12 18:50:33 +01:00
|
|
|
}
|
|
|
|
|
|
2015-08-31 01:06:30 -04:00
|
|
|
private Issue12403() {} // uninstantiable
|
|
|
|
|
|
2016-03-13 18:28:54 +01:00
|
|
|
// touch is called from other bound packages to initialize this package
|
|
|
|
|
public static void touch() {}
|
|
|
|
|
|
2016-09-04 23:37:26 +03:00
|
|
|
private static native void _init();
|
2016-02-12 18:50:33 +01:00
|
|
|
|
2016-09-19 12:44:13 +02:00
|
|
|
private static final class proxyParsable implements Seq.Proxy, Parsable {
|
2018-04-13 18:43:35 +02:00
|
|
|
private final int refnum;
|
2016-09-19 12:44:13 +02:00
|
|
|
|
|
|
|
|
@Override public final int incRefnum() {
|
2018-04-14 12:55:03 +02:00
|
|
|
Seq.incGoRef(refnum, this);
|
2016-09-19 12:44:13 +02:00
|
|
|
return refnum;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
proxyParsable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
|
2016-09-19 12:44:13 +02:00
|
|
|
|
2016-09-04 23:37:26 +03:00
|
|
|
public native String fromJSON(String jstr);
|
|
|
|
|
public native String toJSON() throws Exception;
|
2015-08-31 01:06:30 -04:00
|
|
|
}
|
|
|
|
|
|
2016-02-12 18:50:33 +01:00
|
|
|
|
2015-08-31 01:06:30 -04:00
|
|
|
}
|