Documentation
¶
Index ¶
- type AttributeInfo
- type ClassFile
- type ClassFileParser
- type ClassReader
- func (self *ClassReader) ReadBytes(n uint32) ([]byte, error)
- func (self *ClassReader) ReadUint8() (uint8, error)
- func (self *ClassReader) ReadUint16() (uint16, error)
- func (self *ClassReader) ReadUint16s() ([]uint16, error)
- func (self *ClassReader) ReadUint32() (uint32, error)
- func (self *ClassReader) ReadUint64() (uint64, error)
- type CodeAttribute
- type ConstantInfo
- type ConstantPool
- type ConstantValueAttribute
- type EnclosingMethodAttribute
- type ExceptionTableEntry
- type ExceptionsAttribute
- type LineNumberTableAttribute
- type LineNumberTableEntry
- type MemberInfo
- type SignatureAttribute
- type SourceFileAttribute
- type UnParsedAttribute
- type Version
- type VersionManager
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) 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 ConstantValueAttribute ¶
type ConstantValueAttribute interface {
Read(reader *ClassReader) error
ConstantValueIndex() uint16
}
type ExceptionTableEntry ¶
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 VersionManager ¶
type VersionManager struct {
}
Click to show internal directories.
Click to hide internal directories.