classpath

package
v0.0.0-...-5a39fe6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classpath

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

func Parse

func Parse(jreOption, cpOption string) *Classpath

用-Xjre参数解析启动类路径和扩展类路径,用-classpath/-cp参数解析用户类路径

func (*Classpath) ReadClass

func (self *Classpath) ReadClass(className string) ([]byte, Entry, error)

func (*Classpath) String

func (self *Classpath) String() string

type CompositeEntry

type CompositeEntry []Entry

表示组合形式的类路径

func (CompositeEntry) String

func (self CompositeEntry) String() string

type DirEntry

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

表示目录形式的类路径

func (*DirEntry) String

func (self *DirEntry) String() string

type Entry

type Entry interface {

	// 相当于java中的toString()
	String() string
	// contains filtered or unexported methods
}

表示类路径项的接口

type ZipEntry

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

ZIP或JAR文件形式的类路径

func (*ZipEntry) String

func (self *ZipEntry) String() string

Jump to

Keyboard shortcuts

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