rtda

package
v0.0.0-...-8960b5b Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoString

func GoString(jStr *heap.Object) string

java.lang.String -> go string

func InternString

func InternString(goStr string, jStr *heap.Object) *heap.Object

todo

func JString

func JString(goStr string) *heap.Object

todo: is there a better way to create String? go string -> java.lang.String

Types

type Frame

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

stack frame

func (*Frame) ClassLoader

func (self *Frame) ClassLoader() *heap.ClassLoader

todo

func (*Frame) ConstantPool

func (self *Frame) ConstantPool() *heap.ConstantPool

func (*Frame) LocalVars

func (self *Frame) LocalVars() *LocalVars

func (*Frame) Method

func (self *Frame) Method() *heap.Method

func (*Frame) NextPC

func (self *Frame) NextPC() int

func (*Frame) OperandStack

func (self *Frame) OperandStack() *OperandStack

func (*Frame) RevertNextPC

func (self *Frame) RevertNextPC()

func (*Frame) SetNextPC

func (self *Frame) SetNextPC(nextPC int)

func (*Frame) SetOnPopAction

func (self *Frame) SetOnPopAction(f func())

func (*Frame) Thread

func (self *Frame) Thread() *Thread

getters & setters

type FrameCache

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

type LocalVars

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

func (*LocalVars) Get

func (self *LocalVars) Get(index uint) interface{}

func (*LocalVars) GetBoolean

func (self *LocalVars) GetBoolean(index uint) bool

func (*LocalVars) GetDouble

func (self *LocalVars) GetDouble(index uint) float64

func (*LocalVars) GetFloat

func (self *LocalVars) GetFloat(index uint) float32

func (*LocalVars) GetInt

func (self *LocalVars) GetInt(index uint) int32

func (*LocalVars) GetLong

func (self *LocalVars) GetLong(index uint) int64

func (*LocalVars) GetRef

func (self *LocalVars) GetRef(index uint) *heap.Object

func (*LocalVars) GetThis

func (self *LocalVars) GetThis() *heap.Object

func (*LocalVars) Set

func (self *LocalVars) Set(index uint, any interface{})

func (*LocalVars) SetDouble

func (self *LocalVars) SetDouble(index uint, val float64)

func (*LocalVars) SetFloat

func (self *LocalVars) SetFloat(index uint, val float32)

func (*LocalVars) SetInt

func (self *LocalVars) SetInt(index uint, val int32)

func (*LocalVars) SetLong

func (self *LocalVars) SetLong(index uint, val int64)

func (*LocalVars) SetRef

func (self *LocalVars) SetRef(index uint, ref *heap.Object)

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{})

func (*OperandStack) TopRef

func (self *OperandStack) TopRef(n uint) *heap.Object

type Stack

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

jvm stack

type Thread

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

JVM

Thread
  pc
  Stack
    Frame
      LocalVars
      OperandStack

func NewThread

func NewThread(jThread *heap.Object) *Thread

func (*Thread) CurrentFrame

func (self *Thread) CurrentFrame() *Frame

func (*Thread) HackSetJThread

func (self *Thread) HackSetJThread(jThread *heap.Object)

hack

func (*Thread) HandleUncaughtException

func (self *Thread) HandleUncaughtException(ex *heap.Object)

func (*Thread) InitClass

func (self *Thread) InitClass(class *heap.Class)

func (*Thread) Interrupt

func (self *Thread) Interrupt()

func (*Thread) InvokeMethod

func (self *Thread) InvokeMethod(method *heap.Method)

func (*Thread) InvokeMethodWithShim

func (self *Thread) InvokeMethodWithShim(method *heap.Method, args []interface{})

func (*Thread) IsInterrupted

func (self *Thread) IsInterrupted(clearInterrupted bool) bool

func (*Thread) IsStackEmpty

func (self *Thread) IsStackEmpty() bool

func (*Thread) JThread

func (self *Thread) JThread() *heap.Object

func (*Thread) NewFrame

func (self *Thread) NewFrame(method *heap.Method) *Frame

func (*Thread) PC

func (self *Thread) PC() int

getters & setters

func (*Thread) Park

func (self *Thread) Park(d time.Duration)

func (*Thread) PopFrame

func (self *Thread) PopFrame() *Frame

func (*Thread) PushFrame

func (self *Thread) PushFrame(frame *Frame)

func (*Thread) SetPC

func (self *Thread) SetPC(pc int)

func (*Thread) Sleep

func (self *Thread) Sleep(d time.Duration) (interrupted bool)

func (*Thread) StackDepth

func (self *Thread) StackDepth() uint

func (*Thread) ThrowArrayIndexOutOfBoundsException

func (self *Thread) ThrowArrayIndexOutOfBoundsException(index int32)

func (*Thread) ThrowArrayIndexOutOfBoundsExceptionNoMsg

func (self *Thread) ThrowArrayIndexOutOfBoundsExceptionNoMsg()

func (*Thread) ThrowClassCastException

func (self *Thread) ThrowClassCastException(from, to *heap.Class)

func (*Thread) ThrowClassNotFoundException

func (self *Thread) ThrowClassNotFoundException(name string)

func (*Thread) ThrowDivByZero

func (self *Thread) ThrowDivByZero()

func (*Thread) ThrowFileNotFoundException

func (self *Thread) ThrowFileNotFoundException(name string)

func (*Thread) ThrowIOException

func (self *Thread) ThrowIOException(name string)

func (*Thread) ThrowIllegalArgumentException

func (self *Thread) ThrowIllegalArgumentException(msg string)

func (*Thread) ThrowInterruptedException

func (self *Thread) ThrowInterruptedException(msg string)

func (*Thread) ThrowNPE

func (self *Thread) ThrowNPE()

func (*Thread) ThrowNegativeArraySizeException

func (self *Thread) ThrowNegativeArraySizeException()

func (*Thread) TopFrame

func (self *Thread) TopFrame() *Frame

func (*Thread) TopFrameN

func (self *Thread) TopFrameN(n uint) *Frame

func (*Thread) Unpark

func (self *Thread) Unpark()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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