BlowTorch
 All Classes Namespaces Files Functions Variables Enumerator Pages
Static Public Member Functions | List of all members
org.keplerproject.luajava.LuaStateFactory Class Reference

Static Public Member Functions

static synchronized LuaState newLuaState ()
 
static synchronized LuaState getExistingState (int index)
 
static synchronized int insertLuaState (LuaState L)
 
static synchronized void removeLuaState (int idx)
 

Detailed Description

This class is responsible for instantiating new LuaStates. When a new LuaState is instantiated it is put into a List and an index is returned. This index is registred in Lua and it is used to find the right LuaState when lua calls a Java Function.

Author
Thiago Ponte

Member Function Documentation

static synchronized LuaState org.keplerproject.luajava.LuaStateFactory.getExistingState ( int  index)
static

Returns a existing instance of LuaState

Parameters
index
Returns
LuaState

Here is the caller graph for this function:

static synchronized int org.keplerproject.luajava.LuaStateFactory.insertLuaState ( LuaState  L)
static

Receives a existing LuaState and checks if it exists in the states list. If it doesn't exist adds it to the list.

Parameters
L
Returns
int

Here is the call graph for this function:

Here is the caller graph for this function:

static synchronized LuaState org.keplerproject.luajava.LuaStateFactory.newLuaState ( )
static

Method that creates a new instance of LuaState

Returns
LuaState

Here is the caller graph for this function:

static synchronized void org.keplerproject.luajava.LuaStateFactory.removeLuaState ( int  idx)
static

removes the luaState from the states list

Parameters
idx

Here is the caller graph for this function:


The documentation for this class was generated from the following file: