kotlin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Report  analyzer.Report
	Files   map[string]string
	BaseDir string
}

Generator handles Kotlin code generation

func New

func New(report analyzer.Report) *Generator

New creates a new Kotlin code generator

func (*Generator) Generate

func (g *Generator) Generate() (string, error)

Generate generates Kotlin code for all transactions and scripts

func (*Generator) SetBaseDir

func (g *Generator) SetBaseDir(dir string)

SetBaseDir sets the base directory for reading files

type KotlinField

type KotlinField struct {
	Name     string
	Type     string
	Optional bool
}

KotlinField represents a field in a Kotlin data class

type KotlinFunction

type KotlinFunction struct {
	FuncName   string
	ClassName  string
	Parameters []KotlinParameter
	ReturnType string
	Base64     string
	Type       string // "transaction" or "script"
}

KotlinFunction represents a function in the generated code

type KotlinParameter

type KotlinParameter struct {
	Name     string
	Type     string
	Optional bool
}

KotlinParameter represents a parameter in Kotlin

type KotlinStruct

type KotlinStruct struct {
	Name   string
	Fields []KotlinField
}

KotlinStruct represents a data class in Kotlin

Jump to

Keyboard shortcuts

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