Package se.krka.kahlua.vm
Class KahluaThread
java.lang.Object
se.krka.kahlua.vm.KahluaThread
- Direct Known Subclasses:
BlockingKahluaThread
,VerifiedSingleKahluaThread
public class KahluaThread
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
bReset
boolean
bStep
boolean
bStepInto
Coroutine
currentCoroutine
java.lang.String
currentfile
int
currentLine
int
lastCallFrame
static LuaCallFrame
LastCallFrame
int
lastLine
-
Constructor Summary
Constructors Constructor Description KahluaThread(java.io.PrintStream stream, Platform platform, KahluaTable environment)
KahluaThread(Platform platform, KahluaTable environment)
-
Method Summary
Modifier and Type Method Description void
breakpointToggle(java.lang.String file, int line)
int
call(int nArguments)
java.lang.Object
call(java.lang.Object fun, java.lang.Object[] args)
java.lang.Object
call(java.lang.Object fun, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
void
doStacktraceProper()
void
doStacktraceProper(LuaCallFrame callFrame)
Coroutine
getCurrentCoroutine()
KahluaTable
getEnvironment()
protected java.lang.Object
getMetaOp(java.lang.Object o, java.lang.String meta_op)
java.lang.Object
getmetatable(java.lang.Object o, boolean raw)
java.io.PrintStream
getOut()
Platform
getPlatform()
boolean
hasBreakpoint(java.lang.String file, int line)
boolean
hasDataBreakpoint(KahluaTable kahluaTableImpl, java.lang.Object key)
boolean
hasReadDataBreakpoint(KahluaTable kahluaTableImpl, java.lang.Object key)
boolean
isCurrent(java.lang.String file, int line)
int
pcall(int nArguments)
java.lang.Object[]
pcall(java.lang.Object fun)
java.lang.Object[]
pcall(java.lang.Object fun, java.lang.Object[] args)
void
pcallvoid(java.lang.Object fun, java.lang.Object arg)
void
pcallvoid(java.lang.Object fun, java.lang.Object[] args)
void
pcallvoid(java.lang.Object fun, java.lang.Object arg, java.lang.Object arg2, java.lang.Object arg3)
void
setmetatable(java.lang.Object o, KahluaTable metatable)
java.lang.Object
tableget(java.lang.Object table, java.lang.Object key)
void
tableSet(java.lang.Object table, java.lang.Object key, java.lang.Object value)
void
toggleBreakOnChange(KahluaTable table, java.lang.Object key)
void
toggleBreakOnRead(KahluaTable table, java.lang.Object key)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LastCallFrame
-
currentCoroutine
-
bStep
public boolean bStep -
currentfile
public java.lang.String currentfile -
currentLine
public int currentLine -
lastLine
public int lastLine -
lastCallFrame
public int lastCallFrame -
bReset
public boolean bReset -
bStepInto
public boolean bStepInto
-
-
Constructor Details
-
KahluaThread
-
KahluaThread
-
-
Method Details
-
getCurrentCoroutine
-
call
public int call(int nArguments) -
isCurrent
public boolean isCurrent(java.lang.String file, int line) -
doStacktraceProper
-
doStacktraceProper
public void doStacktraceProper() -
getMetaOp
protected java.lang.Object getMetaOp(java.lang.Object o, java.lang.String meta_op) -
call
public java.lang.Object call(java.lang.Object fun, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) -
call
public java.lang.Object call(java.lang.Object fun, java.lang.Object[] args) -
tableget
public java.lang.Object tableget(java.lang.Object table, java.lang.Object key) -
tableSet
public void tableSet(java.lang.Object table, java.lang.Object key, java.lang.Object value) -
setmetatable
-
getmetatable
public java.lang.Object getmetatable(java.lang.Object o, boolean raw) -
pcall
public java.lang.Object[] pcall(java.lang.Object fun, java.lang.Object[] args) -
pcallvoid
public void pcallvoid(java.lang.Object fun, java.lang.Object[] args) -
pcallvoid
public void pcallvoid(java.lang.Object fun, java.lang.Object arg) -
pcallvoid
public void pcallvoid(java.lang.Object fun, java.lang.Object arg, java.lang.Object arg2, java.lang.Object arg3) -
pcall
public java.lang.Object[] pcall(java.lang.Object fun) -
pcall
public int pcall(int nArguments) -
getEnvironment
-
getOut
public java.io.PrintStream getOut() -
getPlatform
-
breakpointToggle
public void breakpointToggle(java.lang.String file, int line) -
hasBreakpoint
public boolean hasBreakpoint(java.lang.String file, int line) -
toggleBreakOnChange
-
toggleBreakOnRead
-
hasDataBreakpoint
-
hasReadDataBreakpoint
-