Class LuaJavaClassExposer
java.lang.Object
se.krka.kahlua.integration.expose.LuaJavaClassExposer
public class LuaJavaClassExposer
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap
TypeMap
-
Constructor Summary
Constructors Constructor Description LuaJavaClassExposer(KahluaConverterManager manager, Platform platform, KahluaTable environment)
LuaJavaClassExposer(KahluaConverterManager manager, Platform platform, KahluaTable environment_, KahluaTable autoExposeBase)
-
Method Summary
Modifier and Type Method Description void
exposeGlobalClassFunction(KahluaTable environment, java.lang.Class clazz, java.lang.reflect.Constructor constructor, java.lang.String methodName)
void
exposeGlobalClassFunction(KahluaTable environment, java.lang.Class clazz, java.lang.reflect.Method method, java.lang.String methodName)
void
exposeGlobalFunctions(java.lang.Object object)
void
exposeGlobalObjectFunction(KahluaTable environment, java.lang.Object owner, java.lang.reflect.Method method)
void
exposeGlobalObjectFunction(KahluaTable environment, java.lang.Object owner, java.lang.reflect.Method method, java.lang.String methodName)
void
exposeLikeJava(java.lang.Class clazz)
void
exposeLikeJava(java.lang.Class clazz, KahluaTable staticBase)
void
exposeLikeJavaRecursively(java.lang.reflect.Type type)
void
exposeLikeJavaRecursively(java.lang.reflect.Type type, KahluaTable staticBase)
void
exposeMethod(java.lang.Class clazz, java.lang.reflect.Method method, java.lang.String methodName, KahluaTable staticBase)
void
exposeMethod(java.lang.Class clazz, java.lang.reflect.Method method, KahluaTable staticBase)
java.util.Map
getClassDebugInformation()
java.lang.String
getDefinition(java.lang.Object obj)
boolean
isExposed(java.lang.Class clazz)
boolean
shouldExpose(java.lang.Class clazz)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TypeMap
public java.util.HashMap TypeMap
-
-
Constructor Details
-
LuaJavaClassExposer
public LuaJavaClassExposer(KahluaConverterManager manager, Platform platform, KahluaTable environment) -
LuaJavaClassExposer
public LuaJavaClassExposer(KahluaConverterManager manager, Platform platform, KahluaTable environment_, KahluaTable autoExposeBase)
-
-
Method Details
-
getClassDebugInformation
public java.util.Map getClassDebugInformation() -
exposeGlobalObjectFunction
public void exposeGlobalObjectFunction(KahluaTable environment, java.lang.Object owner, java.lang.reflect.Method method) -
exposeGlobalObjectFunction
public void exposeGlobalObjectFunction(KahluaTable environment, java.lang.Object owner, java.lang.reflect.Method method, java.lang.String methodName) -
exposeGlobalClassFunction
public void exposeGlobalClassFunction(KahluaTable environment, java.lang.Class clazz, java.lang.reflect.Constructor constructor, java.lang.String methodName) -
exposeGlobalClassFunction
public void exposeGlobalClassFunction(KahluaTable environment, java.lang.Class clazz, java.lang.reflect.Method method, java.lang.String methodName) -
exposeMethod
public void exposeMethod(java.lang.Class clazz, java.lang.reflect.Method method, KahluaTable staticBase) -
exposeMethod
public void exposeMethod(java.lang.Class clazz, java.lang.reflect.Method method, java.lang.String methodName, KahluaTable staticBase) -
shouldExpose
public boolean shouldExpose(java.lang.Class clazz) -
exposeGlobalFunctions
public void exposeGlobalFunctions(java.lang.Object object) -
exposeLikeJava
public void exposeLikeJava(java.lang.Class clazz) -
exposeLikeJava
-
isExposed
public boolean isExposed(java.lang.Class clazz) -
getDefinition
public java.lang.String getDefinition(java.lang.Object obj) -
exposeLikeJavaRecursively
public void exposeLikeJavaRecursively(java.lang.reflect.Type type) -
exposeLikeJavaRecursively
-