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

     1  // Java class java.F is a proxy for talking to a Go program.
     2  //   gobind -lang=java java
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package java;
     6  
     7  import go.Seq;
     8  
     9  public interface F extends R {
    10      public String toString();
    11      
    12  }
    13  
    14  // Java class java.L is a proxy for talking to a Go program.
    15  //   gobind -lang=java java
    16  //
    17  // File is generated by gobind. Do not edit.
    18  package java;
    19  
    20  import go.Seq;
    21  
    22  public interface L extends R {
    23      public String toString();
    24      
    25  }
    26  
    27  // Java class java.O is a proxy for talking to a Go program.
    28  //   gobind -lang=java java
    29  //
    30  // File is generated by gobind. Do not edit.
    31  package java;
    32  
    33  import go.Seq;
    34  
    35  public interface O extends R {
    36      public String toString();
    37      
    38  }
    39  
    40  // Java class java.R is a proxy for talking to a Go program.
    41  //   gobind -lang=java java
    42  //
    43  // File is generated by gobind. Do not edit.
    44  package java;
    45  
    46  import go.Seq;
    47  
    48  public interface R {
    49      
    50  }
    51  
    52  // Java class java.Java is a proxy for talking to a Go program.
    53  //   gobind -lang=java java
    54  //
    55  // File is generated by gobind. Do not edit.
    56  package java;
    57  
    58  import go.Seq;
    59  
    60  public abstract class Java {
    61      static {
    62          Seq.touch(); // for loading the native library
    63          _init();
    64      }
    65      
    66      private Java() {} // uninstantiable
    67      
    68      // touch is called from other bound packages to initialize this package
    69      public static void touch() {}
    70      
    71      private static native void _init();
    72      
    73      private static final class proxyF implements Seq.Proxy, F {
    74          private final int refnum;
    75          
    76          @Override public final int incRefnum() {
    77                Seq.incGoRef(refnum, this);
    78                return refnum;
    79          }
    80          
    81          proxyF(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
    82          
    83          public native String toString();
    84      }
    85      private static final class proxyL implements Seq.Proxy, L {
    86          private final int refnum;
    87          
    88          @Override public final int incRefnum() {
    89                Seq.incGoRef(refnum, this);
    90                return refnum;
    91          }
    92          
    93          proxyL(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
    94          
    95          public native String toString();
    96      }
    97      private static final class proxyO implements Seq.Proxy, O {
    98          private final int refnum;
    99          
   100          @Override public final int incRefnum() {
   101                Seq.incGoRef(refnum, this);
   102                return refnum;
   103          }
   104          
   105          proxyO(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
   106          
   107          public native String toString();
   108      }
   109      private static final class proxyR implements Seq.Proxy, R {
   110          private final int refnum;
   111          
   112          @Override public final int incRefnum() {
   113                Seq.incGoRef(refnum, this);
   114                return refnum;
   115          }
   116          
   117          proxyR(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
   118          
   119      }
   120      
   121      
   122  }