Debian Codegraph @

bind/testdata/issue12403.java.golden

raw
1 // Code generated by gobind. DO NOT EDIT.
2
3 // Java class issue12403.Parsable is a proxy for talking to a Go program.
4 //
5 // autogenerated by gobind -lang=java issue12403
6 package issue12403;
7
8 import go.Seq;
9
10 public interface Parsable {
11 public String fromJSON(String jstr);
12 public String toJSON() throws Exception;
13
14 }
15
16 // Code generated by gobind. DO NOT EDIT.
17
18 // Java class issue12403.Issue12403 is a proxy for talking to a Go program.
19 //
20 // autogenerated by gobind -lang=java issue12403
21 package issue12403;
22
23 import go.Seq;
24
25 public abstract class Issue12403 {
26 static {
27 Seq.touch(); // for loading the native library
28 _init();
29 }
30
31 private Issue12403() {} // uninstantiable
32
33 // touch is called from other bound packages to initialize this package
34 public static void touch() {}
35
36 private static native void _init();
37
38 private static final class proxyParsable implements Seq.Proxy, Parsable {
39 private final int refnum;
40
41 @Override public final int incRefnum() {
42 Seq.incGoRef(refnum, this);
43 return refnum;
44 }
45
46 proxyParsable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
47
48 public native String fromJSON(String jstr);
49 public native String toJSON() throws Exception;
50 }
51
52
53 }