|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.luaj.vm2.LoadState
public class LoadState
| Nested Class Summary | |
|---|---|
static interface |
LoadState.LuaCompiler
Interface for the compiler, if it is installed. |
| Field Summary | |
|---|---|
static LoadState.LuaCompiler |
compiler
Compiler instance, if installed |
java.io.DataInputStream |
is
input stream from which we are loading |
static int |
LUA_TBOOLEAN
|
static int |
LUA_TFUNCTION
|
static int |
LUA_TINT
|
static int |
LUA_TLIGHTUSERDATA
|
static int |
LUA_TNIL
|
static int |
LUA_TNONE
|
static int |
LUA_TNUMBER
|
static int |
LUA_TSTRING
|
static int |
LUA_TTABLE
|
static int |
LUA_TTHREAD
|
static int |
LUA_TUSERDATA
|
static int |
LUA_TVALUE
|
static int |
LUAC_FORMAT
for header of binary files -- this is the official format |
static int |
LUAC_HEADERSIZE
size of header of binary files |
static int |
LUAC_VERSION
for header of binary files -- this is Lua 5.1 |
static int |
NUMBER_FORMAT_FLOATS_OR_DOUBLES
format corresponding to non-number-patched lua, all numbers are floats or doubles |
static int |
NUMBER_FORMAT_INTS_ONLY
format corresponding to non-number-patched lua, all numbers are ints |
static int |
NUMBER_FORMAT_NUM_PATCH_INT32
format corresponding to number-patched lua, all numbers are 32-bit (4 byte) ints |
static java.lang.String |
SOURCE_BINARY_STRING
Name for compiled chunks |
| Method Summary | |
|---|---|
static Prototype |
compile(java.io.InputStream stream,
java.lang.String name)
|
static java.lang.String |
getSourceName(java.lang.String name)
|
static LuaFunction |
load(java.io.InputStream stream,
java.lang.String name,
LuaValue env)
|
Prototype |
loadFunction(LuaString p)
|
void |
loadHeader()
|
static LuaValue |
longBitsToLuaNumber(long bits)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NUMBER_FORMAT_FLOATS_OR_DOUBLES
public static final int NUMBER_FORMAT_INTS_ONLY
public static final int NUMBER_FORMAT_NUM_PATCH_INT32
public static final int LUA_TINT
public static final int LUA_TNONE
public static final int LUA_TNIL
public static final int LUA_TBOOLEAN
public static final int LUA_TLIGHTUSERDATA
public static final int LUA_TNUMBER
public static final int LUA_TSTRING
public static final int LUA_TTABLE
public static final int LUA_TFUNCTION
public static final int LUA_TUSERDATA
public static final int LUA_TTHREAD
public static final int LUA_TVALUE
public static LoadState.LuaCompiler compiler
public static final java.lang.String SOURCE_BINARY_STRING
public static final int LUAC_VERSION
public static final int LUAC_FORMAT
public static final int LUAC_HEADERSIZE
public final java.io.DataInputStream is
| Method Detail |
|---|
public static LuaValue longBitsToLuaNumber(long bits)
public Prototype loadFunction(LuaString p)
throws java.io.IOException
java.io.IOException
public void loadHeader()
throws java.io.IOException
java.io.IOException
public static LuaFunction load(java.io.InputStream stream,
java.lang.String name,
LuaValue env)
throws java.io.IOException
java.io.IOException
public static Prototype compile(java.io.InputStream stream,
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getSourceName(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||