Package se.krka.kahlua.vm
Class LuaCallFrame
java.lang.Object
se.krka.kahlua.vm.LuaCallFrame
public class LuaCallFrame
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
canYield
LuaClosure
closure
Coroutine
coroutine
JavaFunction
javaFunction
int
localBase
int
localsAssigned
HashMap
LocalStackToVarMap
java.util.ArrayList
LocalVarNames
HashMap
LocalVarToStackMap
int
nArguments
int
pc
-
Constructor Summary
Constructors Constructor Description LuaCallFrame(Coroutine coroutine)
-
Method Summary
Modifier and Type Method Description void
clearFromIndex(int index)
void
closeUpvalues(int a)
UpValue
findUpvalue(int b)
java.lang.Object
get(int index)
LuaClosure
getClosure()
KahluaTable
getEnvironment()
java.lang.String
getFilename()
java.lang.String
getNameOfStack(int i)
Platform
getPlatform()
KahluaThread
getThread()
int
getTop()
void
init()
boolean
isJava()
boolean
isLua()
void
printoutLocalVars()
int
push(java.lang.Object x)
int
push(java.lang.Object x, java.lang.Object y)
int
pushNil()
void
pushVarargs(int index, int n)
void
set(int index, java.lang.Object o)
void
setLocalVarToStack(java.lang.String name, int a)
void
setPrototypeStacksize()
void
setTop(int index)
void
stackClear(int startIndex, int endIndex)
void
stackCopy(int startIndex, int destIndex, int len)
java.lang.String
toString()
java.lang.String
toString2()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
coroutine
-
closure
-
javaFunction
-
pc
public int pc -
localBase
public int localBase -
nArguments
public int nArguments -
canYield
public boolean canYield -
localsAssigned
public int localsAssigned -
LocalVarToStackMap
-
LocalStackToVarMap
-
LocalVarNames
public java.util.ArrayList LocalVarNames
-
-
Constructor Details
-
LuaCallFrame
-
-
Method Details
-
getFilename
public java.lang.String getFilename() -
set
public final void set(int index, java.lang.Object o) -
get
public final java.lang.Object get(int index) -
push
public int push(java.lang.Object x) -
push
public int push(java.lang.Object x, java.lang.Object y) -
pushNil
public int pushNil() -
stackCopy
public final void stackCopy(int startIndex, int destIndex, int len) -
stackClear
public void stackClear(int startIndex, int endIndex) -
clearFromIndex
public void clearFromIndex(int index) -
setTop
public final void setTop(int index) -
closeUpvalues
public void closeUpvalues(int a) -
findUpvalue
-
getTop
public int getTop() -
init
public void init() -
setPrototypeStacksize
public void setPrototypeStacksize() -
pushVarargs
public void pushVarargs(int index, int n) -
getEnvironment
-
isJava
public boolean isJava() -
isLua
public boolean isLua() -
toString2
public java.lang.String toString2() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getPlatform
-
getThread
-
getClosure
-
setLocalVarToStack
public void setLocalVarToStack(java.lang.String name, int a) -
getNameOfStack
public java.lang.String getNameOfStack(int i) -
printoutLocalVars
public void printoutLocalVars()
-