module

package
v0.0.0-...-129b147 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomaticModule

type AutomaticModule struct {
	BaseModule
}

JAR without module-info.class

func NewAutomaticModule

func NewAutomaticModule(path string) *AutomaticModule

func (*AutomaticModule) ReadClass

func (m *AutomaticModule) ReadClass(name string) ([]byte, error)

type BaseModule

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

func (*BaseModule) GetInfo

func (bm *BaseModule) GetInfo() *Info

func (*BaseModule) GetName

func (bm *BaseModule) GetName() string

func (*BaseModule) GetVersion

func (bm *BaseModule) GetVersion() string

type ExplodedModule

type ExplodedModule struct {
	BaseModule
	// contains filtered or unexported fields
}

func NewExplodedModule

func NewExplodedModule(path string) *ExplodedModule

func (*ExplodedModule) ReadClass

func (m *ExplodedModule) ReadClass(name string) ([]byte, error)

type Export

type Export struct {
	Package string
	Flags   uint16
	To      []string
}

type Info

type Info struct {
	Name     string
	Flags    uint16
	Version  string
	Requires []Require
	Exports  []Export
	Opens    []Open
	Uses     []string
	Provides []Provide
}

func ParseModuleInfo

func ParseModuleInfo(classData []byte) *Info

type JModModule

type JModModule struct {
	BaseModule
	// contains filtered or unexported fields
}

func NewJModModule

func NewJModModule(path string) *JModModule

func (*JModModule) ReadClass

func (m *JModModule) ReadClass(name string) ([]byte, error)

type ModularJAR

type ModularJAR struct {
	BaseModule
	// contains filtered or unexported fields
}

JAR with module-info.class

func NewModularJAR

func NewModularJAR(path string) *ModularJAR

func (*ModularJAR) ReadClass

func (m *ModularJAR) ReadClass(name string) ([]byte, error)

type Module

type Module interface {
	GetInfo() *Info
	GetName() string
	GetVersion() string
	ReadClass(className string) ([]byte, error)
}

TODO

type Open

type Open struct {
	Package string
	Flags   uint16
	To      []string
}

type Path

type Path []Module

func CheckDeps

func CheckDeps(path Path, rootModuleName string) Path

TODO: check dependency loop

func (Path) Len

func (path Path) Len() int

sort.Interface

func (Path) Less

func (path Path) Less(i, j int) bool

func (Path) ReadClass

func (path Path) ReadClass(className string) (string, []byte)

TODO

func (Path) Sort

func (path Path) Sort()

func (Path) Swap

func (path Path) Swap(i, j int)

type Provide

type Provide struct {
	Service string
	Impls   []string
}

type Require

type Require struct {
	Name    string
	Flags   uint16
	Version string
}

type UnnamedModule

type UnnamedModule struct {
	BaseModule
}

Jump to

Keyboard shortcuts

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