Add constructor with metatable.

This commit is contained in:
James Roseborough
2008-04-07 16:27:20 +00:00
parent e13eb1a2ee
commit 6e333f9567

View File

@@ -31,6 +31,11 @@ public class LUserData extends LValue {
m_instance = obj;
}
public LUserData(Object obj, LTable metatable) {
m_instance = obj;
m_metatable = metatable;
}
public String toJavaString() {
return String.valueOf(m_instance);
}