github.com/thommil/tge-mobile@v0.0.0-20190308225214-66a08abd51aa/bind/testdata/issue12403.java.golden (about)

     1  // Java class issue12403.Parsable is a proxy for talking to a Go program.
     2  //   gobind -lang=java issue12403
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package issue12403;
     6  
     7  import go.Seq;
     8  
     9  public interface Parsable {
    10      public String fromJSON(String jstr);
    11      public String toJSON() throws Exception;
    12      
    13  }
    14  
    15  // Java class issue12403.Issue12403 is a proxy for talking to a Go program.
    16  //   gobind -lang=java issue12403
    17  //
    18  // File is generated by gobind. Do not edit.
    19  package issue12403;
    20  
    21  import go.Seq;
    22  
    23  public abstract class Issue12403 {
    24      static {
    25          Seq.touch(); // for loading the native library
    26          _init();
    27      }
    28      
    29      private Issue12403() {} // uninstantiable
    30      
    31      // touch is called from other bound packages to initialize this package
    32      public static void touch() {}
    33      
    34      private static native void _init();
    35      
    36      private static final class proxyParsable implements Seq.Proxy, Parsable {
    37          private final int refnum;
    38          
    39          @Override public final int incRefnum() {
    40                Seq.incGoRef(refnum, this);
    41                return refnum;
    42          }
    43          
    44          proxyParsable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
    45          
    46          public native String fromJSON(String jstr);
    47          public native String toJSON() throws Exception;
    48      }
    49      
    50      
    51  }