コード例 #1
0
ファイル: Lua.java プロジェクト: Xemiru/Undertailor
  /**
   * Internal method.
   *
   * <p>Returns a stored {@link LuaObjectMeta} instance.
   */
  static LuaObjectMeta getMeta(Class<? extends LuaObjectMeta> metaClass) {
    for (LuaObjectMeta meta : Lua.PMETA.values()) {
      if (meta.getClass() == metaClass) {
        return meta;
      }
    }

    for (LuaObjectMeta meta : Lua.META.values()) {
      if (meta.getClass() == metaClass) {
        return meta;
      }
    }

    return null;
  }