java.java.golden 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class java.F is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java java
  5. package java;
  6. import go.Seq;
  7. public interface F extends R {
  8. public String toString();
  9. }
  10. // Code generated by gobind. DO NOT EDIT.
  11. // Java class java.L is a proxy for talking to a Go program.
  12. //
  13. // autogenerated by gobind -lang=java java
  14. package java;
  15. import go.Seq;
  16. public interface L extends R {
  17. public String toString();
  18. }
  19. // Code generated by gobind. DO NOT EDIT.
  20. // Java class java.O is a proxy for talking to a Go program.
  21. //
  22. // autogenerated by gobind -lang=java java
  23. package java;
  24. import go.Seq;
  25. public interface O extends R {
  26. public String toString();
  27. }
  28. // Code generated by gobind. DO NOT EDIT.
  29. // Java class java.R is a proxy for talking to a Go program.
  30. //
  31. // autogenerated by gobind -lang=java java
  32. package java;
  33. import go.Seq;
  34. public interface R {
  35. }
  36. // Code generated by gobind. DO NOT EDIT.
  37. // Java class java.Java is a proxy for talking to a Go program.
  38. //
  39. // autogenerated by gobind -lang=java java
  40. package java;
  41. import go.Seq;
  42. public abstract class Java {
  43. static {
  44. Seq.touch(); // for loading the native library
  45. _init();
  46. }
  47. private Java() {} // uninstantiable
  48. // touch is called from other bound packages to initialize this package
  49. public static void touch() {}
  50. private static native void _init();
  51. private static final class proxyF implements Seq.Proxy, F {
  52. private final int refnum;
  53. @Override public final int incRefnum() {
  54. Seq.incGoRef(refnum, this);
  55. return refnum;
  56. }
  57. proxyF(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  58. public native String toString();
  59. }
  60. private static final class proxyL implements Seq.Proxy, L {
  61. private final int refnum;
  62. @Override public final int incRefnum() {
  63. Seq.incGoRef(refnum, this);
  64. return refnum;
  65. }
  66. proxyL(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  67. public native String toString();
  68. }
  69. private static final class proxyO implements Seq.Proxy, O {
  70. private final int refnum;
  71. @Override public final int incRefnum() {
  72. Seq.incGoRef(refnum, this);
  73. return refnum;
  74. }
  75. proxyO(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  76. public native String toString();
  77. }
  78. private static final class proxyR implements Seq.Proxy, R {
  79. private final int refnum;
  80. @Override public final int incRefnum() {
  81. Seq.incGoRef(refnum, this);
  82. return refnum;
  83. }
  84. proxyR(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  85. }
  86. }