org.luaj.vm2
Interface LoadState.LuaCompiler

All Known Implementing Classes:
LuaC
Enclosing class:
LoadState

public static interface LoadState.LuaCompiler

Interface for the compiler, if it is installed.


Method Summary
 Prototype compile(int firstByte, java.io.InputStream stream, java.lang.String name)
          Compile into a prototype, without taking the additional step of create a LuaFunction or LuaClosure
 LuaFunction load(int firstByte, java.io.InputStream stream, java.lang.String name, LuaValue env)
          Load into a Closure or LuaFunction, with the supplied initial environment
 LuaFunction load(Prototype p, java.lang.String filename, LuaValue env)
          Load into a LuaFunction given a prototype.
 

Method Detail

compile

Prototype compile(int firstByte,
                  java.io.InputStream stream,
                  java.lang.String name)
                  throws java.io.IOException
Compile into a prototype, without taking the additional step of create a LuaFunction or LuaClosure

Throws:
java.io.IOException

load

LuaFunction load(int firstByte,
                 java.io.InputStream stream,
                 java.lang.String name,
                 LuaValue env)
                 throws java.io.IOException
Load into a Closure or LuaFunction, with the supplied initial environment

Throws:
java.io.IOException

load

LuaFunction load(Prototype p,
                 java.lang.String filename,
                 LuaValue env)
Load into a LuaFunction given a prototype. May compile into a class, or return a LuaClosure

Parameters:
filename - TODO


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