| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// Java class java.Future is a proxy for talking to a Go program. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=java classes |
| 6 |
package java; |
| 7 |
|
| 8 |
import go.Seq; |
| 9 |
|
| 10 |
public final class Future implements Seq.GoObject, java.util.concurrent.Future { |
| 11 |
static { Java.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 |
Future(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 21 |
|
| 22 |
public Future() { this.refnum = __New(); Seq.trackGoRef(refnum, this); } |
| 23 |
|
| 24 |
private static native int __New(); |
| 25 |
|
| 26 |
public final native java.util.concurrent.Future getFuture(); |
| 27 |
public final native void setFuture(java.util.concurrent.Future v); |
| 28 |
|
| 29 |
@Override public native java.lang.Object get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException; |
| 30 |
/** |
| 31 |
* Use a trailing underscore to override multiple overloaded methods. |
| 32 |
*/ |
| 33 |
@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; |
| 34 |
} |
| 35 |
|
| 36 |
// Code generated by gobind. DO NOT EDIT. |
| 37 |
|
| 38 |
// Java class java.InputStream is a proxy for talking to a Go program. |
| 39 |
// |
| 40 |
// autogenerated by gobind -lang=java classes |
| 41 |
package java; |
| 42 |
|
| 43 |
import go.Seq; |
| 44 |
|
| 45 |
public final class InputStream extends java.io.InputStream implements Seq.GoObject { |
| 46 |
static { Java.touch(); } |
| 47 |
|
| 48 |
private final int refnum; |
| 49 |
|
| 50 |
@Override public final int incRefnum() { |
| 51 |
Seq.incGoRef(refnum, this); |
| 52 |
return refnum; |
| 53 |
} |
| 54 |
|
| 55 |
public InputStream() { |
| 56 |
super(); |
| 57 |
this.refnum = __NewInputStream(); |
| 58 |
Seq.trackGoRef(refnum, this); |
| 59 |
} |
| 60 |
|
| 61 |
private static native int __NewInputStream(); |
| 62 |
|
| 63 |
public final native java.io.InputStream getInputStream(); |
| 64 |
public final native void setInputStream(java.io.InputStream v); |
| 65 |
|
| 66 |
@Override public native int read() throws java.io.IOException; |
| 67 |
} |
| 68 |
|
| 69 |
// Code generated by gobind. DO NOT EDIT. |
| 70 |
|
| 71 |
// Java class java.Object is a proxy for talking to a Go program. |
| 72 |
// |
| 73 |
// autogenerated by gobind -lang=java classes |
| 74 |
package java; |
| 75 |
|
| 76 |
import go.Seq; |
| 77 |
|
| 78 |
public final class Object extends java.lang.Object implements Seq.GoObject { |
| 79 |
static { Java.touch(); } |
| 80 |
|
| 81 |
private final int refnum; |
| 82 |
|
| 83 |
@Override public final int incRefnum() { |
| 84 |
Seq.incGoRef(refnum, this); |
| 85 |
return refnum; |
| 86 |
} |
| 87 |
|
| 88 |
Object(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 89 |
|
| 90 |
public Object() { this.refnum = __New(); Seq.trackGoRef(refnum, this); } |
| 91 |
|
| 92 |
private static native int __New(); |
| 93 |
|
| 94 |
public final native java.lang.Object getObject(); |
| 95 |
public final native void setObject(java.lang.Object v); |
| 96 |
|
| 97 |
} |
| 98 |
|
| 99 |
// Code generated by gobind. DO NOT EDIT. |
| 100 |
|
| 101 |
// Java class java.Runnable is a proxy for talking to a Go program. |
| 102 |
// |
| 103 |
// autogenerated by gobind -lang=java classes |
| 104 |
package java; |
| 105 |
|
| 106 |
import go.Seq; |
| 107 |
|
| 108 |
public final class Runnable implements Seq.GoObject, java.lang.Runnable { |
| 109 |
static { Java.touch(); } |
| 110 |
|
| 111 |
private final int refnum; |
| 112 |
|
| 113 |
@Override public final int incRefnum() { |
| 114 |
Seq.incGoRef(refnum, this); |
| 115 |
return refnum; |
| 116 |
} |
| 117 |
|
| 118 |
Runnable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 119 |
|
| 120 |
public Runnable() { this.refnum = __New(); Seq.trackGoRef(refnum, this); } |
| 121 |
|
| 122 |
private static native int __New(); |
| 123 |
|
| 124 |
public final native java.lang.Runnable getRunnable(); |
| 125 |
public final native void setRunnable(java.lang.Runnable v); |
| 126 |
|
| 127 |
@Override public native void run(); |
| 128 |
} |
| 129 |
|
| 130 |
// Code generated by gobind. DO NOT EDIT. |
| 131 |
|
| 132 |
// Java class java.Java is a proxy for talking to a Go program. |
| 133 |
// |
| 134 |
// autogenerated by gobind -lang=java classes |
| 135 |
package java; |
| 136 |
|
| 137 |
import go.Seq; |
| 138 |
|
| 139 |
public abstract class Java { |
| 140 |
static { |
| 141 |
Seq.touch(); // for loading the native library |
| 142 |
_init(); |
| 143 |
} |
| 144 |
|
| 145 |
private Java() {} // uninstantiable |
| 146 |
|
| 147 |
// touch is called from other bound packages to initialize this package |
| 148 |
public static void touch() {} |
| 149 |
|
| 150 |
private static native void _init(); |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
public static native InputStream newInputStream(); |
| 155 |
} |