heap

package
v0.0.0-...-d1d7e88 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ACC_PUBLIC       = 0x0001
	ACC_PRIVATE      = 0x0002
	ACC_PROTECTED    = 0x0004
	ACC_STATIC       = 0x0008
	ACC_FINAL        = 0x0010
	ACC_SUPER        = 0x0020
	ACC_SYNCHRONIZED = 0x0020
	ACC_VOLATILE     = 0x0040
	ACC_BRIDGE       = 0x0040
	ACC_TRANSIENT    = 0x0080
	ACC_VARARGS      = 0x0080
	ACC_NATIVE       = 0x0100
	ACC_INTERFACE    = 0x0200
	ACC_ABSTRACT     = 0x0400
	ACC_STRICT       = 0x0800
	ACC_SYNTHETIC    = 0x1000
	ACC_ANNOTATION   = 0x2000
	ACC_ENUM         = 0x4000
)

Variables

This section is empty.

Functions

func ConvertJavaStringToGoString

func ConvertJavaStringToGoString(javaString *Object) string

func CopyArray

func CopyArray(sourceArray, targetArray *Object, sourceArrayPosition, targetArrayPosition, length int32)

Types

type Class

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

func (*Class) GetArrayClass

func (class *Class) GetArrayClass() *Class

func (*Class) GetArrayElementClass

func (class *Class) GetArrayElementClass() *Class

func (*Class) GetClassInitializationMethod

func (class *Class) GetClassInitializationMethod() *Method

func (*Class) GetClassLoader

func (class *Class) GetClassLoader() *ClassLoader

func (*Class) GetConstantPool

func (class *Class) GetConstantPool() *ConstantPool

func (*Class) GetField

func (class *Class) GetField(name, descriptor string, isStatic bool) *Field

func (*Class) GetInstanceMethod

func (class *Class) GetInstanceMethod(methodName, methodDescriptor string) *Method

func (*Class) GetJavaClass

func (class *Class) GetJavaClass() *Object

func (*Class) GetJavaName

func (class *Class) GetJavaName() string

func (*Class) GetMainMethod

func (class *Class) GetMainMethod() *Method

func (*Class) GetMethod

func (class *Class) GetMethod(name, descriptor string, isStatic bool) *Method

func (*Class) GetName

func (class *Class) GetName() string

func (*Class) GetPackageName

func (class *Class) GetPackageName() string

func (*Class) GetReferenceVariable

func (class *Class) GetReferenceVariable(fieldName, fieldDescriptor string) *Object

func (*Class) GetSourceFileName

func (class *Class) GetSourceFileName() string

func (*Class) GetStaticMethod

func (class *Class) GetStaticMethod(methodName, descriptor string) *Method

func (*Class) GetStaticVariables

func (class *Class) GetStaticVariables() Variables

func (*Class) GetSuperClass

func (class *Class) GetSuperClass() *Class

func (*Class) IsAbstract

func (class *Class) IsAbstract() bool

func (*Class) IsAccessibleTo

func (class *Class) IsAccessibleTo(otherClass *Class) bool

func (*Class) IsAnnotation

func (class *Class) IsAnnotation() bool

func (*Class) IsArray

func (class *Class) IsArray() bool

func (*Class) IsAssignableFrom

func (class *Class) IsAssignableFrom(otherClass *Class) bool

func (*Class) IsEnum

func (class *Class) IsEnum() bool

func (*Class) IsFinal

func (class *Class) IsFinal() bool

func (*Class) IsImplementsFrom

func (class *Class) IsImplementsFrom(otherInterface *Class) bool

func (*Class) IsInitializationStarted

func (class *Class) IsInitializationStarted() bool

func (*Class) IsInterface

func (class *Class) IsInterface() bool

func (*Class) IsJavaCloneableClass

func (class *Class) IsJavaCloneableClass() bool

func (*Class) IsJavaObjectClass

func (class *Class) IsJavaObjectClass() bool

func (*Class) IsJavaSerializableClass

func (class *Class) IsJavaSerializableClass() bool

func (*Class) IsPrimitive

func (class *Class) IsPrimitive() bool

func (*Class) IsPublic

func (class *Class) IsPublic() bool

func (*Class) IsSubClassOf

func (class *Class) IsSubClassOf(otherClass *Class) bool

func (*Class) IsSubInterfaceOf

func (class *Class) IsSubInterfaceOf(otherInterface *Class) bool

func (*Class) IsSuper

func (class *Class) IsSuper() bool

func (*Class) IsSuperClassOf

func (class *Class) IsSuperClassOf(otherClass *Class) bool

func (*Class) IsSuperInterfaceOf

func (class *Class) IsSuperInterfaceOf(otherInterface *Class) bool

func (*Class) IsSynthetic

func (class *Class) IsSynthetic() bool

func (*Class) NewArray

func (class *Class) NewArray(length uint) *Object

func (*Class) NewObject

func (class *Class) NewObject() *Object

func (*Class) SetReferenceVariable

