vars.java.golden 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class vars.S is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java vars
  5. package vars;
  6. import go.Seq;
  7. public final class S implements Seq.Proxy, I {
  8. static { Vars.touch(); }
  9. private final int refnum;
  10. @Override public final int incRefnum() {
  11. Seq.incGoRef(refnum, this);
  12. return refnum;
  13. }
  14. S(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  15. public S() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  16. private static native int __New();
  17. @Override public boolean equals(Object o) {
  18. if (o == null || !(o instanceof S)) {
  19. return false;
  20. }
  21. S that = (S)o;
  22. return true;
  23. }
  24. @Override public int hashCode() {
  25. return java.util.Arrays.hashCode(new Object[] {});
  26. }
  27. @Override public String toString() {
  28. StringBuilder b = new StringBuilder();
  29. b.append("S").append("{");
  30. return b.append("}").toString();
  31. }
  32. }
  33. // Code generated by gobind. DO NOT EDIT.
  34. // Java class vars.I is a proxy for talking to a Go program.
  35. //
  36. // autogenerated by gobind -lang=java vars
  37. package vars;
  38. import go.Seq;
  39. public interface I {
  40. }
  41. // Code generated by gobind. DO NOT EDIT.
  42. // Java class vars.Vars is a proxy for talking to a Go program.
  43. //
  44. // autogenerated by gobind -lang=java vars
  45. package vars;
  46. import go.Seq;
  47. public abstract class Vars {
  48. static {
  49. Seq.touch(); // for loading the native library
  50. _init();
  51. }
  52. private Vars() {} // uninstantiable
  53. // touch is called from other bound packages to initialize this package
  54. public static void touch() {}
  55. private static native void _init();
  56. private static final class proxyI implements Seq.Proxy, I {
  57. private final int refnum;
  58. @Override public final int incRefnum() {
  59. Seq.incGoRef(refnum, this);
  60. return refnum;
  61. }
  62. proxyI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  63. }
  64. public static native void setABool(boolean v);
  65. public static native boolean getABool();
  66. public static native void setAFloat(double v);
  67. public static native double getAFloat();
  68. public static native void setAFloat32(float v);
  69. public static native float getAFloat32();
  70. public static native void setAFloat64(double v);
  71. public static native double getAFloat64();
  72. public static native void setAString(String v);
  73. public static native String getAString();
  74. public static native void setAStructPtr(S v);
  75. public static native S getAStructPtr();
  76. public static native void setAnInt(long v);
  77. public static native long getAnInt();
  78. public static native void setAnInt16(short v);
  79. public static native short getAnInt16();
  80. public static native void setAnInt32(int v);
  81. public static native int getAnInt32();
  82. public static native void setAnInt64(long v);
  83. public static native long getAnInt64();
  84. public static native void setAnInt8(byte v);
  85. public static native byte getAnInt8();
  86. public static native void setAnInterface(I v);
  87. public static native I getAnInterface();
  88. }