Class JSONTypeProvider
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.json.JSONTypeProvider
-
public class JSONTypeProvider extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description JSONTypeProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <O> O
deserialize(java.lang.Object object, java.lang.Class<O> clazz)
static <O> O
deserializeNoCast(java.lang.Object object, java.lang.Class<O> clazz)
static <J,O>
JSONTypeDeserializer<J,O>getDeserializer(java.lang.Class<O> object)
static <O,J>
JSONTypeSerializer<O,J>getSerializer(java.lang.Class<O> object)
static java.lang.Object
parse(java.lang.Object object)
static void
registerParser(JSONDataParserImpl obj)
static void
registerType(java.lang.Class<?> clazz, java.lang.Object obj)
static <J> J
serialize(java.lang.Object object)
-
-
-
Method Detail
-
serialize
public static <J> J serialize(java.lang.Object object) throws JSONException
- Throws:
JSONException
-
deserialize
public static <O> O deserialize(java.lang.Object object, java.lang.Class<O> clazz) throws JSONException
- Throws:
JSONException
-
deserializeNoCast
public static <O> O deserializeNoCast(java.lang.Object object, java.lang.Class<O> clazz) throws JSONException
- Throws:
JSONException
-
getSerializer
public static <O,J> JSONTypeSerializer<O,J> getSerializer(java.lang.Class<O> object)
-
getDeserializer
public static <J,O> JSONTypeDeserializer<J,O> getDeserializer(java.lang.Class<O> object)
-
parse
public static java.lang.Object parse(java.lang.Object object)
-
registerType
public static void registerType(java.lang.Class<?> clazz, java.lang.Object obj)
-
registerParser
public static void registerParser(JSONDataParserImpl obj)
-
-