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
ConstructorsModifierConstructorDescriptionprotectedContext(AbstractBsonReader.Context parentContext, BsonContextType contextType) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected BsonContextTypeReturn the type of this context.protected JsonReader.ContextReturns 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.ContextReturns the parent context. Allows users of this context object to transition to this parent context.- Overrides:
getParentContextin classAbstractBsonReader.Context- Returns:
- the context that came before this one
-
getContextType
Description copied from class:AbstractBsonReader.ContextReturn the type of this context.- Overrides:
getContextTypein classAbstractBsonReader.Context- Returns:
- the context type.
-