interfaces.java.golden 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class interfaces.Error is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java interfaces
  5. package interfaces;
  6. import go.Seq;
  7. public interface Error {
  8. public void err() throws Exception;
  9. }
  10. // Code generated by gobind. DO NOT EDIT.
  11. // Java class interfaces.I is a proxy for talking to a Go program.
  12. //
  13. // autogenerated by gobind -lang=java interfaces
  14. package interfaces;
  15. import go.Seq;
  16. public interface I {
  17. public int rand();
  18. }
  19. // Code generated by gobind. DO NOT EDIT.
  20. // Java class interfaces.I1 is a proxy for talking to a Go program.
  21. //
  22. // autogenerated by gobind -lang=java interfaces
  23. package interfaces;
  24. import go.Seq;
  25. /**
  26. * not implementable
  27. */
  28. public interface I1 {
  29. public void j();
  30. }
  31. // Code generated by gobind. DO NOT EDIT.
  32. // Java class interfaces.I2 is a proxy for talking to a Go program.
  33. //
  34. // autogenerated by gobind -lang=java interfaces
  35. package interfaces;
  36. import go.Seq;
  37. /**
  38. * not implementable
  39. */
  40. public interface I2 {
  41. public void g();
  42. }
  43. // Code generated by gobind. DO NOT EDIT.
  44. // Java class interfaces.I3 is a proxy for talking to a Go program.
  45. //
  46. // autogenerated by gobind -lang=java interfaces
  47. package interfaces;
  48. import go.Seq;
  49. /**
  50. * implementable
  51. (the implementor has to find a source of I1s)
  52. */
  53. public interface I3 {
  54. public I1 f();
  55. }
  56. // Code generated by gobind. DO NOT EDIT.
  57. // Java class interfaces.Interfaces_ is a proxy for talking to a Go program.
  58. //
  59. // autogenerated by gobind -lang=java interfaces
  60. package interfaces;
  61. import go.Seq;
  62. /**
  63. * Interfaces is an interface with the same name as its package.
  64. */
  65. public interface Interfaces_ {
  66. public void someMethod();
  67. }
  68. // Code generated by gobind. DO NOT EDIT.
  69. // Java class interfaces.LargerI is a proxy for talking to a Go program.
  70. //
  71. // autogenerated by gobind -lang=java interfaces
  72. package interfaces;
  73. import go.Seq;
  74. public interface LargerI extends I, SameI {
  75. public void anotherFunc();
  76. public int rand();
  77. }
  78. // Code generated by gobind. DO NOT EDIT.
  79. // Java class interfaces.SameI is a proxy for talking to a Go program.
  80. //
  81. // autogenerated by gobind -lang=java interfaces
  82. package interfaces;
  83. import go.Seq;
  84. public interface SameI {
  85. public int rand();
  86. }
  87. // Code generated by gobind. DO NOT EDIT.
  88. // Java class interfaces.WithParam is a proxy for talking to a Go program.
  89. //
  90. // autogenerated by gobind -lang=java interfaces
  91. package interfaces;
  92. import go.Seq;
  93. public interface WithParam {
  94. public void hasParam(boolean p0);
  95. }
  96. // Code generated by gobind. DO NOT EDIT.
  97. // Java class interfaces.Interfaces is a proxy for talking to a Go program.
  98. //
  99. // autogenerated by gobind -lang=java interfaces
  100. package interfaces;
  101. import go.Seq;
  102. public abstract class Interfaces {
  103. static {
  104. Seq.touch(); // for loading the native library
  105. _init();
  106. }
  107. private Interfaces() {} // uninstantiable
  108. // touch is called from other bound packages to initialize this package
  109. public static void touch() {}
  110. private static native void _init();
  111. private static final class proxyError implements Seq.Proxy, Error {
  112. private final int refnum;
  113. @Override public final int incRefnum() {
  114. Seq.incGoRef(refnum, this);
  115. return refnum;
  116. }
  117. proxyError(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  118. public native void err() throws Exception;
  119. }
  120. private static final class proxyI implements Seq.Proxy, I {
  121. private final int refnum;
  122. @Override public final int incRefnum() {
  123. Seq.incGoRef(refnum, this);
  124. return refnum;
  125. }
  126. proxyI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  127. public native int rand();
  128. }
  129. private static final class proxyI1 implements Seq.Proxy, I1 {
  130. private final int refnum;
  131. @Override public final int incRefnum() {
  132. Seq.incGoRef(refnum, this);
  133. return refnum;
  134. }
  135. proxyI1(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  136. public native void j();
  137. }
  138. private static final class proxyI2 implements Seq.Proxy, I2 {
  139. private final int refnum;
  140. @Override public final int incRefnum() {
  141. Seq.incGoRef(refnum, this);
  142. return refnum;
  143. }
  144. proxyI2(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  145. public native void g();
  146. }
  147. private static final class proxyI3 implements Seq.Proxy, I3 {
  148. private final int refnum;
  149. @Override public final int incRefnum() {
  150. Seq.incGoRef(refnum, this);
  151. return refnum;
  152. }
  153. proxyI3(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  154. public native I1 f();
  155. }
  156. private static final class proxyInterfaces implements Seq.Proxy, Interfaces_ {
  157. private final int refnum;
  158. @Override public final int incRefnum() {
  159. Seq.incGoRef(refnum, this);
  160. return refnum;
  161. }
  162. proxyInterfaces(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  163. public native void someMethod();
  164. }
  165. private static final class proxyLargerI implements Seq.Proxy, LargerI {
  166. private final int refnum;
  167. @Override public final int incRefnum() {
  168. Seq.incGoRef(refnum, this);
  169. return refnum;
  170. }
  171. proxyLargerI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  172. public native void anotherFunc();
  173. public native int rand();
  174. }
  175. private static final class proxySameI implements Seq.Proxy, SameI {
  176. private final int refnum;
  177. @Override public final int incRefnum() {
  178. Seq.incGoRef(refnum, this);
  179. return refnum;
  180. }
  181. proxySameI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  182. public native int rand();
  183. }
  184. private static final class proxyWithParam implements Seq.Proxy, WithParam {
  185. private final int refnum;
  186. @Override public final int incRefnum() {
  187. Seq.incGoRef(refnum, this);
  188. return refnum;
  189. }
  190. proxyWithParam(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  191. public native void hasParam(boolean p0);
  192. }
  193. public static native int add3(I r);
  194. public static native void callErr(Error e) throws Exception;
  195. public static native I seven();
  196. }