org.luaj.vm2
Class Prototype
java.lang.Object
org.luaj.vm2.Prototype
public class Prototype
- extends java.lang.Object
Prototype representing compiled lua code.
This is both a straight translation of the corresponding C type,
and the main data structure for execution of compiled lua bytecode.
See documentatation on LuaClosure
for information on how to load
and execute a Prototype
.
- See Also:
LuaClosure
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
k
public LuaValue[] k
code
public int[] code
p
public Prototype[] p
lineinfo
public int[] lineinfo
locvars
public LocVars[] locvars
upvalues
public LuaString[] upvalues
source
public LuaString source
nups
public int nups
linedefined
public int linedefined
lastlinedefined
public int lastlinedefined
numparams
public int numparams
is_vararg
public int is_vararg
maxstacksize
public int maxstacksize
Prototype
public Prototype()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getlocalname
public LuaString getlocalname(int number,
int pc)
- Get the name of a local variable.
- Parameters:
number
- the local variable number to look uppc
- the program counter
- Returns:
- the name, or null if not found
Copyright © 2007-2008 Luaj.org. All Rights Reserved.