forked from golang/mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bind: adjust invalid java package names
Updates golang/go#12273 Change-Id: I8eac3e84d5a473e9ffe45705cea88537573aef61 Reviewed-on: https://go-review.googlesource.com/13873 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
- Loading branch information
Showing
7 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2015 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
// Package try has a name that is a Java keyword. | ||
// Gobind has to translate it usefully. See Issue #12273. | ||
package try | ||
|
||
func This() string { return "This" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Package go_try is an autogenerated binder stub for package try. | ||
// gobind -lang=go try | ||
// | ||
// File is generated by gobind. Do not edit. | ||
package go_try | ||
|
||
import ( | ||
"golang.org/x/mobile/bind/seq" | ||
"try" | ||
) | ||
|
||
func proxy_This(out, in *seq.Buffer) { | ||
res := try.This() | ||
out.WriteString(res) | ||
} | ||
|
||
func init() { | ||
seq.Register("try", 1, proxy_This) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Java Package 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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Objective-C API for talking to try Go package. | ||
// gobind -lang=objc try | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#ifndef __GoTry_H__ | ||
#define __GoTry_H__ | ||
|
||
#include <Foundation/Foundation.h> | ||
|
||
FOUNDATION_EXPORT NSString* GoTryThis(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Objective-C API for talking to try Go package. | ||
// gobind -lang=objc try | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#include "GoTry.h" | ||
#include <Foundation/Foundation.h> | ||
#include "seq.h" | ||
|
||
static NSString* errDomain = @"go.try"; | ||
|
||
@protocol goSeqRefInterface | ||
-(GoSeqRef*) ref; | ||
@end | ||
|
||
#define _DESCRIPTOR_ "try" | ||
|
||
#define _CALL_This_ 1 | ||
|
||
NSString* GoTryThis() { | ||
GoSeq in_ = {}; | ||
GoSeq out_ = {}; | ||
go_seq_send(_DESCRIPTOR_, _CALL_This_, &in_, &out_); | ||
NSString* ret0_ = go_seq_readUTF8(&out_); | ||
go_seq_free(&in_); | ||
go_seq_free(&out_); | ||
return ret0_; | ||
} | ||
|