udwRspBuilderLib

package
v0.0.0-...-f254aa5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL