Documentation
¶
Index ¶
- Constants
- func ConvertJavaStringToGoString(javaString *Object) string
- func CopyArray(sourceArray, targetArray *Object, ...)
- type Class
- func (class *Class) GetArrayClass() *Class
- func (class *Class) GetArrayElementClass() *Class
- func (class *Class) GetClassInitializationMethod() *Method
- func (class *Class) GetClassLoader() *ClassLoader
- func (class *Class) GetConstantPool() *ConstantPool
- func (class *Class) GetField(name, descriptor string, isStatic bool) *Field
- func (class *Class) GetInstanceMethod(methodName, methodDescriptor string) *Method
- func (class *Class) GetJavaClass() *Object
- func (class *Class) GetJavaName() string
- func (class *Class) GetMainMethod() *Method
- func (class *Class) GetMethod(name, descriptor string, isStatic bool) *Method
- func (class *Class) GetName() string
- func (class *Class) GetPackageName() string
- func (class *Class) GetReferenceVariable(fieldName, fieldDescriptor string) *Object
- func (class *Class) GetSourceFileName() string
- func (class *Class) GetStaticMethod(methodName, descriptor string) *Method
- func (class *Class) GetStaticVariables() Variables
- func (class *Class) GetSuperClass() *Class
- func (class *Class) IsAbstract() bool
- func (class *Class) IsAccessibleTo(otherClass *Class) bool
- func (class *Class) IsAnnotation() bool
- func (class *Class) IsArray() bool
- func (class *Class) IsAssignableFrom(otherClass *Class) bool
- func (class *Class) IsEnum() bool
- func (class *Class) IsFinal() bool
- func (class *Class) IsImplementsFrom(otherInterface *Class) bool
- func (class *Class) IsInitializationStarted() bool
- func (class *Class) IsInterface() bool
- func (class *Class) IsJavaCloneableClass() bool
- func (class *Class) IsJavaObjectClass() bool
- func (class *Class) IsJavaSerializableClass() bool
- func (class *Class) IsPrimitive() bool
- func (class *Class) IsPublic() bool
- func (class *Class) IsSubClassOf(otherClass *Class) bool
- func (class *Class) IsSubInterfaceOf(otherInterface *Class) bool
- func (class *Class) IsSuper() bool
- func (class *Class) IsSuperClassOf(otherClass *Class) bool
- func (class *Class) IsSuperInterfaceOf(otherInterface *Class) bool
- func (class *Class) IsSynthetic() bool
- func (class *Class) NewArray(length uint) *Object
- func (class *Class) NewObject() *Object
- func (class *Class) SetReferenceVariable(fieldName, fieldDescriptor string, referenceVariable *Object)
- func (class *Class) StartInitialization()
- type ClassLoader
- func (classLoader *ClassLoader) DefineClass(classData []byte) *Class
- func (classLoader *ClassLoader) LoadArrayClass(className string) *Class
- func (classLoader *ClassLoader) LoadClass(className string) *Class
- func (classLoader *ClassLoader) LoadNonArrayClass(className string) *Class
- func (classLoader *ClassLoader) ReadClass(className string) ([]byte, classpath.ClasspathEntry)
- type ClassMember
- func (classMember *ClassMember) GetClass() *Class
- func (classMember *ClassMember) GetDescriptor() string
- func (classMember *ClassMember) GetName() string
- func (classMember *ClassMember) IsAccessibleTo(otherClass *Class) bool
- func (classMember *ClassMember) IsFinal() bool
- func (classMember *ClassMember) IsPrivate() bool
- func (classMember *ClassMember) IsProtected() bool
- func (classMember *ClassMember) IsPublic() bool
- func (classMember *ClassMember) IsStatic() bool
- func (classMember *ClassMember) IsSynthetic() bool
- type ClassReference
- type Constant
- type ConstantPool
- type ExceptionHandler
- type ExceptionTable
- type Field
- type FieldReference
- type InterfaceMethodReference
- type MemberReference
- type Method
- func (method *Method) FindExceptionHandler(exceptionClass *Class, pc int) int
- func (method *Method) GetArgumentsCount() uint
- func (method *Method) GetCode() []byte
- func (method *Method) GetLineNumber(pc int) int
- func (method *Method) GetMaxNumberOfLocalVariables() uint
- func (method *Method) GetMaxStackSize() uint
- func (method *Method) IsAbstract() bool
- func (method *Method) IsBridge() bool
- func (method *Method) IsNative() bool
- func (method *Method) IsStrict() bool
- func (method *Method) IsSynchronized() bool
- func (method *Method) IsVarargs() bool
- type MethodDescriptor
- type MethodDescriptorParser
- func (methodDescriptorParser *MethodDescriptorParser) EndParseParameters()
- func (methodDescriptorParser *MethodDescriptorParser) Finish()
- func (methodDescriptorParser *MethodDescriptorParser) Panic()
- func (methodDescriptorParser *MethodDescriptorParser) Parse(descriptor string)
- func (methodDescriptorParser *MethodDescriptorParser) ParseArrayType() string
- func (methodDescriptorParser *MethodDescriptorParser) ParseFieldType() string
- func (methodDescriptorParser *MethodDescriptorParser) ParseObjectType() string
- func (methodDescriptorParser *MethodDescriptorParser) ParseParameterTypes()
- func (methodDescriptorParser *MethodDescriptorParser) ParseReturnType()
- func (methodDescriptorParser *MethodDescriptorParser) ReadUint8() uint8
- func (methodDescriptorParser *MethodDescriptorParser) StartParseParameters()
- func (methodDescriptorParser *MethodDescriptorParser) UnReadUint8()
- type MethodReference
- type Object
- func (object *Object) Clone() *Object
- func (object *Object) GetArrayLength() int32
- func (object *Object) GetByteArray() []int8
- func (object *Object) GetCharArray() []uint16
- func (object *Object) GetClass() *Class
- func (object *Object) GetDoubleArray() []float64
- func (object *Object) GetExtraData() interface{}
- func (object *Object) GetFields() Variables
- func (object *Object) GetFloatArray() []float32
- func (object *Object) GetIntArray() []int32
- func (object *Object) GetLongArray() []int64
- func (object *Object) GetReferenceArray() []*Object
- func (object *Object) GetReferenceValue(name, descriptor string) *Object
- func (object *Object) GetShortArray() []int16
- func (object *Object) IsInstanceOf(class *Class) bool
- func (object *Object) SetExtraData(extraData interface{})
- func (object *Object) SetReferenceValue(name, descriptor string, referenceValue *Object)
- type SymbolicReference
- type Variable
- type Variables
- func (variables Variables) GetDoubleValue(index uint) float64
- func (variables Variables) GetFloatValue(index uint) float32
- func (variables Variables) GetIntegerValue(index uint) int32
- func (variables Variables) GetLongValue(index uint) int64
- func (variables Variables) GetReferenceValue(index uint) *Object
- func (variables Variables) SetDoubleValue(index uint, value float64)
- func (variables Variables) SetFloatValue(index uint, value float32)
- func (variables Variables) SetIntegerValue(index uint, value int32)
- func (variables Variables) SetLongValue(index uint, value int64)
- func (variables Variables) SetReferenceValue(index uint, value *Object)
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 ¶
Types ¶
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
func (*Class) GetArrayClass ¶
func (*Class) GetArrayElementClass ¶
func (*Class) GetClassInitializationMethod ¶
func (*Class) GetClassLoader ¶
func (class *Class) GetClassLoader() *ClassLoader
func (*Class) GetConstantPool ¶
func (class *Class) GetConstantPool() *ConstantPool
func (*Class) GetInstanceMethod ¶
func (*Class) GetJavaClass ¶
func (*Class) GetJavaName ¶
func (*Class) GetMainMethod ¶
func (*Class) GetPackageName ¶
func (*Class) GetReferenceVariable ¶
func (*Class) GetSourceFileName ¶
func (*Class) GetStaticMethod ¶
func (*Class) GetStaticVariables ¶
func (*Class) GetSuperClass ¶
func (*Class) IsAbstract ¶
func (*Class) IsAccessibleTo ¶
func (*Class) IsAnnotation ¶
func (*Class) IsAssignableFrom ¶
func (*Class) IsImplementsFrom ¶
func (*Class) IsInitializationStarted ¶
func (*Class) IsInterface ¶
func (*Class) IsJavaCloneableClass ¶
func (*Class) IsJavaObjectClass ¶
func (*Class) IsJavaSerializableClass ¶
func (*Class) IsPrimitive ¶
func (*Class) IsSubClassOf ¶
func (*Class) IsSubInterfaceOf ¶
func (*Class) IsSuperClassOf ¶
func (*Class) IsSuperInterfaceOf ¶
func (*Class) IsSynthetic ¶
func (*Class) SetReferenceVariable ¶
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 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) GetVariableIndex ¶
func (*Field) IsLongOrDouble ¶
func (*Field) IsTransient ¶
func (*Field) IsVolatile ¶
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 (*Method) FindExceptionHandler ¶
func (*Method) GetArgumentsCount ¶
func (*Method) GetLineNumber ¶
func (*Method) GetMaxNumberOfLocalVariables ¶
func (*Method) GetMaxStackSize ¶
func (*Method) IsAbstract ¶
func (*Method) IsSynchronized ¶
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 (*Object) GetArrayLength ¶
func (*Object) GetByteArray ¶
func (*Object) GetCharArray ¶
func (*Object) GetDoubleArray ¶
func (*Object) GetExtraData ¶
func (object *Object) GetExtraData() interface{}
func (*Object) GetFloatArray ¶
func (*Object) GetIntArray ¶
func (*Object) GetLongArray ¶
func (*Object) GetReferenceArray ¶
func (*Object) GetReferenceValue ¶
func (*Object) GetShortArray ¶
func (*Object) IsInstanceOf ¶
func (*Object) SetExtraData ¶
func (object *Object) SetExtraData(extraData interface{})
func (*Object) SetReferenceValue ¶
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 Variables ¶
type Variables []Variable
func (Variables) GetDoubleValue ¶
func (Variables) GetFloatValue ¶
func (Variables) GetIntegerValue ¶
func (Variables) GetLongValue ¶
func (Variables) GetReferenceValue ¶
func (Variables) SetDoubleValue ¶
func (Variables) SetFloatValue ¶
func (Variables) SetIntegerValue ¶
func (Variables) SetLongValue ¶
func (Variables) SetReferenceValue ¶
Source Files
¶
- access_flags.go
- array_class.go
- array_object.go
- class.go
- class_loader.go
- class_member.go
- class_name_helper.go
- class_reference.go
- constant.go
- constant_pool.go
- exception_handler.go
- exception_table.go
- field.go
- field_reference.go
- interface_method_reference.go
- member_reference.go
- method.go
- method_descriptor.go
- method_descriptor_parser.go
- method_lookup.go
- method_reference.go
- object.go
- string_pool.go
- symbolic_reference.go
- variable.go
- variables.go
Click to show internal directories.
Click to hide internal directories.