classpath

package
v0.0.0-...-e404330 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 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
}

Classpath contains bootClasspath, extClasspath, userClasspath

func Parse

func Parse(jreOption, cpOption string) *Classpath

Parse parse boot and ext class path with jreOption Parse parse user class path with cpOption

func (*Classpath) ReadClass

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

ReadClass used to search and load the class file from bootClasspath, extClasspath, userClasspath

func (*Classpath) String

func (cp *Classpath) String() string

type CompositeEntry

type CompositeEntry []Entry

CompositeEntry a list of small Entry

func (CompositeEntry) String

func (ce CompositeEntry) String() string

type DirEntry

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

DirEntry used to store the absolute path

func (*DirEntry) String

func (de *DirEntry) String() string

String a simple method to return the absDir

type Entry

type Entry interface {

	//like toString method in java
	String() string
	// contains filtered or unexported methods
}

Entry contains readClass method and String method -> interface

type ZipEntry

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

ZipEntry stores the absolute path of ZIP or JAR files

func (*ZipEntry) String

func (ze *ZipEntry) String() string

Jump to

Keyboard shortcuts

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