2
0
mirror of synced 2025-02-24 15:28:28 +00:00
mobile/bind/testdata/java.java.golden
Elias Naur c90c4f7c8a bind,internal: change the default Java package to the empty string
The Objective-C bindings was recently changed to support the empty
name prefix and to use that as the default. This CLs changed the Java
generators in the same way, supporting the empty Java package and using
it as the default.

Change-Id: I857affce686c67638a2b6c4e1da5d6a88d7ba560
Reviewed-on: https://go-review.googlesource.com/34778
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-01-11 19:15:09 +00:00

121 lines
2.6 KiB
Plaintext

// Java class java.F is a proxy for talking to a Go program.
// gobind -lang=java java
//
// File is generated by gobind. Do not edit.
package java;
import go.Seq;
public interface F {
}
// Java class java.O is a proxy for talking to a Go program.
// gobind -lang=java java
//
// File is generated by gobind. Do not edit.
package java;
import go.Seq;
public interface O {
}
// Java class java.R is a proxy for talking to a Go program.
// gobind -lang=java java
//
// File is generated by gobind. Do not edit.
package java;
import go.Seq;
public interface R {
}
// Java class java.S is a proxy for talking to a Go program.
// gobind -lang=java java
//
// File is generated by gobind. Do not edit.
package java;
import go.Seq;
public interface S {
}
// Java class java.Java is a proxy for talking to a Go program.
// gobind -lang=java java
//
// File is generated by gobind. Do not edit.
package java;
import go.Seq;
public abstract class Java {
static {
Seq.touch(); // for loading the native library
_init();
}
private Java() {} // uninstantiable
// touch is called from other bound packages to initialize this package
public static void touch() {}
private static native void _init();
private static final class proxyF implements Seq.Proxy, F {
private final Seq.Ref ref;
@Override public final int incRefnum() {
int refnum = ref.refnum;
Seq.incGoRef(refnum);
return refnum;
}
proxyF(Seq.Ref ref) { this.ref = ref; }
}
private static final class proxyO implements Seq.Proxy, O {
private final Seq.Ref ref;
@Override public final int incRefnum() {
int refnum = ref.refnum;
Seq.incGoRef(refnum);
return refnum;
}
proxyO(Seq.Ref ref) { this.ref = ref; }
}
private static final class proxyR implements Seq.Proxy, R {
private final Seq.Ref ref;
@Override public final int incRefnum() {
int refnum = ref.refnum;
Seq.incGoRef(refnum);
return refnum;
}
proxyR(Seq.Ref ref) { this.ref = ref; }
}
private static final class proxyS implements Seq.Proxy, S {
private final Seq.Ref ref;
@Override public final int incRefnum() {
int refnum = ref.refnum;
Seq.incGoRef(refnum);
return refnum;
}
proxyS(Seq.Ref ref) { this.ref = ref; }
}
}