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 and Type | Field and Description |
---|---|
private BsonContextType |
contextType |
private AbstractBsonReader.Context |
parentContext |
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.
|
private final AbstractBsonReader.Context parentContext
private final BsonContextType contextType
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()