| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// Java class interfaces.Error is a proxy for talking to a Go program. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=java interfaces |
| 6 |
package interfaces; |
| 7 |
|
| 8 |
import go.Seq; |
| 9 |
|
| 10 |
public interface Error { |
| 11 |
public void err() throws Exception; |
| 12 |
|
| 13 |
} |
| 14 |
|
| 15 |
// Code generated by gobind. DO NOT EDIT. |
| 16 |
|
| 17 |
// Java class interfaces.I is a proxy for talking to a Go program. |
| 18 |
// |
| 19 |
// autogenerated by gobind -lang=java interfaces |
| 20 |
package interfaces; |
| 21 |
|
| 22 |
import go.Seq; |
| 23 |
|
| 24 |
public interface I { |
| 25 |
public int rand(); |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
// Code generated by gobind. DO NOT EDIT. |
| 30 |
|
| 31 |
// Java class interfaces.I1 is a proxy for talking to a Go program. |
| 32 |
// |
| 33 |
// autogenerated by gobind -lang=java interfaces |
| 34 |
package interfaces; |
| 35 |
|
| 36 |
import go.Seq; |
| 37 |
|
| 38 |
/** |
| 39 |
* not implementable |
| 40 |
*/ |
| 41 |
public interface I1 { |
| 42 |
public void j(); |
| 43 |
|
| 44 |
} |
| 45 |
|
| 46 |
// Code generated by gobind. DO NOT EDIT. |
| 47 |
|
| 48 |
// Java class interfaces.I2 is a proxy for talking to a Go program. |
| 49 |
// |
| 50 |
// autogenerated by gobind -lang=java interfaces |
| 51 |
package interfaces; |
| 52 |
|
| 53 |
import go.Seq; |
| 54 |
|
| 55 |
/** |
| 56 |
* not implementable |
| 57 |
*/ |
| 58 |
public interface I2 { |
| 59 |
public void g(); |
| 60 |
|
| 61 |
} |
| 62 |
|
| 63 |
// Code generated by gobind. DO NOT EDIT. |
| 64 |
|
| 65 |
// Java class interfaces.I3 is a proxy for talking to a Go program. |
| 66 |
// |
| 67 |
// autogenerated by gobind -lang=java interfaces |
| 68 |
package interfaces; |
| 69 |
|
| 70 |
import go.Seq; |
| 71 |
|
| 72 |
/** |
| 73 |
* implementable |
| 74 |
(the implementor has to find a source of I1s) |
| 75 |
*/ |
| 76 |
public interface I3 { |
| 77 |
public I1 f(); |
| 78 |
|
| 79 |
} |
| 80 |
|
| 81 |
// Code generated by gobind. DO NOT EDIT. |
| 82 |
|
| 83 |
// Java class interfaces.Interfaces_ is a proxy for talking to a Go program. |
| 84 |
// |
| 85 |
// autogenerated by gobind -lang=java interfaces |
| 86 |
package interfaces; |
| 87 |
|
| 88 |
import go.Seq; |
| 89 |
|
| 90 |
/** |
| 91 |
* Interfaces is an interface with the same name as its package. |
| 92 |
*/ |
| 93 |
public interface Interfaces_ { |
| 94 |
public void someMethod(); |
| 95 |
|
| 96 |
} |
| 97 |
|
| 98 |
// Code generated by gobind. DO NOT EDIT. |
| 99 |
|
| 100 |
// Java class interfaces.LargerI is a proxy for talking to a Go program. |
| 101 |
// |
| 102 |
// autogenerated by gobind -lang=java interfaces |
| 103 |
package interfaces; |
| 104 |
|
| 105 |
import go.Seq; |
| 106 |
|
| 107 |
public interface LargerI extends I, SameI { |
| 108 |
public void anotherFunc(); |
| 109 |
public int rand(); |
| 110 |
|
| 111 |
} |
| 112 |
|
| 113 |
// Code generated by gobind. DO NOT EDIT. |
| 114 |
|
| 115 |
// Java class interfaces.SameI is a proxy for talking to a Go program. |
| 116 |
// |
| 117 |
// autogenerated by gobind -lang=java interfaces |
| 118 |
package interfaces; |
| 119 |
|
| 120 |
import go.Seq; |
| 121 |
|
| 122 |
public interface SameI { |
| 123 |
public int rand(); |
| 124 |
|
| 125 |
} |
| 126 |
|
| 127 |
// Code generated by gobind. DO NOT EDIT. |
| 128 |
|
| 129 |
// Java class interfaces.WithParam is a proxy for talking to a Go program. |
| 130 |
// |
| 131 |
// autogenerated by gobind -lang=java interfaces |
| 132 |
package interfaces; |
| 133 |
|
| 134 |
import go.Seq; |
| 135 |
|
| 136 |
public interface WithParam { |
| 137 |
public void hasParam(boolean p0); |
| 138 |
|
| 139 |
} |
| 140 |
|
| 141 |
// Code generated by gobind. DO NOT EDIT. |
| 142 |
|
| 143 |
// Java class interfaces.Interfaces is a proxy for talking to a Go program. |
| 144 |
// |
| 145 |
// autogenerated by gobind -lang=java interfaces |
| 146 |
package interfaces; |
| 147 |
|
| 148 |
import go.Seq; |
| 149 |
|
| 150 |
public abstract class Interfaces { |
| 151 |
static { |
| 152 |
Seq.touch(); // for loading the native library |
| 153 |
_init(); |
| 154 |
} |
| 155 |
|
| 156 |
private Interfaces() {} // uninstantiable |
| 157 |
|
| 158 |
// touch is called from other bound packages to initialize this package |
| 159 |
public static void touch() {} |
| 160 |
|
| 161 |
private static native void _init(); |
| 162 |
|
| 163 |
private static final class proxyError implements Seq.Proxy, Error { |
| 164 |
private final int refnum; |
| 165 |
|
| 166 |
@Override public final int incRefnum() { |
| 167 |
Seq.incGoRef(refnum, this); |
| 168 |
return refnum; |
| 169 |
} |
| 170 |
|
| 171 |
proxyError(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 172 |
|
| 173 |
public native void err() throws Exception; |
| 174 |
} |
| 175 |
private static final class proxyI implements Seq.Proxy, I { |
| 176 |
private final int refnum; |
| 177 |
|
| 178 |
@Override public final int incRefnum() { |
| 179 |
Seq.incGoRef(refnum, this); |
| 180 |
return refnum; |
| 181 |
} |
| 182 |
|
| 183 |
proxyI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 184 |
|
| 185 |
public native int rand(); |
| 186 |
} |
| 187 |
private static final class proxyI1 implements Seq.Proxy, I1 { |
| 188 |
private final int refnum; |
| 189 |
|
| 190 |
@Override public final int incRefnum() { |
| 191 |
Seq.incGoRef(refnum, this); |
| 192 |
return refnum; |
| 193 |
} |
| 194 |
|
| 195 |
proxyI1(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 196 |
|
| 197 |
public native void j(); |
| 198 |
} |
| 199 |
private static final class proxyI2 implements Seq.Proxy, I2 { |
| 200 |
private final int refnum; |
| 201 |
|
| 202 |
@Override public final int incRefnum() { |
| 203 |
Seq.incGoRef(refnum, this); |
| 204 |
return refnum; |
| 205 |
} |
| 206 |
|
| 207 |
proxyI2(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 208 |
|
| 209 |
public native void g(); |
| 210 |
} |
| 211 |
private static final class proxyI3 implements Seq.Proxy, I3 { |
| 212 |
private final int refnum; |
| 213 |
|
| 214 |
@Override public final int incRefnum() { |
| 215 |
Seq.incGoRef(refnum, this); |
| 216 |
return refnum; |
| 217 |
} |
| 218 |
|
| 219 |
proxyI3(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 220 |
|
| 221 |
public native I1 f(); |
| 222 |
} |
| 223 |
private static final class proxyInterfaces implements Seq.Proxy, Interfaces_ { |
| 224 |
private final int refnum; |
| 225 |
|
| 226 |
@Override public final int incRefnum() { |
| 227 |
Seq.incGoRef(refnum, this); |
| 228 |
return refnum; |
| 229 |
} |
| 230 |
|
| 231 |
proxyInterfaces(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 232 |
|
| 233 |
public native void someMethod(); |
| 234 |
} |
| 235 |
private static final class proxyLargerI implements Seq.Proxy, LargerI { |
| 236 |
private final int refnum; |
| 237 |
|
| 238 |
@Override public final int incRefnum() { |
| 239 |
Seq.incGoRef(refnum, this); |
| 240 |
return refnum; |
| 241 |
} |
| 242 |
|
| 243 |
proxyLargerI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 244 |
|
| 245 |
public native void anotherFunc(); |
| 246 |
public native int rand(); |
| 247 |
} |
| 248 |
private static final class proxySameI implements Seq.Proxy, SameI { |
| 249 |
private final int refnum; |
| 250 |
|
| 251 |
@Override public final int incRefnum() { |
| 252 |
Seq.incGoRef(refnum, this); |
| 253 |
return refnum; |
| 254 |
} |
| 255 |
|
| 256 |
proxySameI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 257 |
|
| 258 |
public native int rand(); |
| 259 |
} |
| 260 |
private static final class proxyWithParam implements Seq.Proxy, WithParam { |
| 261 |
private final int refnum; |
| 262 |
|
| 263 |
@Override public final int incRefnum() { |
| 264 |
Seq.incGoRef(refnum, this); |
| 265 |
return refnum; |
| 266 |
} |
| 267 |
|
| 268 |
proxyWithParam(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } |
| 269 |
|
| 270 |
public native void hasParam(boolean p0); |
| 271 |
} |
| 272 |
|
| 273 |
|
| 274 |
public static native int add3(I r); |
| 275 |
public static native void callErr(Error e) throws Exception; |
| 276 |
public static native I seven(); |
| 277 |
} |