classes.java.golden 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class java.Future is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java classes
  5. package java;
  6. import go.Seq;
  7. public final class Future implements Seq.GoObject, java.util.concurrent.Future {
  8. static { Java.touch(); }
  9. private final int refnum;
  10. @Override public final int incRefnum() {
  11. Seq.incGoRef(refnum, this);
  12. return refnum;
  13. }
  14. Future(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  15. public Future() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  16. private static native int __New();
  17. public final native java.util.concurrent.Future getFuture();
  18. public final native void setFuture(java.util.concurrent.Future v);
  19. @Override public native java.lang.Object get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException;
  20. /**
  21. * Use a trailing underscore to override multiple overloaded methods.
  22. */
  23. @Override public native java.lang.Object get(long p0, java.util.concurrent.TimeUnit p1) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException;
  24. }
  25. // Code generated by gobind. DO NOT EDIT.
  26. // Java class java.InputStream is a proxy for talking to a Go program.
  27. //
  28. // autogenerated by gobind -lang=java classes
  29. package java;
  30. import go.Seq;
  31. public final class InputStream extends java.io.InputStream implements Seq.GoObject {
  32. static { Java.touch(); }
  33. private final int refnum;
  34. @Override public final int incRefnum() {
  35. Seq.incGoRef(refnum, this);
  36. return refnum;
  37. }
  38. public InputStream() {
  39. super();
  40. this.refnum = __NewInputStream();
  41. Seq.trackGoRef(refnum, this);
  42. }
  43. private static native int __NewInputStream();
  44. public final native java.io.InputStream getInputStream();
  45. public final native void setInputStream(java.io.InputStream v);
  46. @Override public native int read() throws java.io.IOException;
  47. }
  48. // Code generated by gobind. DO NOT EDIT.
  49. // Java class java.Object is a proxy for talking to a Go program.
  50. //
  51. // autogenerated by gobind -lang=java classes
  52. package java;
  53. import go.Seq;
  54. public final class Object extends java.lang.Object implements Seq.GoObject {
  55. static { Java.touch(); }
  56. private final int refnum;
  57. @Override public final int incRefnum() {
  58. Seq.incGoRef(refnum, this);
  59. return refnum;
  60. }
  61. Object(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  62. public Object() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  63. private static native int __New();
  64. public final native java.lang.Object getObject();
  65. public final native void setObject(java.lang.Object v);
  66. }
  67. // Code generated by gobind. DO NOT EDIT.
  68. // Java class java.Runnable is a proxy for talking to a Go program.
  69. //
  70. // autogenerated by gobind -lang=java classes
  71. package java;
  72. import go.Seq;
  73. public final class Runnable implements Seq.GoObject, java.lang.Runnable {
  74. static { Java.touch(); }
  75. private final int refnum;
  76. @Override public final int incRefnum() {
  77. Seq.incGoRef(refnum, this);
  78. return refnum;
  79. }
  80. Runnable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  81. public Runnable() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  82. private static native int __New();
  83. public final native java.lang.Runnable getRunnable();
  84. public final native void setRunnable(java.lang.Runnable v);
  85. @Override public native void run();
  86. }
  87. // Code generated by gobind. DO NOT EDIT.
  88. // Java class java.Java is a proxy for talking to a Go program.
  89. //
  90. // autogenerated by gobind -lang=java classes
  91. package java;
  92. import go.Seq;
  93. public abstract class Java {
  94. static {
  95. Seq.touch(); // for loading the native library
  96. _init();
  97. }
  98. private Java() {} // uninstantiable
  99. // touch is called from other bound packages to initialize this package
  100. public static void touch() {}
  101. private static native void _init();
  102. public static native InputStream newInputStream();
  103. }