com.dslplatform.json.runtime.MixinDescription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-json-java8 Show documentation
Show all versions of dsl-json-java8 Show documentation
DSL Platform compatible Java JSON library (https://dsl-platform.com)
package com.dslplatform.json.runtime;
import com.dslplatform.json.DslJson;
import com.dslplatform.json.JsonReader;
import com.dslplatform.json.JsonWriter;
import com.dslplatform.json.SerializationException;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.Set;
public final class MixinDescription implements JsonWriter.WriteObject, JsonReader.ReadObject {
private static final Charset utf8 = Charset.forName("UTF-8");
private static final int typeHash = DecodePropertyInfo.calcHash("$type");
private static final byte[] objectStart = "{\"$type\":".getBytes(utf8);
private final Type manifest;
private final ObjectDescription