Skip to content

Module Name in Lua

qtiuto edited this page Dec 28, 2018 · 4 revisions

The module java is loaded once the lua state initialize with all its members exported to the global table if you specified importAllFunctions (default true) in the constructor of ScriptContext. And the global value java refers to the table. Note that java.type is exported as Type to avoid conflict. e.g.

  print(java.type == Type)--true
  print(java.import == import)--true
  print(java.new == new)--true

Clone this wiki locally