| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- // Code generated by gobind. DO NOT EDIT.
- // Java class doc.NoDoc is a proxy for talking to a Go program.
- //
- // autogenerated by gobind -lang=java doc
- package doc;
- import go.Seq;
- /**
- * A generic comment with <HTML>.
- */
- public final class NoDoc implements Seq.Proxy {
- static { Doc.touch(); }
-
- private final int refnum;
-
- @Override public final int incRefnum() {
- Seq.incGoRef(refnum, this);
- return refnum;
- }
-
- NoDoc(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
-
- public NoDoc() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
-
- private static native int __New();
-
- @Override public boolean equals(Object o) {
- if (o == null || !(o instanceof NoDoc)) {
- return false;
- }
- NoDoc that = (NoDoc)o;
- return true;
- }
-
- @Override public int hashCode() {
- return java.util.Arrays.hashCode(new Object[] {});
- }
-
- @Override public String toString() {
- StringBuilder b = new StringBuilder();
- b.append("NoDoc").append("{");
- return b.append("}").toString();
- }
- }
- // Code generated by gobind. DO NOT EDIT.
- // Java class doc.S is a proxy for talking to a Go program.
- //
- // autogenerated by gobind -lang=java doc
- package doc;
- import go.Seq;
- /**
- * S is a struct.
- */
- public final class S implements Seq.Proxy {
- static { Doc.touch(); }
-
- private final int refnum;
-
- @Override public final int incRefnum() {
- Seq.incGoRef(refnum, this);
- return refnum;
- }
-
- /**
- * NewS is a constructor.
- */
- public S() {
- this.refnum = __NewS();
- Seq.trackGoRef(refnum, this);
- }
-
- private static native int __NewS();
-
- S(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
-
- /**
- * SF is a field.
- */
- public final native String getSF();
- /**
- * SF is a field.
- */
- public final native void setSF(String v);
-
- /**
- * Anonymous field.
- */
- public final native S2 getS2();
- /**
- * Anonymous field.
- */
- public final native void setS2(S2 v);
-
- /**
- * Multiple fields.
- */
- public final native String getF1();
- /**
- * Multiple fields.
- */
- public final native void setF1(String v);
-
- /**
- * Multiple fields.
- */
- public final native String getF2();
- /**
- * Multiple fields.
- */
- public final native void setF2(String v);
-
- /**
- * After is another method.
- */
- public native void after();
- public native void before();
- @Override public boolean equals(Object o) {
- if (o == null || !(o instanceof S)) {
- return false;
- }
- S that = (S)o;
- String thisSF = getSF();
- String thatSF = that.getSF();
- if (thisSF == null) {
- if (thatSF != null) {
- return false;
- }
- } else if (!thisSF.equals(thatSF)) {
- return false;
- }
- S2 thisS2 = getS2();
- S2 thatS2 = that.getS2();
- if (thisS2 == null) {
- if (thatS2 != null) {
- return false;
- }
- } else if (!thisS2.equals(thatS2)) {
- return false;
- }
- String thisF1 = getF1();
- String thatF1 = that.getF1();
- if (thisF1 == null) {
- if (thatF1 != null) {
- return false;
- }
- } else if (!thisF1.equals(thatF1)) {
- return false;
- }
- String thisF2 = getF2();
- String thatF2 = that.getF2();
- if (thisF2 == null) {
- if (thatF2 != null) {
- return false;
- }
- } else if (!thisF2.equals(thatF2)) {
- return false;
- }
- return true;
- }
-
- @Override public int hashCode() {
- return java.util.Arrays.hashCode(new Object[] {getSF(), getS2(), getF1(), getF2()});
- }
-
- @Override public String toString() {
- StringBuilder b = new StringBuilder();
- b.append("S").append("{");
- b.append("SF:").append(getSF()).append(",");
- b.append("S2:").append(getS2()).append(",");
- b.append("F1:").append(getF1()).append(",");
- b.append("F2:").append(getF2()).append(",");
- return b.append("}").toString();
- }
- }
- // Code generated by gobind. DO NOT EDIT.
- // Java class doc.S2 is a proxy for talking to a Go program.
- //
- // autogenerated by gobind -lang=java doc
- package doc;
- import go.Seq;
- /**
- * S2 is a struct.
- */
- public final class S2 implements Seq.Proxy {
- static { Doc.touch(); }
-
- private final int refnum;
-
- @Override public final int incRefnum() {
- Seq.incGoRef(refnum, this);
- return refnum;
- }
-
- S2(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
-
- public S2() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
-
- private static native int __New();
-
- @Override public boolean equals(Object o) {
- if (o == null || !(o instanceof S2)) {
- return false;
- }
- S2 that = (S2)o;
- return true;
- }
-
- @Override public int hashCode() {
- return java.util.Arrays.hashCode(new Object[] {});
- }
-
- @Override public String toString() {
- StringBuilder b = new StringBuilder();
- b.append("S2").append("{");
- return b.append("}").toString();
- }
- }
- // Code generated by gobind. DO NOT EDIT.
- // Java class doc.I is a proxy for talking to a Go program.
- //
- // autogenerated by gobind -lang=java doc
- package doc;
- import go.Seq;
- /**
- * I is an interface.
- */
- public interface I {
- /**
- * IM is a method.
- */
- public void im();
-
- }
- // Code generated by gobind. DO NOT EDIT.
- // Java class doc.Doc is a proxy for talking to a Go program.
- //
- // autogenerated by gobind -lang=java doc
- package doc;
- import go.Seq;
- public abstract class Doc {
- static {
- Seq.touch(); // for loading the native library
- _init();
- }
-
- private Doc() {} // uninstantiable
-
- // touch is called from other bound packages to initialize this package
- public static void touch() {}
-
- private static native void _init();
-
- private static final class proxyI implements Seq.Proxy, I {
- private final int refnum;
-
- @Override public final int incRefnum() {
- Seq.incGoRef(refnum, this);
- return refnum;
- }
-
- proxyI(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
-
- public native void im();
- }
-
- /**
- * C is a constant.
- */
- public static final boolean C = true;
-
- /**
- * A group of vars.
- */
- public static native void setNoDocVar(double v);
- /**
- * A group of vars.
- */
- public static native double getNoDocVar();
-
- /**
- * A specific var.
- */
- public static native void setSpecific(String v);
- /**
- * A specific var.
- */
- public static native String getSpecific();
-
- /**
- * V is a var.
- */
- public static native void setV(String v);
- /**
- * V is a var.
- */
- public static native String getV();
-
- /**
- * F is a function.
- */
- public static native void f();
- /**
- * NewS is a constructor.
- */
- public static native S newS();
- }
|