doc.java.golden 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class doc.NoDoc is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java doc
  5. package doc;
  6. import go.Seq;
  7. /**
  8. * A generic comment with <HTML>.
  9. */
  10. public final class NoDoc implements Seq.Proxy {
  11. static { Doc.touch(); }
  12. private final int refnum;
  13. @Override public final int incRefnum() {
  14. Seq.incGoRef(refnum, this);
  15. return refnum;
  16. }
  17. NoDoc(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  18. public NoDoc() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  19. private static native int __New();
  20. @Override public boolean equals(Object o) {
  21. if (o == null || !(o instanceof NoDoc)) {
  22. return false;
  23. }
  24. NoDoc that = (NoDoc)o;
  25. return true;
  26. }
  27. @Override public int hashCode() {
  28. return java.util.Arrays.hashCode(new Object[] {});
  29. }
  30. @Override public String toString() {
  31. StringBuilder b = new StringBuilder();
  32. b.append("NoDoc").append("{");
  33. return b.append("}").toString();
  34. }
  35. }
  36. // Code generated by gobind. DO NOT EDIT.
  37. // Java class doc.S is a proxy for talking to a Go program.
  38. //
  39. // autogenerated by gobind -lang=java doc
  40. package doc;
  41. import go.Seq;
  42. /**
  43. * S is a struct.
  44. */
  45. public final class S implements Seq.Proxy {
  46. static { Doc.touch(); }
  47. private final int refnum;
  48. @Override public final int incRefnum() {
  49. Seq.incGoRef(refnum, this);
  50. return refnum;
  51. }
  52. /**
  53. * NewS is a constructor.
  54. */
  55. public S() {
  56. this.refnum = __NewS();
  57. Seq.trackGoRef(refnum, this);
  58. }
  59. private static native int __NewS();
  60. S(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  61. /**
  62. * SF is a field.
  63. */
  64. public final native String getSF();
  65. /**
  66. * SF is a field.
  67. */
  68. public final native void setSF(String v);
  69. /**
  70. * Anonymous field.
  71. */
  72. public final native S2 getS2();
  73. /**
  74. * Anonymous field.
  75. */
  76. public final native void setS2(S2 v);
  77. /**
  78. * Multiple fields.
  79. */
  80. public final native String getF1();
  81. /**
  82. * Multiple fields.
  83. */
  84. public final native void setF1(String v);
  85. /**
  86. * Multiple fields.
  87. */
  88. public final native String getF2();
  89. /**
  90. * Multiple fields.
  91. */
  92. public final native void setF2(String v);
  93. /**
  94. * After is another method.
  95. */
  96. public native void after();
  97. public native void before();
  98. @Override public boolean equals(Object o) {
  99. if (o == null || !(o instanceof S)) {
  100. return false;
  101. }
  102. S that = (S)o;
  103. String thisSF = getSF();
  104. String thatSF = that.getSF();
  105. if (thisSF == null) {
  106. if (thatSF != null) {
  107. return false;
  108. }
  109. } else if (!thisSF.equals(thatSF)) {
  110. return false;
  111. }
  112. S2 thisS2 = getS2();
  113. S2 thatS2 = that.getS2();
  114. if (thisS2 == null) {
  115. if (thatS2 != null) {
  116. return false;
  117. }
  118. } else if (!thisS2.equals(thatS2)) {
  119. return false;
  120. }
  121. String thisF1 = getF1();
  122. String thatF1 = that.getF1();
  123. if (thisF1 == null) {
  124. if (thatF1 != null) {
  125. return false;
  126. }
  127. } else if (!thisF1.equals(thatF1)) {
  128. return false;
  129. }
  130. String thisF2 = getF2();
  131. String thatF2 = that.getF2();
  132. if (thisF2 == null) {
  133. if (thatF2 != null) {
  134. return false;
  135. }
  136. } else if (!thisF2.equals(thatF2)) {
  137. return false;
  138. }
  139. return true;
  140. }
  141. @Override public int hashCode() {
  142. return java.util.Arrays.hashCode(new Object[] {getSF(), getS2(), getF1(), getF2()});
  143. }
  144. @Override public String toString() {
  145. StringBuilder b = new StringBuilder();
  146. b.append("S").append("{");
  147. b.append("SF:").append(getSF()).append(",");
  148. b.append("S2:").append(getS2()).append(",");
  149. b.append("F1:").append(getF1()).append(",");
  150. b.append("F2:").append(getF2()).append(",");
  151. return b.append("}").toString();
  152. }
  153. }
  154. // Code generated by gobind. DO NOT EDIT.
  155. // Java class doc.S2 is a proxy for talking to a Go program.
  156. //
  157. // autogenerated by gobind -lang=java doc
  158. package doc;
  159. import go.Seq;
  160. /**
  161. * S2 is a struct.
  162. */
  163. public final class S2 implements Seq.Proxy {
  164. static { Doc.touch(); }
  165. private final int refnum;
  166. @Override public final int incRefnum() {
  167. Seq.incGoRef(refnum, this);
  168. return refnum;
  169. }
  170. S2(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  171. public S2() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  172. private static native int __New();
  173. @Override public boolean equals(Object o) {
  174. if (o == null || !(o instanceof S2)) {
  175. return false;
  176. }
  177. S2 that = (S2)o;
  178. return true;
  179. }
  180. @Override public int hashCode() {
  181. return java.util.Arrays.hashCode(new Object[] {});
  182. }
  183. @Override public String toString() {
  184. StringBuilder b = new StringBuilder();
  185. b.append("S2").append("{");
  186. return b.append("}").toString();
  187. }
  188. }
  189. // Code generated by gobind. DO NOT EDIT.
  190. // Java class doc.I is a proxy for talking to a Go program.
  191. //
  192. // autogenerated by gobind -lang=java doc
  193. package doc;
  194. import go.Seq;
  195. /**
  196. * I is an interface.
  197. */
  198. public interface I {
  199. /**
  200. * IM is a method.
  201. */
  202. public void im();
  203. }
  204. // Code generated by gobind. DO NOT EDIT.
  205. // Java class doc.Doc is a proxy for talking to a Go program.
  206. //
  207. // autogenerated by gobind -lang=java doc
  208. package doc;
  209. import go.Seq;
  210. public abstract class Doc {
  211. static {
  212. Seq.touch(); // for loading the native library
  213. _init();
  214. }
  215. private Doc() {} // uninstantiable
  216. // touch is called from other bound packages to initialize this package
  217. public static void touch() {}
  218. private static native void _init();
  219. private static final class proxyI implements Seq.Proxy, I {
  220. private final int refnum;
  221. @Override public final int incRefnum() {
  222. Seq.incGoRef(refnum, this);
  223. return refnum;
  224. }
  225. proxyI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  226. public native void im();
  227. }
  228. /**
  229. * C is a constant.
  230. */
  231. public static final boolean C = true;
  232. /**
  233. * A group of vars.
  234. */
  235. public static native void setNoDocVar(double v);
  236. /**
  237. * A group of vars.
  238. */
  239. public static native double getNoDocVar();
  240. /**
  241. * A specific var.
  242. */
  243. public static native void setSpecific(String v);
  244. /**
  245. * A specific var.
  246. */
  247. public static native String getSpecific();
  248. /**
  249. * V is a var.
  250. */
  251. public static native void setV(String v);
  252. /**
  253. * V is a var.
  254. */
  255. public static native String getV();
  256. /**
  257. * F is a function.
  258. */
  259. public static native void f();
  260. /**
  261. * NewS is a constructor.
  262. */
  263. public static native S newS();
  264. }