classfile

package
v0.0.0-...-4303932 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONSTANT_Class              = 7
	CONSTANT_Fieldref           = 9
	CONSTANT_Methodref          = 10
	CONSTANT_InterfaceMethodref = 11
	CONSTANT_String             = 8
	CONSTANT_Integer            = 3
	CONSTANT_Float              = 4
	CONSTANT_Long               = 5
	CONSTANT_Double             = 6
	CONSTANT_NameAndType        = 12
	CONSTANT_Utf8               = 1
	CONSTANT_MethodHandle       = 15
	CONSTANT_MethodType         = 16
	CONSTANT_InvokeDynamic      = 18
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassFile

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

func Parse

func Parse(classData []byte) (cf *ClassFile, err error)

func (*ClassFile) ClassName

func (self *ClassFile) ClassName() string

func (*ClassFile) InterfaceNames

func (self *ClassFile) InterfaceNames() []string

func (*ClassFile) MajorVersion

func (self *ClassFile) MajorVersion() uint16

func (*ClassFile) SuperClassName

func (self *ClassFile) SuperClassName() string

type ClassReader

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

type ConstantClassInfo

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

func (*ConstantClassInfo) Name

func (self *ConstantClassInfo) Name() string

type ConstantDoubleInfo

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

type ConstantFieldrefInfo

type ConstantFieldrefInfo struct {
	ConstantMemberrefInfo
}

type ConstantFloatInfo

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

type ConstantInfo

type ConstantInfo interface {
	// contains filtered or unexported methods
}

type ConstantIntegerInfo

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

type ConstantInterfaceMethodref

type ConstantInterfaceMethodref struct {
	ConstantMemberrefInfo
}

type ConstantLongInfo

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

type ConstantMemberrefInfo

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

func (*ConstantMemberrefInfo) ClassName

func (self *ConstantMemberrefInfo) ClassName() string

func (*ConstantMemberrefInfo) NameAndDescriptor

func (self *ConstantMemberrefInfo) NameAndDescriptor() (string, string)

type ConstantMethodrefInfo

type ConstantMethodrefInfo struct {
	ConstantMemberrefInfo
}

type ConstantNameAndTypeInfo

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

type ConstantPool

type ConstantPool []ConstantInfo

type ConstantStringInfo

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

func (*ConstantStringInfo) String

func (self *ConstantStringInfo) String() string

type ConstantUtf8Info

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

func (*ConstantUtf8Info) Str

func (self *ConstantUtf8Info) Str() string

type MemberInfo

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

func (*MemberInfo) Descriptor

func (self *MemberInfo) Descriptor() string

func (*MemberInfo) Name

func (self *MemberInfo) Name() string

Jump to

Keyboard shortcuts

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