Package com.dslplatform.json.runtime
Class DecodePropertyInfo<T>
- java.lang.Object
-
- com.dslplatform.json.runtime.DecodePropertyInfo<T>
-
public class DecodePropertyInfo<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description DecodePropertyInfo(java.lang.String name, boolean exactName, boolean mandatory, int index, boolean nonNull, T value)privateDecodePropertyInfo(java.lang.String name, boolean exactName, boolean mandatory, long mandatoryValue, int index, boolean nonNull, int hash, int weakHash, T value, byte[] nameBytes)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static intcalcHash(java.lang.String name)(package private) static longcalculateMandatory(DecodePropertyInfo[] decoders)(package private) static intcalcWeakHash(java.lang.String name)(package private) static <T> DecodePropertyInfo<T>[]prepare(DecodePropertyInfo<T>[] initial, int argumentCount)(package private) static voidshowMandatoryError(JsonReader reader, long mandatoryFlag, DecodePropertyInfo[] decoders)
-
-
-
Field Detail
-
name
public final java.lang.String name
-
hash
public final int hash
-
weakHash
public final int weakHash
-
exactName
public final boolean exactName
-
mandatory
public final boolean mandatory
-
index
public final int index
-
nonNull
public final boolean nonNull
-
value
public final T value
-
mandatoryValue
final long mandatoryValue
-
nameBytes
final byte[] nameBytes
-
-
Constructor Detail
-
DecodePropertyInfo
public DecodePropertyInfo(java.lang.String name, boolean exactName, boolean mandatory, int index, boolean nonNull, T value)
-
DecodePropertyInfo
private DecodePropertyInfo(java.lang.String name, boolean exactName, boolean mandatory, long mandatoryValue, int index, boolean nonNull, int hash, int weakHash, T value, byte[] nameBytes)
-
-
Method Detail
-
calcHash
static int calcHash(java.lang.String name)
-
calcWeakHash
static int calcWeakHash(java.lang.String name)
-
prepare
static <T> DecodePropertyInfo<T>[] prepare(DecodePropertyInfo<T>[] initial, int argumentCount)
-
calculateMandatory
static long calculateMandatory(DecodePropertyInfo[] decoders)
-
showMandatoryError
static void showMandatoryError(JsonReader reader, long mandatoryFlag, DecodePropertyInfo[] decoders) throws ParsingException
- Throws:
ParsingException
-
-