Static Public Member Functions | |
| static int | objectIndex (int luaState, Object obj, String methodName) throws LuaException |
| static int | classIndex (int luaState, Class clazz, String searchName) throws LuaException |
| static int | javaNewInstance (int luaState, String className) throws LuaException |
| static int | javaNew (int luaState, Class clazz) throws LuaException |
| static int | javaArray (int luaState, Class clazz, int size) throws LuaException |
| static int | javaLoadLib (int luaState, String className, String methodName) throws LuaException |
| static int | checkField (int luaState, Object obj, String fieldName) throws LuaException |
| static int | checkMethod (int luaState, Object obj, String methodName) |
| static int | createProxyObject (int luaState, String implem) throws LuaException |
Class that contains functions accessed by lua.
|
static |
Checks if there is a field on the obj with the given name
| luaState | int that represents the state to be used |
| obj | object to be inspected |
| fieldName | name of the field to be inpected |


|
static |
Checks to see if there is a method with the given name.
| luaState | int that represents the state to be used |
| obj | object to be inspected |
| methodName | name of the field to be inpected |


|
static |
Java function to be called when a java Class metamethod __index is called. This function returns 1 if there is a field with searchName and 2 if there is a method if the searchName
| luaState | int that represents the state to be used |
| clazz | class to be indexed |
| searchName | name of the field or method to be accessed |
| LuaException |

|
static |
Function that creates an object proxy and pushes it into the stack
| luaState | int that represents the state to be used |
| implem | interfaces implemented separated by comma (,) |
| LuaException |

|
static |
javaArray returns a new array of a given clazz
| luaState | int that represents the state to be used |
| clazz | class to be instanciated |
| int | that is the size of the array |
| LuaException |

|
static |
Calls the static method methodName in class className that receives a LuaState as first parameter.
| luaState | int that represents the state to be used |
| className | name of the class that has the open library method |
| methodName | method to open library |
| LuaException |

|
static |
javaNew returns a new instance of a given clazz
| luaState | int that represents the state to be used |
| clazz | class to be instanciated |
| LuaException |

|
static |
Pushes a new instance of a java Object of the type className
| luaState | int that represents the state to be used |
| className | name of the class |
| LuaException |

|
static |
Java implementation of the metamethod __index
| luaState | int that indicates the state used |
| obj | Object to be indexed |
| methodName | the name of the method |

1.8.3.1