Debian Codegraph @

bind/testdata/aliases.java.golden

raw
1 // Code generated by gobind. DO NOT EDIT.
2
3 // Java class aliases.S is a proxy for talking to a Go program.
4 //
5 // autogenerated by gobind -lang=java aliases
6 package aliases;
7
8 import go.Seq;
9
10 public final class S implements Seq.Proxy {
11 static { Aliases.touch(); }
12
13 private final int refnum;
14
15 @Override public final int incRefnum() {
16 Seq.incGoRef(refnum, this);
17 return refnum;
18 }
19
20 S(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
21
22 public S() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
23
24 private static native int __New();
25
26 @Override public boolean equals(Object o) {
27 if (o == null || !(o instanceof S)) {
28 return false;
29 }
30 S that = (S)o;
31 return true;
32 }
33
34 @Override public int hashCode() {
35 return java.util.Arrays.hashCode(new Object[] {});
36 }
37
38 @Override public String toString() {
39 StringBuilder b = new StringBuilder();
40 b.append("S").append("{");
41 return b.append("}").toString();
42 }
43 }
44
45 // Code generated by gobind. DO NOT EDIT.
46
47 // Java class aliases.Aliases is a proxy for talking to a Go program.
48 //
49 // autogenerated by gobind -lang=java aliases
50 package aliases;
51
52 import go.Seq;
53
54 public abstract class Aliases {
55 static {
56 Seq.touch(); // for loading the native library
57 _init();
58 }
59
60 private Aliases() {} // uninstantiable
61
62 // touch is called from other bound packages to initialize this package
63 public static void touch() {}
64
65 private static native void _init();
66
67
68
69 public static native void takesAByte(byte a);
70 public static native void takesAByteSlice(byte[] a);
71 public static native void takesAByteSliceAlias(byte[] a);
72 public static native void takesAStructPtr(S a);
73 public static native void takesAStructPtrAlias(S a);
74 }