Package org.bson

Class AbstractBsonReader.Context

    • Constructor Detail

      • Context

        protected Context(AbstractBsonReader.Context parentContext,
                          BsonContextType contextType)
        Creates a new instance.
        Parameters:
        parentContext - a possibly null value for the context that came before this one
        contextType - the type of this context
    • Method Detail

      • getParentContext

        protected AbstractBsonReader.Context getParentContext()
        Returns the parent context. Allows users of this context object to transition to this parent context.
        Returns:
        the context that came before this one
      • getContextType

        protected BsonContextType getContextType()
        Return the type of this context.
        Returns:
        the context type.