Bind attempts to generate bindings for everything a package exports, generating an error for what it cannot handle. For multiple bound packages, unexporting what should not be bound is sometimes awkward or outright impossible. Lacking the equivalent of Cgo's //export directory, this CL change the behaviour of bind to simply ignore everything it can't generate bindings for, even if otherwise exported. For every declaration it ignores, a comment is generated instead, to help any confusion as to why a particular export was not included. Change-Id: I2c7a5bee0f19a58009293b4e5ac2c95687e62e80 Reviewed-on: https://go-review.googlesource.com/20651 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
97 lines
2.9 KiB
Plaintext
97 lines
2.9 KiB
Plaintext
// Java class go.ignore.Ignore is a proxy for talking to a Go program.
|
|
// gobind -lang=java ignore
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
package go.ignore;
|
|
|
|
import go.Seq;
|
|
|
|
public abstract class Ignore {
|
|
static {
|
|
Seq.touch(); // for loading the native library
|
|
init();
|
|
}
|
|
|
|
private Ignore() {} // uninstantiable
|
|
|
|
// touch is called from other bound packages to initialize this package
|
|
public static void touch() {}
|
|
|
|
private static native void init();
|
|
|
|
public static final class S implements go.Seq.Object, I {
|
|
private final go.Seq.Ref ref;
|
|
|
|
private S(go.Seq.Ref ref) { this.ref = ref; }
|
|
|
|
public final go.Seq.Ref ref() { return ref; }
|
|
|
|
// skipped field F.interface{} with unsupported type: %!T(MISSING)
|
|
|
|
// skipped method S.Argument with unsupported parameter or return types
|
|
|
|
// skipped method S.Result with unsupported parameter or return types
|
|
|
|
@Override public boolean equals(Object o) {
|
|
if (o == null || !(o instanceof S)) {
|
|
return false;
|
|
}
|
|
S that = (S)o;
|
|
// skipped field F.interface{} with unsupported type: %!T(MISSING)
|
|
|
|
return true;
|
|
}
|
|
|
|
@Override public int hashCode() {
|
|
return java.util.Arrays.hashCode(new Object[] {});
|
|
}
|
|
|
|
@Override public String toString() {
|
|
StringBuilder b = new StringBuilder();
|
|
b.append("S").append("{");
|
|
return b.append("}").toString();
|
|
}
|
|
}
|
|
|
|
public interface I extends go.Seq.Object {
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
public static abstract class Stub implements I {
|
|
private final go.Seq.Ref ref;
|
|
public Stub() {
|
|
ref = go.Seq.createRef(this);
|
|
}
|
|
|
|
public final go.Seq.Ref ref() { return ref; }
|
|
|
|
}
|
|
|
|
static final class Proxy implements I {
|
|
private go.Seq.Ref ref;
|
|
|
|
Proxy(go.Seq.Ref ref) { this.ref = ref; }
|
|
|
|
public final go.Seq.Ref ref() { return ref; }
|
|
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
}
|
|
}
|
|
|
|
// skipped const NamedConst with unsupported type: *types.Const
|
|
|
|
|
|
// skipped variable V with unsupported type: *types.Interface
|
|
|
|
// skipped variable Var with unsupported type: *types.Interface
|
|
|
|
// skipped function Argument with unsupported parameter or return types
|
|
|
|
// skipped function Result with unsupported parameter or return types
|
|
|
|
}
|