github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/java.java.golden (about)

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