github.com/coming-chat/gomobile@v0.0.0-20220601074111-56995f7d7aba/bind/testdata/universe.java.golden (about) 1 // Code generated by gobind. DO NOT EDIT. 2 3 // Java class go.error is a proxy for talking to a Go program. 4 // 5 // autogenerated by gobind -lang=java 6 package go; 7 8 import go.Seq; 9 10 public interface error { 11 public String error(); 12 13 } 14 15 // Code generated by gobind. DO NOT EDIT. 16 17 // Java class go.Universe is a proxy for talking to a Go program. 18 // 19 // autogenerated by gobind -lang=java 20 package go; 21 22 import go.Seq; 23 24 public abstract class Universe { 25 static { 26 Seq.touch(); // for loading the native library 27 _init(); 28 } 29 30 private Universe() {} // uninstantiable 31 32 // touch is called from other bound packages to initialize this package 33 public static void touch() {} 34 35 private static native void _init(); 36 37 private static final class proxyerror extends Exception implements Seq.Proxy, error { 38 private final int refnum; 39 40 @Override public final int incRefnum() { 41 Seq.incGoRef(refnum, this); 42 return refnum; 43 } 44 45 proxyerror(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); } 46 47 @Override public String getMessage() { return error(); } 48 49 public native String error(); 50 } 51 52 53 }