类 ComponentSerializer

  • 所有已实现的接口:
    com.google.gson.JsonDeserializer<BaseComponent>

    public class ComponentSerializer
    extends java.lang.Object
    implements com.google.gson.JsonDeserializer<BaseComponent>
    • 字段详细资料

      • serializedComponents

        public static final java.lang.ThreadLocal<java.util.Set<BaseComponent>> serializedComponents
    • 构造器详细资料

      • ComponentSerializer

        public ComponentSerializer()
    • 方法详细资料

      • parse

        public static BaseComponent[] parse​(java.lang.String json)
      • toString

        public static java.lang.String toString​(BaseComponent component)
      • toString

        public static java.lang.String toString​(BaseComponent... components)
      • deserialize

        public BaseComponent deserialize​(com.google.gson.JsonElement json,
                                         java.lang.reflect.Type typeOfT,
                                         com.google.gson.JsonDeserializationContext context)
                                  throws com.google.gson.JsonParseException
        指定者:
        deserialize 在接口中 com.google.gson.JsonDeserializer<BaseComponent>
        抛出:
        com.google.gson.JsonParseException