org.luaj.vm
Class LoadState

java.lang.Object
  extended by org.luaj.vm.LoadState

public class LoadState
extends java.lang.Object


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
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 java.lang.String SOURCE_BINARY_STRING
          Name for compiled chunks
 
Method Summary
static java.lang.String getSourceName(java.lang.String name)
           
 LPrototype loadFunction(LString p)
           
 void loadHeader()
           
static LNumber longBitsToLuaNumber(long bits)
           
static LPrototype undump(LuaState L, java.io.InputStream stream, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compiler

public static LoadState.LuaCompiler compiler
Compiler instance, if installed


SOURCE_BINARY_STRING

public static final java.lang.String SOURCE_BINARY_STRING
Name for compiled chunks

See Also:
Constant Field Values

LUAC_VERSION

public static final int LUAC_VERSION
for header of binary files -- this is Lua 5.1

See Also:
Constant Field Values

LUAC_FORMAT

public static final int LUAC_FORMAT
for header of binary files -- this is the official format

See Also:
Constant Field Values

LUAC_HEADERSIZE

public static final int LUAC_HEADERSIZE
size of header of binary files

See Also:
Constant Field Values
Method Detail

longBitsToLuaNumber

public static LNumber longBitsToLuaNumber(long bits)

loadFunction

public LPrototype loadFunction(LString p)
                        throws java.io.IOException
Throws:
java.io.IOException

loadHeader

public void loadHeader()
                throws java.io.IOException
Throws:
java.io.IOException

undump

public static LPrototype undump(LuaState L,
                                java.io.InputStream stream,
                                java.lang.String name)
                         throws java.io.IOException
Throws:
java.io.IOException

getSourceName

public static java.lang.String getSourceName(java.lang.String name)


Copyright © 2007-2013 Luaj.org. All Rights Reserved.