2
0
mirror of synced 2025-02-22 22:38:18 +00:00
mobile/bind/testdata/try.java.golden
Hyang-Ah (Hana) Kim c384607ef3 bind: support for custom java package name and objective-c prefix.
Introduce options -javapkg and -prefix for gobind command.

The following generates java class Testpkg with package name com.example.

gobind -lang=java -javapkg=com.example testpkg

The following generates objective-c files where function and type names
are prefixed with ExampleTestpkg.

gobind -lang=objc -prefix=Example testpkg

As discussed in golang/go#9660 and golang/go#12245.

Gomobile support is not yet implemented.

Change-Id: Ib9e39997ce915580a5a2e25643c0c28373f27ee1
Reviewed-on: https://go-review.googlesource.com/13969
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-08-28 13:57:06 +00:00

24 lines
598 B
Plaintext

// Java class go.try_.Try is a proxy for talking to a Go program.
// gobind -lang=java try
//
// File is generated by gobind. Do not edit.
package go.try_;
import go.Seq;
public abstract class Try {
private Try() {} // uninstantiable
public static String This() {
go.Seq _in = new go.Seq();
go.Seq _out = new go.Seq();
String _result;
Seq.send(DESCRIPTOR, CALL_This, _in, _out);
_result = _out.readString();
return _result;
}
private static final int CALL_This = 1;
private static final String DESCRIPTOR = "try";
}