Package com.jsoniter
Class CodegenAccess
- java.lang.Object
-
- com.jsoniter.CodegenAccess
-
public class CodegenAccess extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodegenAccess.StaticCodegenTarget
-
Constructor Summary
Constructors Constructor Description CodegenAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddMissingField(java.util.List missingFields, long tracker, long mask, java.lang.String fieldName)static intcalcHash(java.lang.String str)static java.lang.ObjectexistingObject(JsonIterator iter)static inthead(JsonIterator iter)static bytenextToken(JsonIterator iter)static booleannextTokenIsComma(JsonIterator iter)private static booleannextTokenIsCommaSlowPath(JsonIterator iter, byte c)static <T> Tread(java.lang.String cacheKey, JsonIterator iter)static booleanreadArrayStart(JsonIterator iter)static booleanreadBoolean(java.lang.String cacheKey, JsonIterator iter)static bytereadByte(JsonIterator iter)static doublereadDouble(java.lang.String cacheKey, JsonIterator iter)static floatreadFloat(java.lang.String cacheKey, JsonIterator iter)static intreadInt(java.lang.String cacheKey, JsonIterator iter)static longreadLong(java.lang.String cacheKey, JsonIterator iter)static java.lang.ObjectreadMapKey(java.lang.String cacheKey, JsonIterator iter)static intreadObjectFieldAsHash(JsonIterator iter)static SlicereadObjectFieldAsSlice(JsonIterator iter)static java.lang.StringreadObjectFieldAsString(JsonIterator iter)static booleanreadObjectStart(JsonIterator iter)static shortreadShort(java.lang.String cacheKey, JsonIterator iter)static SlicereadSlice(JsonIterator iter)static voidreportIncompleteArray(JsonIterator iter)static voidreportIncompleteObject(JsonIterator iter)static java.lang.ObjectresetExistingObject(JsonIterator iter)static <T extends java.util.Collection>
TreuseCollection(T col)static voidsetExistingObject(JsonIterator iter, java.lang.Object obj)static voidskipFixedBytes(JsonIterator iter, int n)(package private) static booleanskipWhitespacesWithoutLoadMore(JsonIterator iter)static voidstaticGenDecoders(TypeLiteral[] typeLiterals, CodegenAccess.StaticCodegenTarget staticCodegenTarget)static voidunreadByte(JsonIterator iter)
-
-
-
Method Detail
-
addMissingField
public static void addMissingField(java.util.List missingFields, long tracker, long mask, java.lang.String fieldName)
-
reuseCollection
public static <T extends java.util.Collection> T reuseCollection(T col)
-
existingObject
public static java.lang.Object existingObject(JsonIterator iter)
-
resetExistingObject
public static java.lang.Object resetExistingObject(JsonIterator iter)
-
setExistingObject
public static void setExistingObject(JsonIterator iter, java.lang.Object obj)
-
nextTokenIsComma
public static final boolean nextTokenIsComma(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
nextTokenIsCommaSlowPath
private static boolean nextTokenIsCommaSlowPath(JsonIterator iter, byte c) throws java.io.IOException
- Throws:
java.io.IOException
-
nextToken
public static byte nextToken(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readBoolean
public static final boolean readBoolean(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readShort
public static final short readShort(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readInt
public static final int readInt(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readLong
public static final long readLong(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readFloat
public static final float readFloat(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readDouble
public static final double readDouble(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
read
public static final <T> T read(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
readArrayStart
public static boolean readArrayStart(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readObjectStart
public static boolean readObjectStart(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
reportIncompleteObject
public static void reportIncompleteObject(JsonIterator iter)
-
reportIncompleteArray
public static void reportIncompleteArray(JsonIterator iter)
-
readObjectFieldAsString
public static final java.lang.String readObjectFieldAsString(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readObjectFieldAsHash
public static final int readObjectFieldAsHash(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readObjectFieldAsSlice
public static final Slice readObjectFieldAsSlice(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readSlice
public static final Slice readSlice(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readMapKey
public static final java.lang.Object readMapKey(java.lang.String cacheKey, JsonIterator iter) throws java.io.IOException- Throws:
java.io.IOException
-
skipWhitespacesWithoutLoadMore
static final boolean skipWhitespacesWithoutLoadMore(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
staticGenDecoders
public static void staticGenDecoders(TypeLiteral[] typeLiterals, CodegenAccess.StaticCodegenTarget staticCodegenTarget)
-
head
public static int head(JsonIterator iter)
-
unreadByte
public static void unreadByte(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
readByte
public static byte readByte(JsonIterator iter) throws java.io.IOException
- Throws:
java.io.IOException
-
calcHash
public static int calcHash(java.lang.String str)
-
skipFixedBytes
public static void skipFixedBytes(JsonIterator iter, int n) throws java.io.IOException
- Throws:
java.io.IOException
-
-