protected abstract class AbstractBsonReader.Context
extends java.lang.Object
BsonContextType
, indicating whether the reader is reading a document, array, or other
complex sub-structure.Modifier | Constructor and Description |
---|---|
protected |
Context(AbstractBsonReader.Context parentContext,
BsonContextType contextType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected BsonContextType |
getContextType()
Return the type of this context.
|
protected AbstractBsonReader.Context |
getParentContext()
Returns the parent context.
|
protected Context(AbstractBsonReader.Context parentContext, BsonContextType contextType)
parentContext
- a possibly null value for the context that came before this onecontextType
- the type of this contextprotected AbstractBsonReader.Context getParentContext()
protected BsonContextType getContextType()