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

     1  // Java class java.Future is a proxy for talking to a Go program.
     2  //   gobind -lang=java classes
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package java;
     6  
     7  import go.Seq;
     8  
     9  public final class Future implements Seq.GoObject, java.util.concurrent.Future {
    10      static { Java.touch(); }
    11      
    12      private final int refnum;
    13      
    14      @Override public final int incRefnum() {
    15            Seq.incGoRef(refnum, this);
    16            return refnum;
    17      }
    18      
    19      Future(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
    20      
    21      public Future() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
    22      
    23      private static native int __New();
    24      
    25      public final native java.util.concurrent.Future getFuture();
    26      public final native void setFuture(java.util.concurrent.Future v);
    27      
    28      @Override public native java.lang.Object get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException;
    29      /**
    30       * Use a trailing underscore to override multiple overloaded methods.
    31       */
    32      @Override public native java.lang.Object get(long p0, java.util.concurrent.TimeUnit p1) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException;
    33  }
    34  
    35  // Java class java.InputStream is a proxy for talking to a Go program.
    36  //   gobind -lang=java classes
    37  //
    38  // File is generated by gobind. Do not edit.
    39  package java;
    40  
    41  import go.Seq;
    42  
    43  public final class InputStream extends java.io.InputStream implements Seq.GoObject {
    44      static { Java.touch(); }
    45      
    46      private final int refnum;
    47      
    48      @Override public final int incRefnum() {
    49            Seq.incGoRef(refnum, this);
    50            return refnum;
    51      }
    52      
    53      public InputStream() {
    54          super();
    55          this.refnum = __NewInputStream();
    56          Seq.trackGoRef(refnum, this);
    57      }
    58      
    59      private static native int __NewInputStream();
    60      
    61      public final native java.io.InputStream getInputStream();
    62      public final native void setInputStream(java.io.InputStream v);
    63      
    64      @Override public native int read() throws java.io.IOException;
    65  }
    66  
    67  // Java class java.Object is a proxy for talking to a Go program.
    68  //   gobind -lang=java classes
    69  //
    70  // File is generated by gobind. Do not edit.
    71  package java;
    72  
    73  import go.Seq;
    74  
    75  public final class Object extends java.lang.Object implements Seq.GoObject {
    76      static { Java.touch(); }
    77      
    78      private final int refnum;
    79      
    80      @Override public final int incRefnum() {
    81            Seq.incGoRef(refnum, this);
    82            return refnum;
    83      }
    84      
    85      Object(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
    86      
    87      public Object() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
    88      
    89      private static native int __New();
    90      
    91      public final native java.lang.Object getObject();
    92      public final native void setObject(java.lang.Object v);
    93      
    94  }
    95  
    96  // Java class java.Runnable is a proxy for talking to a Go program.
    97  //   gobind -lang=java classes
    98  //
    99  // File is generated by gobind. Do not edit.
   100  package java;
   101  
   102  import go.Seq;
   103  
   104  public final class Runnable implements Seq.GoObject, java.lang.Runnable {
   105      static { Java.touch(); }
   106      
   107      private final int refnum;
   108      
   109      @Override public final int incRefnum() {
   110            Seq.incGoRef(refnum, this);
   111            return refnum;
   112      }
   113      
   114      Runnable(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
   115      
   116      public Runnable() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
   117      
   118      private static native int __New();
   119      
   120      public final native java.lang.Runnable getRunnable();
   121      public final native void setRunnable(java.lang.Runnable v);
   122      
   123      @Override public native void run();
   124  }
   125  
   126  // Java class java.Java is a proxy for talking to a Go program.
   127  //   gobind -lang=java classes
   128  //
   129  // File is generated by gobind. Do not edit.
   130  package java;
   131  
   132  import go.Seq;
   133  
   134  public abstract class Java {
   135      static {
   136          Seq.touch(); // for loading the native library
   137          _init();
   138      }
   139      
   140      private Java() {} // uninstantiable
   141      
   142      // touch is called from other bound packages to initialize this package
   143      public static void touch() {}
   144      
   145      private static native void _init();
   146      
   147      
   148      
   149      public static native InputStream newInputStream();
   150  }