LuaJava:



LuaInterface: Scripting the .NET CLR with Lua

LuaJava is a scripting tool for Java. It allows Lua scripts to use Java objects andcreate classes from Lua tables

On the consumer side, LuaJava usesJava reflection to find properties and methods and the Java native code API to access
the Lua C API, an approach very similar to the one in LuaInterface.

On the extenderside, it uses dynamic generation of bytecodes to create Java classes from tables.

LuaJavagenerates a class that delegates method calls to the Lua table, and this class is loaded by a
custom class loader. 

The Reflection.Emit API of the CLR makes this task much easier,
with its utility classes and methods for generating and loading memory-only classes.

LuaJava是java语言的一个脚本工具。 可以运行Lua脚本来使用java对象 和通过Lua Table来创建java类。

LuaJava使用java反射技术来查找属性和方法,使用java JNI 来方法Lua  C  API .这种方式和LuaInterface非常相似。

在拓展方面,LuaJava使用动态生成字节码方式从Lua Table中创建java类

LuaJava生成java类作为委托来访问LuaTable,生成类是通过自定义类加载器加载。




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值