|
JSON Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.JsonReadContext
public abstract class JsonReadContext
Context object is used to keep track of relative logical position of the current event when parsing.
Nested Class Summary | |
---|---|
static class |
JsonReadContext.Type
Type of the context |
Field Summary | |
---|---|
static int |
HANDLED_EXPECT_NAME
|
static int |
HANDLED_EXPECT_VALUE
|
protected static int |
INT_COLON
|
protected static int |
INT_COMMA
|
protected int |
mIndex
Index of the currently processed entry. |
static int |
MISSING_COLON
|
static int |
MISSING_COMMA
|
protected JsonReadContext |
mParent
|
static int |
NOT_EXP_SEPARATOR_NEED_NAME
|
static int |
NOT_EXP_SEPARATOR_NEED_VALUE
|
Constructor Summary | |
---|---|
JsonReadContext(JsonReadContext parent,
ReaderBasedParserBase ir)
|
Method Summary | |
---|---|
protected abstract void |
appendDesc(StringBuilder sb)
|
JsonReadContext |
createChildArrayContext(ReaderBasedParserBase ir)
|
JsonReadContext |
createChildObjectContext(ReaderBasedParserBase ir)
|
static JsonReadContext |
createRootContext(ReaderBasedParserBase ir)
|
int |
getCurrentIndex()
|
abstract String |
getCurrentName()
|
int |
getEntryCount()
|
JsonReadContext |
getParent()
|
JsonLocation |
getStartLocation(Object srcRef)
|
abstract JsonReadContext.Type |
getType()
|
String |
getTypeDesc()
|
abstract int |
handleSeparator(int ch)
|
abstract boolean |
isArray()
|
abstract boolean |
isObject()
|
boolean |
isRoot()
|
void |
setCurrentName(String name)
Method only to be called in the object context |
String |
toString()
Overridden to provide developer readable "JsonPath" representation of the context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int INT_COLON
protected static final int INT_COMMA
public static final int HANDLED_EXPECT_NAME
public static final int HANDLED_EXPECT_VALUE
public static final int MISSING_COMMA
public static final int MISSING_COLON
public static final int NOT_EXP_SEPARATOR_NEED_VALUE
public static final int NOT_EXP_SEPARATOR_NEED_NAME
protected final JsonReadContext mParent
protected int mIndex
Constructor Detail |
---|
public JsonReadContext(JsonReadContext parent, ReaderBasedParserBase ir)
Method Detail |
---|
public static JsonReadContext createRootContext(ReaderBasedParserBase ir)
public final JsonReadContext createChildArrayContext(ReaderBasedParserBase ir)
public final JsonReadContext createChildObjectContext(ReaderBasedParserBase ir)
public final JsonReadContext getParent()
public final boolean isRoot()
public final int getEntryCount()
public final int getCurrentIndex()
public final JsonLocation getStartLocation(Object srcRef)
public abstract JsonReadContext.Type getType()
public abstract boolean isArray()
public abstract boolean isObject()
public final String getTypeDesc()
public abstract int handleSeparator(int ch)
public abstract String getCurrentName()
protected abstract void appendDesc(StringBuilder sb)
public void setCurrentName(String name)
public final String toString()
toString
in class Object
|
JSON Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |