github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/basictypes.java.golden (about) 1 // Code generated by gobind. DO NOT EDIT. 2 3 // Java class basictypes.Basictypes is a proxy for talking to a Go program. 4 // 5 // autogenerated by gobind -lang=java basictypes 6 package basictypes; 7 8 import go.Seq; 9 10 public abstract class Basictypes { 11 static { 12 Seq.touch(); // for loading the native library 13 _init(); 14 } 15 16 private Basictypes() {} // uninstantiable 17 18 // touch is called from other bound packages to initialize this package 19 public static void touch() {} 20 21 private static native void _init(); 22 23 24 public static final boolean ABool = true; 25 public static final double AFloat = 0.2015; 26 public static final String ALongString = "LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString"; 27 public static final int ARune = 32; 28 public static final String AString = "a string"; 29 public static final long AnInt = 7L; 30 public static final long AnInt2 = 9223372036854775807L; 31 32 public static native boolean bool(boolean p0); 33 public static native byte[] byteArrays(byte[] x); 34 public static native void error() throws Exception; 35 public static native long errorPair() throws Exception; 36 public static native void ints(byte x, short y, int z, long t, long u); 37 }