universe.java.golden 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class go.error is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java
  5. package go;
  6. import go.Seq;
  7. public interface error {
  8. public String error();
  9. }
  10. // Code generated by gobind. DO NOT EDIT.
  11. // Java class go.Universe is a proxy for talking to a Go program.
  12. //
  13. // autogenerated by gobind -lang=java
  14. package go;
  15. import go.Seq;
  16. public abstract class Universe {
  17. static {
  18. Seq.touch(); // for loading the native library
  19. _init();
  20. }
  21. private Universe() {} // uninstantiable
  22. // touch is called from other bound packages to initialize this package
  23. public static void touch() {}
  24. private static native void _init();
  25. private static final class proxyerror extends Exception implements Seq.Proxy, error {
  26. private final int refnum;
  27. @Override public final int incRefnum() {
  28. Seq.incGoRef(refnum, this);
  29. return refnum;
  30. }
  31. proxyerror(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  32. @Override public String getMessage() { return error(); }
  33. public native String error();
  34. }
  35. }