java

package
v3.9.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(options map[string]string) generator.LanguageGenerator

Types

type Generator

type Generator struct {
	*generator.BaseGenerator
	// contains filtered or unexported fields
}

func (*Generator) DefaultOutputDir

func (g *Generator) DefaultOutputDir() string

func (*Generator) GenerateConstants

func (g *Generator) GenerateConstants(file *os.File, name string) error

func (*Generator) GenerateConstantsContents

func (g *Generator) GenerateConstantsContents(constants []*parser.Constant) error

func (*Generator) GenerateDependencies

func (g *Generator) GenerateDependencies(dir string) error

func (*Generator) GenerateDocStringComment

func (g *Generator) GenerateDocStringComment(file *os.File) error

func (*Generator) GenerateEnum

func (g *Generator) GenerateEnum(enum *parser.Enum) error

func (*Generator) GenerateEnumImports

func (g *Generator) GenerateEnumImports(file *os.File) error

func (*Generator) GenerateException

func (g *Generator) GenerateException(exception *parser.Struct) error

func (*Generator) GenerateFile

func (g *Generator) GenerateFile(name, outputDir string, fileType generator.FileType) (*os.File, error)

func (*Generator) GeneratePublisher

func (g *Generator) GeneratePublisher(file *os.File, scope *parser.Scope) error

func (*Generator) GenerateScopeImports

func (g *Generator) GenerateScopeImports(file *os.File, s *parser.Scope) error

func (*Generator) GenerateScopePackage

func (g *Generator) GenerateScopePackage(file *os.File, s *parser.Scope) error

func (*Generator) GenerateService

func (g *Generator) GenerateService(file *os.File, s *parser.Service) error

func (*Generator) GenerateServiceImports

func (g *Generator) GenerateServiceImports(file *os.File, s *parser.Service) error

func (*Generator) GenerateServicePackage

func (g *Generator) GenerateServicePackage(file *os.File, s *parser.Service) error

func (*Generator) GenerateStruct

func (g *Generator) GenerateStruct(s *parser.Struct) error

func (*Generator) GenerateStructImports

func (g *Generator) GenerateStructImports(file *os.File) error

func (*Generator) GenerateSubscriber

func (g *Generator) GenerateSubscriber(file *os.File, scope *parser.Scope) error

func (*Generator) GenerateTypeDef

func (g *Generator) GenerateTypeDef(*parser.TypeDef) error

func (*Generator) GenerateUnion

func (g *Generator) GenerateUnion(union *parser.Struct) error

func (*Generator) GetOutputDir

func (g *Generator) GetOutputDir(dir string) string

func (*Generator) PostProcess

func (g *Generator) PostProcess(f *os.File) error

func (*Generator) SetupGenerator

func (g *Generator) SetupGenerator(outputDir string) error

func (*Generator) TeardownGenerator

func (g *Generator) TeardownGenerator() error

func (*Generator) UseVendor

func (g *Generator) UseVendor() bool

type IsSetType

type IsSetType int64

ADTs would be really nice

const (
	IsSetNone IsSetType = iota
	IsSetBitfield
	IsSetBitSet
)

Jump to

Keyboard shortcuts

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