javagen

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassDecl

type ClassDecl struct {
	IsSubClass bool
	IsAbstract bool

	Type        ClassType
	PackageName string
	SuperClass  string
	Name        string
	Imports     map[string]bool

	ClassAnnotations []string
	Body             []string
}

func NewClassDecl

func NewClassDecl(classType ClassType) *ClassDecl

func (*ClassDecl) AddBody

func (d *ClassDecl) AddBody(s string)

func (*ClassDecl) AddClassAnnotation

func (d *ClassDecl) AddClassAnnotation(s string)

func (*ClassDecl) AddImport

func (d *ClassDecl) AddImport(s string)

func (*ClassDecl) Generate

func (d *ClassDecl) Generate() string

type ClassType

type ClassType int
const (
	CLASS     ClassType = 1
	INTERFACE ClassType = 2
)

Jump to

Keyboard shortcuts

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