Documentation
¶
Index ¶
- func GoString(jStr *heap.Object) string
- func InternString(goStr string, jStr *heap.Object) *heap.Object
- func JString(goStr string) *heap.Object
- type Frame
- func (self *Frame) ClassLoader() *heap.ClassLoader
- func (self *Frame) ConstantPool() *heap.ConstantPool
- func (self *Frame) LocalVars() *LocalVars
- func (self *Frame) Method() *heap.Method
- func (self *Frame) NextPC() int
- func (self *Frame) OperandStack() *OperandStack
- func (self *Frame) RevertNextPC()
- func (self *Frame) SetNextPC(nextPC int)
- func (self *Frame) SetOnPopAction(f func())
- func (self *Frame) Thread() *Thread
- type FrameCache
- type LocalVars
- func (self *LocalVars) Get(index uint) interface{}
- func (self *LocalVars) GetBoolean(index uint) bool
- func (self *LocalVars) GetDouble(index uint) float64
- func (self *LocalVars) GetFloat(index uint) float32
- func (self *LocalVars) GetInt(index uint) int32
- func (self *LocalVars) GetLong(index uint) int64
- func (self *LocalVars) GetRef(index uint) *heap.Object
- func (self *LocalVars) GetThis() *heap.Object
- func (self *LocalVars) Set(index uint, any interface{})
- func (self *LocalVars) SetDouble(index uint, val float64)
- func (self *LocalVars) SetFloat(index uint, val float32)
- func (self *LocalVars) SetInt(index uint, val int32)
- func (self *LocalVars) SetLong(index uint, val int64)
- func (self *LocalVars) SetRef(index uint, ref *heap.Object)
- type OperandStack
- func (self *OperandStack) Clear()
- func (self *OperandStack) HackSetSlots(slots []interface{})
- func (self *OperandStack) IsEmpty() bool
- func (self *OperandStack) PopBoolean() bool
- func (self *OperandStack) PopDouble() float64
- func (self *OperandStack) PopField(isLongOrDouble bool) interface{}
- func (self *OperandStack) PopFloat() float32
- func (self *OperandStack) PopInt() int32
- func (self *OperandStack) PopLong() int64
- func (self *OperandStack) PopRef() *heap.Object
- func (self *OperandStack) PopSlot() interface{}
- func (self *OperandStack) PopTops(n uint) []interface{}
- func (self *OperandStack) PushBoolean(val bool)
- func (self *OperandStack) PushDouble(val float64)
- func (self *OperandStack) PushField(any interface{}, isLongOrDouble bool)
- func (self *OperandStack) PushFloat(val float32)
- func (self *OperandStack) PushInt(val int32)
- func (self *OperandStack) PushLong(val int64)
- func (self *OperandStack) PushNull()
- func (self *OperandStack) PushRef(ref *heap.Object)
- func (self *OperandStack) PushSlot(any interface{})
- func (self *OperandStack) TopRef(n uint) *heap.Object
- type Stack
- type Thread
- func (self *Thread) CurrentFrame() *Frame
- func (self *Thread) HackSetJThread(jThread *heap.Object)
- func (self *Thread) HandleUncaughtException(ex *heap.Object)
- func (self *Thread) InitClass(class *heap.Class)
- func (self *Thread) Interrupt()
- func (self *Thread) InvokeMethod(method *heap.Method)
- func (self *Thread) InvokeMethodWithShim(method *heap.Method, args []interface{})
- func (self *Thread) IsInterrupted(clearInterrupted bool) bool
- func (self *Thread) IsStackEmpty() bool
- func (self *Thread) JThread() *heap.Object
- func (self *Thread) NewFrame(method *heap.Method) *Frame
- func (self *Thread) PC() int
- func (self *Thread) Park(d time.Duration)
- func (self *Thread) PopFrame() *Frame
- func (self *Thread) PushFrame(frame *Frame)
- func (self *Thread) SetPC(pc int)
- func (self *Thread) Sleep(d time.Duration) (interrupted bool)
- func (self *Thread) StackDepth() uint
- func (self *Thread) ThrowArrayIndexOutOfBoundsException(index int32)
- func (self *Thread) ThrowArrayIndexOutOfBoundsExceptionNoMsg()
- func (self *Thread) ThrowClassCastException(from, to *heap.Class)
- func (self *Thread) ThrowClassNotFoundException(name string)
- func (self *Thread) ThrowDivByZero()
- func (self *Thread) ThrowFileNotFoundException(name string)
- func (self *Thread) ThrowIOException(name string)
- func (self *Thread) ThrowIllegalArgumentException(msg string)
- func (self *Thread) ThrowInterruptedException(msg string)
- func (self *Thread) ThrowNPE()
- func (self *Thread) ThrowNegativeArraySizeException()
- func (self *Thread) TopFrame() *Frame
- func (self *Thread) TopFrameN(n uint) *Frame
- func (self *Thread) Unpark()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
stack frame
func (*Frame) ConstantPool ¶
func (self *Frame) ConstantPool() *heap.ConstantPool
func (*Frame) OperandStack ¶
func (self *Frame) OperandStack() *OperandStack
func (*Frame) RevertNextPC ¶
func (self *Frame) RevertNextPC()
func (*Frame) SetOnPopAction ¶
func (self *Frame) SetOnPopAction(f func())
type FrameCache ¶
type FrameCache struct {
// contains filtered or unexported fields
}
type LocalVars ¶
type LocalVars struct {
// contains filtered or unexported fields
}
func (*LocalVars) GetBoolean ¶
type OperandStack ¶
type OperandStack struct {
// contains filtered or unexported fields
}
func (*OperandStack) Clear ¶
func (self *OperandStack) Clear()
func (*OperandStack) HackSetSlots ¶
func (self *OperandStack) HackSetSlots(slots []interface{})
only used by native methods
func (*OperandStack) IsEmpty ¶
func (self *OperandStack) IsEmpty() bool
func (*OperandStack) PopBoolean ¶
func (self *OperandStack) PopBoolean() bool
func (*OperandStack) PopDouble ¶
func (self *OperandStack) PopDouble() float64
func (*OperandStack) PopField ¶
func (self *OperandStack) PopField(isLongOrDouble bool) interface{}
func (*OperandStack) PopFloat ¶
func (self *OperandStack) PopFloat() float32
func (*OperandStack) PopInt ¶
func (self *OperandStack) PopInt() int32
func (*OperandStack) PopLong ¶
func (self *OperandStack) PopLong() int64
func (*OperandStack) PopRef ¶
func (self *OperandStack) PopRef() *heap.Object
func (*OperandStack) PopSlot ¶
func (self *OperandStack) PopSlot() interface{}
func (*OperandStack) PopTops ¶
func (self *OperandStack) PopTops(n uint) []interface{}
func (*OperandStack) PushBoolean ¶
func (self *OperandStack) PushBoolean(val bool)
func (*OperandStack) PushDouble ¶
func (self *OperandStack) PushDouble(val float64)
double consumes two slots
func (*OperandStack) PushField ¶
func (self *OperandStack) PushField(any interface{}, isLongOrDouble bool)
func (*OperandStack) PushFloat ¶
func (self *OperandStack) PushFloat(val float32)
func (*OperandStack) PushInt ¶
func (self *OperandStack) PushInt(val int32)
func (*OperandStack) PushLong ¶
func (self *OperandStack) PushLong(val int64)
long consumes two slots
func (*OperandStack) PushNull ¶
func (self *OperandStack) PushNull()
func (*OperandStack) PushRef ¶
func (self *OperandStack) PushRef(ref *heap.Object)
func (*OperandStack) PushSlot ¶
func (self *OperandStack) PushSlot(any interface{})
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
JVM
Thread
pc
Stack
Frame
LocalVars
OperandStack
func (*Thread) CurrentFrame ¶
func (*Thread) HandleUncaughtException ¶
func (*Thread) InvokeMethod ¶
func (*Thread) InvokeMethodWithShim ¶
func (*Thread) IsInterrupted ¶
func (*Thread) IsStackEmpty ¶
func (*Thread) StackDepth ¶
func (*Thread) ThrowArrayIndexOutOfBoundsException ¶
func (*Thread) ThrowArrayIndexOutOfBoundsExceptionNoMsg ¶
func (self *Thread) ThrowArrayIndexOutOfBoundsExceptionNoMsg()
func (*Thread) ThrowClassCastException ¶
func (*Thread) ThrowClassNotFoundException ¶
func (*Thread) ThrowDivByZero ¶
func (self *Thread) ThrowDivByZero()
func (*Thread) ThrowFileNotFoundException ¶
func (*Thread) ThrowIOException ¶
func (*Thread) ThrowIllegalArgumentException ¶
func (*Thread) ThrowInterruptedException ¶
func (*Thread) ThrowNegativeArraySizeException ¶
func (self *Thread) ThrowNegativeArraySizeException()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.