Documentation ¶
Index ¶
- Constants
- func TypeName(i interface{}) (name string)
- type ConstBase
- type ConstantClassInfo
- type ConstantDoubleInfo
- type ConstantFieldrefInfo
- type ConstantFloatInfo
- type ConstantIntegerInfo
- type ConstantInterfaceMethodrefInfo
- type ConstantInvokeDynamicInfo
- type ConstantLongInfo
- type ConstantMethodHandleInfo
- type ConstantMethodTypeInfo
- type ConstantMethodrefInfo
- type ConstantNameAndTypeInfo
- type ConstantPool
- type ConstantStringInfo
- type ConstantUtf8Info
- type PoolReader
- type RefBase
Constants ¶
View Source
const ConstantClass = 7
View Source
const ConstantDouble = 6
View Source
const ConstantFieldref = 9
View Source
const ConstantFloat = 4
View Source
const ConstantInteger = 3
View Source
const ConstantInterfaceMethodref = 11
View Source
const ConstantInvokeDynamic = 18
View Source
const ConstantLong = 5
View Source
const ConstantMethodHandle = 15
View Source
const ConstantMethodType = 16
View Source
const ConstantMethodref = 10
View Source
const ConstantNameAndType = 12
View Source
const ConstantString = 8
View Source
const ConstantUtf8 = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConstBase ¶
type ConstBase struct { // Index is the location in the constant pool for this constant Index uint16 // Pool contains the constant pool for this constant and is used to lookup other constants in String() Pool ConstantPool // Tag is the constant pool tag which designates the type of constant Tag uint8 // Type is the java spec type name Type string }
ConstBase contains commonality across all constants in the constant pool
type ConstantClassInfo ¶
func ReadConstantClassInfo ¶
func ReadConstantClassInfo(r PoolReader, index uint16) (c *ConstantClassInfo, err error)
func (*ConstantClassInfo) String ¶
func (c *ConstantClassInfo) String() string
type ConstantDoubleInfo ¶
func ReadConstantDoubleInfo ¶
func ReadConstantDoubleInfo(r PoolReader, index uint16) (cd *ConstantDoubleInfo, err error)
func (*ConstantDoubleInfo) String ¶
func (c *ConstantDoubleInfo) String() string
type ConstantFieldrefInfo ¶
type ConstantFieldrefInfo struct{ RefBase }
func ReadConstantFieldrefInfo ¶
func ReadConstantFieldrefInfo(r PoolReader, index uint16) (fr *ConstantFieldrefInfo, err error)
func (*ConstantFieldrefInfo) String ¶
func (c *ConstantFieldrefInfo) String() string
type ConstantFloatInfo ¶
func ReadConstantFloatInfo ¶
func ReadConstantFloatInfo(r PoolReader, index uint16) (cf *ConstantFloatInfo, err error)
func (*ConstantFloatInfo) String ¶
func (c *ConstantFloatInfo) String() string
type ConstantIntegerInfo ¶
func ReadConstantIntegerInfo ¶
func ReadConstantIntegerInfo(r PoolReader, index uint16) (ci *ConstantIntegerInfo, err error)
func (*ConstantIntegerInfo) String ¶
func (c *ConstantIntegerInfo) String() string
type ConstantInterfaceMethodrefInfo ¶
type ConstantInterfaceMethodrefInfo struct{ RefBase }
func ReadConstantInterfaceMethodrefInfo ¶
func ReadConstantInterfaceMethodrefInfo(r PoolReader, index uint16) (imr *ConstantInterfaceMethodrefInfo, err error)
func (*ConstantInterfaceMethodrefInfo) String ¶
func (imr *ConstantInterfaceMethodrefInfo) String() string
type ConstantInvokeDynamicInfo ¶
type ConstantInvokeDynamicInfo struct { ConstBase BoostrapMethodAttrIndex uint16 NameAndTypeIndex uint16 }
func ReadConstantInvokeDynamicInfo ¶
func ReadConstantInvokeDynamicInfo(r PoolReader, index uint16) (cid *ConstantInvokeDynamicInfo, err error)
type ConstantLongInfo ¶
func ReadConstantLongInfo ¶
func ReadConstantLongInfo(r PoolReader, index uint16) (cl *ConstantLongInfo, err error)
func (*ConstantLongInfo) String ¶
func (c *ConstantLongInfo) String() string
type ConstantMethodHandleInfo ¶
func ReadConstantMethodHandleInfo ¶
func ReadConstantMethodHandleInfo(r PoolReader, index uint16) (mh *ConstantMethodHandleInfo, err error)
type ConstantMethodTypeInfo ¶
func ReadConstantMethodTypeInfo ¶
func ReadConstantMethodTypeInfo(r PoolReader, index uint16) (mt *ConstantMethodTypeInfo, err error)
type ConstantMethodrefInfo ¶
type ConstantMethodrefInfo struct{ RefBase }
func ReadConstantMethodrefInfo ¶
func ReadConstantMethodrefInfo(r PoolReader, index uint16) (mr *ConstantMethodrefInfo, err error)
func (*ConstantMethodrefInfo) String ¶
func (mr *ConstantMethodrefInfo) String() string
type ConstantNameAndTypeInfo ¶
func ReadConstantNameAndTypeInfo ¶
func ReadConstantNameAndTypeInfo(r PoolReader, index uint16) (nat *ConstantNameAndTypeInfo, err error)
func (*ConstantNameAndTypeInfo) String ¶
func (c *ConstantNameAndTypeInfo) String() string
type ConstantPool ¶
type ConstantPool interface { Lookup(index uint16) interface{} Visit(func(interface{})) DebugOut() }
ConstantPool breaks cyclic dependencies between packages TODO: this may not be needed anymore after recent refactoring
type ConstantStringInfo ¶
func ReadConstantStringInfo ¶
func ReadConstantStringInfo(r PoolReader, index uint16) (cs *ConstantStringInfo, err error)
func (*ConstantStringInfo) String ¶
func (c *ConstantStringInfo) String() string
type ConstantUtf8Info ¶
TODO: this probably does not need to be anything other than a string
func ReadConstantUtf8Info ¶
func ReadConstantUtf8Info(r PoolReader, index uint16) (u *ConstantUtf8Info, err error)
func (*ConstantUtf8Info) String ¶
func (c *ConstantUtf8Info) String() string
type PoolReader ¶
type PoolReader struct { io.Reader ConstantPool }
PoolReader combines the current reader and a reference to the constant pool
Click to show internal directories.
Click to hide internal directories.