Documentation ¶
Index ¶
- Constants
- type Attribute
- type ByteCode
- type Class
- type ConstPool
- func (p *ConstPool) GetClassName(idx uint16) string
- func (p *ConstPool) GetConst(idx uint16) interface{}
- func (p *ConstPool) GetFieldRef(idx uint16) (class string, name string, desc string)
- func (p *ConstPool) GetInterfaceMethodRef(idx uint16) (class string, name string, desc string)
- func (p *ConstPool) GetMethodRef(idx uint16) (class string, name string, desc string)
- func (p *ConstPool) GetNameType(idx uint16) (name string, desc string)
- func (p *ConstPool) GetUtf8Const(idx uint16) string
- type Exception
- type Method
- type NameType
- type Object
- type Ref
Constants ¶
View Source
const ( ClassPublic = 0x1 ClassPrivate = 0x2 ClassProtected = 0x4 ClassStatic = 0x8 ClassFinal = 0x10 ClassInterface = 0x200 ClassAbstract = 0x400 ClassSynthetic = 0x1000 ClassAnnotation = 0x2000 ClassEnum = 0x4000 )
View Source
const ( ConstantClass byte = 7 ConstantFieldref byte = 9 ConstantMethodref byte = 10 ConstantInterfacemethodref byte = 11 ConstantString byte = 8 ConstantInteger byte = 3 ConstantFloat byte = 4 ConstantLong byte = 5 ConstantDouble byte = 6 ConstantNameandtype byte = 12 ConstantUtf8 byte = 1 CONSTANT_MethodHandle byte = 15 CONSTANT_MethodType byte = 16 CONSTANT_InvokeDynamic byte = 18 )
View Source
const ( MethodPublic = 0x1 MethodPrivate = 0x2 MethodProtected = 0x4 MethodStatic = 0x8 MethodFinal = 0x10 MethodSynchronized = 0x20 MethodBridge = 0x40 MethodVarargs = 0x100 MethodAbstract = 0x0400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct { Name string Methods map[string][]*Method Constants *ConstPool Super string Flags uint16 // contains filtered or unexported fields }
func (*Class) GetStaticField ¶
func (*Class) SetStaticField ¶
type ConstPool ¶
type ConstPool struct {
Consts []interface{}
}
func (*ConstPool) GetClassName ¶
GetClassName get a class name from constant pool by its index
func (*ConstPool) GetFieldRef ¶
GetFieldRef get the class, name and description of a field, from its index in constant pool
func (*ConstPool) GetInterfaceMethodRef ¶
GetInterfaceMethodRef get the class, name and description of an interface method, from its index in constant pool
func (*ConstPool) GetMethodRef ¶
GetMethodRef get the class, name and description of a method, from its index in constant pool
func (*ConstPool) GetNameType ¶
func (*ConstPool) GetUtf8Const ¶
GetUtf8Const get an utf8 constant from constant pool by its index
type Object ¶
func CreateObject ¶
Click to show internal directories.
Click to hide internal directories.