java

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access string
const (
	AccessPublic    Access = "public"
	AccessPrivate   Access = "private"
	AccessProtected Access = "protected"
)

type Class

type Class struct {
	Name      string
	Package   string
	Access    Access
	Final     bool
	Synthetic bool
	Fields    []*Field
	Methods   []*Method
}

func (*Class) AddField

func (c *Class) AddField(field *Field)

func (*Class) GenType

func (c *Class) GenType(t *Type) string

func (*Class) Write

func (c *Class) Write(w *Writer)

type Field

type Field struct {
	Name      string
	Access    Access
	Final     bool
	Static    bool
	Synthetic bool
	Type      *Type
}

func (*Field) Write

func (f *Field) Write(w *Writer, c *Class)

type Method

type Method struct {
}

type Type

type Type struct {
	Name        string
	Package     string
	ArrayLength int
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter() *Writer

func (*Writer) EmptyLine

func (w *Writer) EmptyLine()

func (*Writer) Indent

func (w *Writer) Indent(d int)

func (*Writer) Reset

func (w *Writer) Reset()

func (*Writer) String

func (w *Writer) String() string

func (*Writer) WriteLine

func (w *Writer) WriteLine(text string)

func (*Writer) WriteLinef

func (w *Writer) WriteLinef(format string, args ...any)

Jump to

Keyboard shortcuts

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