Package org.bson.json
Class JsonReader.Context
- java.lang.Object
-
- org.bson.AbstractBsonReader.Context
-
- org.bson.json.JsonReader.Context
-
- Enclosing class:
- JsonReader
protected class JsonReader.Context extends AbstractBsonReader.Context
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Context(AbstractBsonReader.Context parentContext, BsonContextType contextType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BsonContextType
getContextType()
Return the type of this context.protected JsonReader.Context
getParentContext()
Returns the parent context.
-
-
-
Constructor Detail
-
Context
protected Context(AbstractBsonReader.Context parentContext, BsonContextType contextType)
-
-
Method Detail
-
getParentContext
protected JsonReader.Context getParentContext()
Description copied from class:AbstractBsonReader.Context
Returns the parent context. Allows users of this context object to transition to this parent context.- Overrides:
getParentContext
in classAbstractBsonReader.Context
- Returns:
- the context that came before this one
-
getContextType
protected BsonContextType getContextType()
Description copied from class:AbstractBsonReader.Context
Return the type of this context.- Overrides:
getContextType
in classAbstractBsonReader.Context
- Returns:
- the context type.
-
-