issue12403.java.golden 1.3 KB

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