Documentation
¶
Index ¶
- type GoBuilderCtx
- func (ctx *GoBuilderCtx) FromGoGenFnGoFile(fn *udwGoParser.FuncOrMethodDeclaration)
- func (ctx *GoBuilderCtx) GenGo(toGoFn GoFnVisitor, fromGoFn GoFnVisitor)
- func (ctx *GoBuilderCtx) GenGoMarshal(_buf *bytes.Buffer, typ udwGoParser.Type, varName string)
- func (ctx *GoBuilderCtx) GenGoUnmarshal(_buf *bytes.Buffer, typ udwGoParser.Type, varName string)
- func (ctx *GoBuilderCtx) GetFromGoCFnPrototypeContent(cFnName string) string
- func (ctx *GoBuilderCtx) GetNextVarString() string
- func (ctx *GoBuilderCtx) ToGoGenFnGoFile(fn *udwGoParser.FuncOrMethodDeclaration)
- func (ctx *GoBuilderCtx) ToGoGenFnGoFileForJava(fn *udwGoParser.FuncOrMethodDeclaration)
- type GoBuilderCtxRequest
- type GoFnVisitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoBuilderCtx ¶
type GoBuilderCtx struct {
Req GoBuilderCtxRequest
GoFileContext *udwGoWriter.GoFileContext
GoFileBuffer bytes.Buffer
GoFileHBuffer bytes.Buffer
GoFileFuncBuffer bytes.Buffer
CurrentProcessFnName string
// contains filtered or unexported fields
}
func NewGoBuilderCtx ¶
func NewGoBuilderCtx(req GoBuilderCtxRequest) *GoBuilderCtx
func (*GoBuilderCtx) FromGoGenFnGoFile ¶
func (ctx *GoBuilderCtx) FromGoGenFnGoFile(fn *udwGoParser.FuncOrMethodDeclaration)
func (*GoBuilderCtx) GenGo ¶
func (ctx *GoBuilderCtx) GenGo(toGoFn GoFnVisitor, fromGoFn GoFnVisitor)
func (*GoBuilderCtx) GenGoMarshal ¶
func (ctx *GoBuilderCtx) GenGoMarshal(_buf *bytes.Buffer, typ udwGoParser.Type, varName string)
func (*GoBuilderCtx) GenGoUnmarshal ¶
func (ctx *GoBuilderCtx) GenGoUnmarshal(_buf *bytes.Buffer, typ udwGoParser.Type, varName string)
func (*GoBuilderCtx) GetFromGoCFnPrototypeContent ¶
func (ctx *GoBuilderCtx) GetFromGoCFnPrototypeContent(cFnName string) string
func (*GoBuilderCtx) GetNextVarString ¶
func (ctx *GoBuilderCtx) GetNextVarString() string
func (*GoBuilderCtx) ToGoGenFnGoFile ¶
func (ctx *GoBuilderCtx) ToGoGenFnGoFile(fn *udwGoParser.FuncOrMethodDeclaration)
func (*GoBuilderCtx) ToGoGenFnGoFileForJava ¶
func (ctx *GoBuilderCtx) ToGoGenFnGoFileForJava(fn *udwGoParser.FuncOrMethodDeclaration)
type GoBuilderCtxRequest ¶
type GoBuilderCtxRequest struct {
OutGoFilePath string
CgoHeaderContent string
IsNoParameterFromGoDirectCall bool
IsStringUTF16 bool
PkgImportPath string
BuildFlagContent string
GoToJavaDispatchPackage string
GjNameIdGetter func(fn *udwGoParser.FuncOrMethodDeclaration) string
}
type GoFnVisitor ¶
type GoFnVisitor func(f func(fnDef *udwGoParser.FuncOrMethodDeclaration))
Click to show internal directories.
Click to hide internal directories.