java

package
v0.0.0-...-17f624c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeInfo

type AttributeInfo interface {
	Read(reader *ClassReader) error
}

type ClassFile

type ClassFile interface {
	Read(reader *ClassReader) (err error)
	MinorVersion() uint16
	MajorVersion() uint16
	ConstantPool() ConstantPool
	AccessFlags() uint16
	Fields() []MemberInfo
	Methods() []MemberInfo
	ClassName() (string, error)
	SuperClassName() (string, error)
	InterfaceNames() ([]string, error)
	SourceFileAttribute() SourceFileAttribute
}

type ClassFileParser

type ClassFileParser interface {
	ParseClassFile(data io.ReadCloser) (cf ClassFile, err error)
}

type ClassReader

type ClassReader struct {
	Data io.ReadCloser
}

func (*ClassReader) ReadBytes

func (self *ClassReader) ReadBytes(n uint32) ([]byte, error)

func (*ClassReader) ReadUint8

func (self *ClassReader) ReadUint8() (uint8, error)

func (*ClassReader) ReadUint16

func (self *ClassReader) ReadUint16() (uint16, error)

func (*ClassReader) ReadUint16s

func (self *ClassReader) ReadUint16s() ([]uint16, error)

func (*ClassReader) ReadUint32

func (self *ClassReader) ReadUint32() (uint32, error)

func (*ClassReader) ReadUint64

func (self *ClassReader) ReadUint64() (uint64, error)

type CodeAttribute

type CodeAttribute interface {
	Read(reader *ClassReader) error
	MaxStack() uint
	MaxLocals() uint
	Code() []byte
	ExceptionTable() []ExceptionTableEntry
	LineNumberTableAttribute() LineNumberTableAttribute
}

type ConstantInfo

type ConstantInfo interface {
	Read(reader *ClassReader) error
}

type ConstantPool

type ConstantPool interface {
	Read(reader *ClassReader) error
	GetConstantInfo(index uint16) (ConstantInfo, error)
	GetNameAndType(index uint16) (name string, _type string, err error)
	GetClassName(index uint16) (cn string, err error)
	GetUtf8(index uint16) (str string, err error)
}

type ConstantValueAttribute

type ConstantValueAttribute interface {
	Read(reader *ClassReader) error
	ConstantValueIndex() uint16
}

type EnclosingMethodAttribute

type EnclosingMethodAttribute interface {
	Read(reader *ClassReader) error
	ClassName() (string, error)
	MethodNameAndDescriptor() (string, string, error)
}

type ExceptionTableEntry

type ExceptionTableEntry interface {
	Read(reader *ClassReader) error
	StartPc() uint16
	EndPc() uint16
	HandlerPc() uint16
	CatchType() uint16
}

type ExceptionsAttribute

type ExceptionsAttribute interface {
	Read(reader *ClassReader) error
	ExceptionIndexTable() []uint16
}

type LineNumberTableAttribute

type LineNumberTableAttribute interface {
	Read(reader *ClassReader) error
	GetLineNumber(pc int) int
}

type LineNumberTableEntry

type LineNumberTableEntry interface {
	Read(reader *ClassReader) error
	StartPc() uint16
	LineNumber() uint16
}

type MemberInfo

type MemberInfo interface {
	Read(reader *ClassReader) error
	AccessFlags() uint16
	Name() (string, error)
	Descriptor() (string, error)
	CodeAttribute() CodeAttribute
	ConstantValueAttribute() ConstantValueAttribute
	ExceptionsAttribute() ExceptionsAttribute
	RuntimeVisibleAnnotationsAttributeData() []byte
	RuntimeVisibleParameterAnnotationsAttributeData() []byte
	AnnotationDefaultAttributeData() []byte
	UnParsedAttributeData(name string) []byte
}

type SignatureAttribute

type SignatureAttribute interface {
	Read(reader *ClassReader) error
	Signature() (string, error)
}

type SourceFileAttribute

type SourceFileAttribute interface {
	Read(reader *ClassReader) error
	FileName() (string, error)
}

type UnParsedAttribute

type UnParsedAttribute interface {
	Read(reader *ClassReader) error
	Name() string
	Info() []byte
}

type Version

type Version int
const (
	JDK8 Version = iota
	JDK9
	JDK10
	JDK11
	JDK12
)

type VersionManager

type VersionManager struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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