예제 #1
0
 /** Loads a type. The named type is a primitive type or a class. */
 private static Class<?> loadType(LuaState luaState, String typeName) {
   Class<?> clazz;
   if ((clazz = PRIMITIVE_TYPES.get(typeName)) != null) {
     return clazz;
   }
   try {
     clazz = luaState.getClassLoader().loadClass(typeName);
     return clazz;
   } catch (ClassNotFoundException e) {
     throw new RuntimeException(e);
   }
 }