classpath

package
v0.0.0-...-8960b5b Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT 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

解析启动类路径和扩展类路径

func (*Classpath) ReadClass

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

依次从启动类路径、扩展类路径和用户类路径中搜索class文件

func (*Classpath) String

func (self *Classpath) String() string

返回用户路径的字符串表示

type CompositeEntry

type CompositeEntry []Entry

func (CompositeEntry) String

func (self CompositeEntry) String() 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 {
	String() string //类似于java中toString()函数
	// contains filtered or unexported methods
}

定义Entry接口

type ZipEntry

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

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