func (class *Class) SetReferenceVariable(fieldName, fieldDescriptor string, referenceVariable *Object)

func (*Class) StartInitialization

func (class *Class) StartInitialization()

type ClassLoader

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

func NewClassLoader

func NewClassLoader(classFinder *classpath.ClassFinder) *ClassLoader

func (*ClassLoader) DefineClass

func (classLoader *ClassLoader) DefineClass(classData []byte) *Class

func (*ClassLoader) LoadArrayClass

func (classLoader *ClassLoader) LoadArrayClass(className string) *Class

func (*ClassLoader) LoadClass

func (classLoader *ClassLoader) LoadClass(className string) *Class

func (*ClassLoader) LoadNonArrayClass

func (classLoader *ClassLoader) LoadNonArrayClass(className string) *Class

func (*ClassLoader) ReadClass

func (classLoader *ClassLoader) ReadClass(className string) ([]byte, classpath.ClasspathEntry)

type ClassMember

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

func (*ClassMember) GetClass

func (classMember *ClassMember) GetClass() *Class

func (*ClassMember) GetDescriptor

func (classMember *ClassMember) GetDescriptor() string

func (*ClassMember) GetName

func (classMember *ClassMember) GetName() string

func (*ClassMember) IsAccessibleTo

func (classMember *ClassMember) IsAccessibleTo(otherClass *Class) bool

func (*ClassMember) IsFinal

func (classMember *ClassMember) IsFinal() bool

func (*ClassMember) IsPrivate

func (classMember *ClassMember) IsPrivate() bool

func (*ClassMember) IsProtected

func (classMember *ClassMember) IsProtected() bool

func (*ClassMember) IsPublic

func (classMember *ClassMember) IsPublic() bool

func (*ClassMember) IsStatic

func (classMember *ClassMember) IsStatic() bool

func (*ClassMember) IsSynthetic

func (classMember *ClassMember) IsSynthetic() bool

type ClassReference

type ClassReference struct {
	SymbolicReference
}

type Constant

type Constant interface{}

type ConstantPool

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

func (*ConstantPool) GetConstant

func (constantPool *ConstantPool) GetConstant(index uint) Constant

type ExceptionHandler

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

type ExceptionTable

type ExceptionTable []*ExceptionHandler

type Field

type Field struct {
	ClassMember
	// contains filtered or unexported fields
}

func (*Field) GetConstantValueIndex

func (field *Field) GetConstantValueIndex() uint

func (*Field) GetVariableIndex

func (field *Field) GetVariableIndex() uint

func (*Field) IsEnum

func (field *Field) IsEnum() bool

func (*Field) IsLongOrDouble

func (field *Field) IsLongOrDouble() bool

func (*Field) IsTransient

func (field *Field) IsTransient() bool

func (*Field) IsVolatile

func (field *Field) IsVolatile() bool

type FieldReference

type FieldReference struct {
	MemberReference
	// contains filtered or unexported fields
}

func (*FieldReference) GetResolvedField

func (fieldReference *FieldReference) GetResolvedField() *Field

func (*FieldReference) ResolveFieldReference

func (fieldReference *FieldReference) ResolveFieldReference()

type InterfaceMethodReference

type InterfaceMethodReference struct {
	MemberReference
	// contains filtered or unexported fields
}

func (*InterfaceMethodReference) GetResolvedInterfaceMethod

func (interfaceMethodReference *InterfaceMethodReference) GetResolvedInterfaceMethod() *Method

func (*InterfaceMethodReference) ResolveInterfaceMethodReference

func (interfaceMethodReference *InterfaceMethodReference) ResolveInterfaceMethodReference()

type MemberReference

type MemberReference struct {
	SymbolicReference
	// contains filtered or unexported fields
}

func (*MemberReference) GetDescriptor

func (memberReference *MemberReference) GetDescriptor() string

func (*MemberReference) GetName

func (memberReference *MemberReference) GetName() string

type Method

type Method struct {
	ClassMember
	// contains filtered or unexported fields
}

func LookupMethodInClass

func LookupMethodInClass(class *Class, name, descriptor string) *Method

func (*Method) FindExceptionHandler

func (method *Method) FindExceptionHandler(exceptionClass *Class, pc int) int

func (*Method) GetArgumentsCount

func (method *Method) GetArgumentsCount() uint

func (*Method) GetCode

func (method *Method) GetCode() []byte

func (*Method) GetLineNumber

func (method *Method) GetLineNumber(pc int) int

func (*Method) GetMaxNumberOfLocalVariables

func (method *Method) GetMaxNumberOfLocalVariables() uint

func (*Method) GetMaxStackSize

func (method *Method) GetMaxStackSize() uint

func (*Method) IsAbstract

func (method *Method) IsAbstract() bool

func (*Method) IsBridge

func (method *Method) IsBridge() bool

func (*Method) IsNative

func (method *Method) IsNative() bool

func (*Method) IsStrict

func (method *Method) IsStrict() bool

func (*Method) IsSynchronized

func (method *Method) IsSynchronized() bool

func (*Method) IsVarargs

