Utilities for converting between Lua and JVM values. Handles manual
conversion between Seq and LuaValue, as well as conversion between
ErrorReply/SimpleReply and Lua tables (or message tables).
Converts a LuaValue to a JVM value.
Converts a LuaValue to a JVM value. We need to handle special
cases for assuming a table with a single ok/err field represents
SimpleReply/ErrorReply, and LuaTable -> Seq since LuaJ doesn't
Converts a JVM value to a LuaValue.
Converts a JVM value to a LuaValue. We need to handle special
cases for SimpleReply/ErrorReply (to construct message tables),
and Seq -> LuaTable since LuaJ doesn't recognize Seq.
Constructs a message table, which is just a Lua table with a
specifically named single key, that is used to represent
SimpleReply and ErrorReply in Lua.