Package com.dslplatform.json.runtime
Class ImmutableDescription<T>
java.lang.Object
com.dslplatform.json.runtime.WriteDescription<T>
com.dslplatform.json.runtime.ImmutableDescription<T>
- All Implemented Interfaces:
JsonReader.ReadObject<T>,JsonWriter.WriteObject<T>
public final class ImmutableDescription<T>
extends WriteDescription<T>
implements JsonReader.ReadObject<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DecodePropertyInfo<JsonReader.ReadObject>[]private final Object[]private final Stringprivate final booleanprivate final longprivate final Typeprivate final Settings.Function<Object[], T> private final booleanprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionImmutableDescription(Class<T> manifest, Object[] defArgs, Settings.Function<Object[], T> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.ReadObject>[] decoders, boolean alwaysSerialize, boolean skipOnUnknown) ImmutableDescription(Type manifest, Object[] defArgs, Settings.Function<Object[], T> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.ReadObject>[] decoders, boolean alwaysSerialize, boolean skipOnUnknown) -
Method Summary
Modifier and TypeMethodDescriptionprivate TfinalChecks(Object[] args, JsonReader reader, long currentMandatory) read(JsonReader reader) private TreadObjectSlow(Object[] args, JsonReader reader, long currentMandatory) private voidskip(JsonReader reader) Methods inherited from class com.dslplatform.json.runtime.WriteDescription
write, writeContentFull, writeContentMinimal
-
Field Details
-
manifest
-
defArgs
-
newInstance
-
decoders
-
skipOnUnknown
private final boolean skipOnUnknown -
hasMandatory
private final boolean hasMandatory -
mandatoryFlag
private final long mandatoryFlag -
startError
-
endError
-
-
Constructor Details
-
ImmutableDescription
public ImmutableDescription(Class<T> manifest, Object[] defArgs, Settings.Function<Object[], T> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.ReadObject>[] decoders, boolean alwaysSerialize, boolean skipOnUnknown) -
ImmutableDescription
ImmutableDescription(Type manifest, Object[] defArgs, Settings.Function<Object[], T> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.ReadObject>[] decoders, boolean alwaysSerialize, boolean skipOnUnknown)
-
-
Method Details
-
read
- Specified by:
readin interfaceJsonReader.ReadObject<T>- Throws:
IOException
-
readObjectSlow
@Nullable private T readObjectSlow(Object[] args, JsonReader reader, long currentMandatory) throws IOException - Throws:
IOException
-
finalChecks
@Nullable private T finalChecks(Object[] args, JsonReader reader, long currentMandatory) throws IOException - Throws:
IOException
-
skip
- Throws:
IOException
-