Package org.bson.json
Class JsonReader.Context
java.lang.Object
org.bson.AbstractBsonReader.Context
org.bson.json.JsonReader.Context
- Enclosing class:
- JsonReader
An implementation of
AbstractBsonReader.Context
/-
Constructor Summary
ModifierConstructorDescriptionprotected
Context
(AbstractBsonReader.Context parentContext, BsonContextType contextType) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected BsonContextType
Return the type of this context.protected JsonReader.Context
Returns the parent context.
-
Constructor Details
-
Context
Construct an instance.- Parameters:
parentContext
- the parent contextcontextType
- the context type
-
-
Method Details
-
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
Description copied from class:AbstractBsonReader.Context
Return the type of this context.- Overrides:
getContextType
in classAbstractBsonReader.Context
- Returns:
- the context type.
-