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 class
CodegenAccess.StaticCodegenTarget
-
Constructor Summary
Constructors Constructor Description CodegenAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addMissingField(java.util.List missingFields, long tracker, long mask, java.lang.String fieldName)
static int
calcHash(java.lang.String str)
static java.lang.Object
existingObject(JsonIterator iter)
static int
head(JsonIterator iter)
static byte
nextToken(JsonIterator iter)
static boolean
nextTokenIsComma(JsonIterator iter)
private static boolean
nextTokenIsCommaSlowPath(JsonIterator iter, byte c)
static <T> T
read(java.lang.String cacheKey, JsonIterator iter)
static boolean
readArrayStart(JsonIterator iter)
static boolean
readBoolean(java.lang.String cacheKey, JsonIterator iter)
static byte
readByte(JsonIterator iter)
static double
readDouble(java.lang.String cacheKey, JsonIterator iter)
static float
readFloat(java.lang.String cacheKey, JsonIterator iter)
static int
readInt(java.lang.String cacheKey, JsonIterator iter)
static long
readLong(java.lang.String cacheKey, JsonIterator iter)
static java.lang.Object
readMapKey(java.lang.String cacheKey, JsonIterator iter)
static int
readObjectFieldAsHash(JsonIterator iter)
static Slice
readObjectFieldAsSlice(JsonIterator iter)
static java.lang.String
readObjectFieldAsString(JsonIterator iter)
static boolean
readObjectStart(JsonIterator iter)
static short
readShort(java.lang.String cacheKey, JsonIterator iter)
static Slice
readSlice(JsonIterator iter)
static void
reportIncompleteArray(JsonIterator iter)
static void
reportIncompleteObject(JsonIterator iter)
static java.lang.Object
resetExistingObject(JsonIterator iter)
static <T extends java.util.Collection>
TreuseCollection(T col)
static void
setExistingObject(JsonIterator iter, java.lang.Object obj)
static void
skipFixedBytes(JsonIterator iter, int n)
(package private) static boolean
skipWhitespacesWithoutLoadMore(JsonIterator iter)
static void
staticGenDecoders(TypeLiteral[] typeLiterals, CodegenAccess.StaticCodegenTarget staticCodegenTarget)
static void
unreadByte(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
-
-