func (method *Method) IsVarargs() bool

type MethodDescriptor

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

type MethodDescriptorParser

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

func (*MethodDescriptorParser) EndParseParameters

func (methodDescriptorParser *MethodDescriptorParser) EndParseParameters()

func (*MethodDescriptorParser) Finish

func (methodDescriptorParser *MethodDescriptorParser) Finish()

func (*MethodDescriptorParser) Panic

func (methodDescriptorParser *MethodDescriptorParser) Panic()

func (*MethodDescriptorParser) Parse

func (methodDescriptorParser *MethodDescriptorParser) Parse(descriptor string)

func (*MethodDescriptorParser) ParseArrayType

func (methodDescriptorParser *MethodDescriptorParser) ParseArrayType() string

func (*MethodDescriptorParser) ParseFieldType

func (methodDescriptorParser *MethodDescriptorParser) ParseFieldType() string

func (*MethodDescriptorParser) ParseObjectType

func (methodDescriptorParser *MethodDescriptorParser) ParseObjectType() string

func (*MethodDescriptorParser) ParseParameterTypes

func (methodDescriptorParser *MethodDescriptorParser) ParseParameterTypes()

func (*MethodDescriptorParser) ParseReturnType

func (methodDescriptorParser *MethodDescriptorParser) ParseReturnType()

func (*MethodDescriptorParser) ReadUint8

func (methodDescriptorParser *MethodDescriptorParser) ReadUint8() uint8

func (*MethodDescriptorParser) StartParseParameters

func (methodDescriptorParser *MethodDescriptorParser) StartParseParameters()

func (*MethodDescriptorParser) UnReadUint8

func (methodDescriptorParser *MethodDescriptorParser) UnReadUint8()

type MethodReference

type MethodReference struct {
	MemberReference
	// contains filtered or unexported fields
}

func (*MethodReference) GetResolvedMethod

func (methodReference *MethodReference) GetResolvedMethod() *Method

func (*MethodReference) ResolveMethodReference

func (methodReference *MethodReference) ResolveMethodReference()

type Object

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

func ConvertGoStringToJavaString

func ConvertGoStringToJavaString(classLoader *ClassLoader, goString string) *Object

func GetInternedString

func GetInternedString(javaString *Object) *Object

func (*Object) Clone

func (object *Object) Clone() *Object

func (*Object) GetArrayLength

func (object *Object) GetArrayLength() int32

func (*Object) GetByteArray

func (object *Object) GetByteArray() []int8

func (*Object) GetCharArray

func (object *Object) GetCharArray() []uint16

func (*Object) GetClass

func (object *Object) GetClass() *Class

func (*Object) GetDoubleArray

func (object *Object) GetDoubleArray() []float64

func (*Object) GetExtraData

func (object *Object) GetExtraData() interface{}

func (*Object) GetFields

func (object *Object) GetFields() Variables

func (*Object) GetFloatArray

func (object *Object) GetFloatArray() []float32

func (*Object) GetIntArray

func (object *Object) GetIntArray() []int32

func (*Object) GetLongArray

func (object *Object) GetLongArray() []int64

func (*Object) GetReferenceArray

func (object *Object) GetReferenceArray() []*Object

func (*Object) GetReferenceValue

func (object *Object) GetReferenceValue(name, descriptor string) *Object

func (*Object) GetShortArray

func (object *Object) GetShortArray() []int16

func (*Object) IsInstanceOf

func (object *Object) IsInstanceOf(class *Class) bool

func (*Object) SetExtraData

func (object *Object) SetExtraData(extraData interface{})

func (*Object) SetReferenceValue

func (object *Object) SetReferenceValue(name, descriptor string, referenceValue *Object)

type SymbolicReference

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

func (*SymbolicReference) GetResolvedClass

func (symbolicReference *SymbolicReference) GetResolvedClass() *Class

func (*SymbolicReference) ResolveClassReference

func (symbolicReference *SymbolicReference) ResolveClassReference()

type Variable

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

type Variables

type Variables []Variable

func (Variables) GetDoubleValue

func (variables Variables) GetDoubleValue(index uint) float64

func (Variables) GetFloatValue

func (variables Variables) GetFloatValue(index uint) float32

func (Variables) GetIntegerValue

func (variables Variables) GetIntegerValue(index uint) int32

func (Variables) GetLongValue

func (variables Variables) GetLongValue(index uint) int64

func (Variables) GetReferenceValue

func (variables Variables) GetReferenceValue(index uint) *Object

func (Variables) SetDoubleValue

func (variables Variables) SetDoubleValue(index uint, value float64)

func (Variables) SetFloatValue

func (variables Variables) SetFloatValue(index uint, value float32)

func (Variables) SetIntegerValue

func (variables Variables) SetIntegerValue(index uint, value int32)

func (Variables) SetLongValue

func (variables Variables) SetLongValue(index uint, value int64)

func (Variables) SetReferenceValue

func (variables Variables) SetReferenceValue(index uint, value *Object)

Jump to

Keyboard shortcuts

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