attribute

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAttributeInfo

func ReadAttributeInfo(r cpool.PoolReader) (ai interface{}, err error)

func TypeName

func TypeName(i interface{}) (name string)

Types

type CodeAttribute

type CodeAttribute struct {
	MaxStack       uint16
	MaxLocals      uint16
	Code           []*bytecode.ByteCode
	ExceptionTable []*CodeAttributeExceptionTable
	Attributes     []interface{}
	// contains filtered or unexported fields
}

func ReadCodeAttribute

func ReadCodeAttribute(r cpool.PoolReader) (ca *CodeAttribute, err error)

type CodeAttributeExceptionTable

type CodeAttributeExceptionTable struct {
	StartPc   uint16
	EndPc     uint16
	HandlerPc uint16
	CatchType uint16
	// contains filtered or unexported fields
}

func ReadCodeAttributeExceptionTable

func ReadCodeAttributeExceptionTable(r io.Reader) (et *CodeAttributeExceptionTable, err error)

func (*CodeAttributeExceptionTable) String

func (c *CodeAttributeExceptionTable) String() string

type ConstantValueAttribute

type ConstantValueAttribute struct {
	ConstantValueIndex uint16
	// contains filtered or unexported fields
}

func (*ConstantValueAttribute) String

func (s *ConstantValueAttribute) String() string

type ExceptionsAttribute

type ExceptionsAttribute struct {
	Exceptions []uint16
	// contains filtered or unexported fields
}

func ReadExceptionsAttribute

func ReadExceptionsAttribute(r cpool.PoolReader) (ea *ExceptionsAttribute, err error)

func (*ExceptionsAttribute) String

func (s *ExceptionsAttribute) String() string

type FieldInfo

type FieldInfo struct {
	AccessFlags     aflag.FieldAccessFlags
	NameIndex       uint16
	DescriptorIndex uint16
	Attributes      []interface{}
	// contains filtered or unexported fields
}

FieldInfo describes a field on a java class See https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.5

func ReadFieldInfo

func ReadFieldInfo(r cpool.PoolReader) (fi *FieldInfo, err error)

ReadFieldInfo creates new field_info from the provided reader

func (*FieldInfo) String

func (c *FieldInfo) String() string

type MethodInfo

type MethodInfo struct {
	AccessFlags     aflag.MethodAccessFlags
	NameIndex       uint16
	DescriptorIndex uint16
	Attributes      []interface{}
	// contains filtered or unexported fields
}

func ReadMethodInfo

func ReadMethodInfo(r cpool.PoolReader) (mi *MethodInfo, err error)

func (*MethodInfo) String

func (c *MethodInfo) String() string

type SourceFileAttribute

type SourceFileAttribute struct {
	AttributeNameIndex uint16
	AttributeLength    uint64
	SourceFileIndex    uint16
	// contains filtered or unexported fields
}

SourceFileAttribute represents the original java source file name See https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.10

func (*SourceFileAttribute) String

func (s *SourceFileAttribute) String() string

Jump to

Keyboard shortcuts

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