Class JsonScope


  • final class JsonScope
    extends java.lang.Object
    Lexical scoping elements within a JSON reader or writer.
    Since:
    1.6
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int CLOSED
      A document that's been closed and cannot be accessed.
      (package private) static int DANGLING_NAME
      An object whose most recent element is a key.
      (package private) static int EMPTY_ARRAY
      An array with no elements requires no separator before the next element.
      (package private) static int EMPTY_DOCUMENT
      No top-level value has been started yet.
      (package private) static int EMPTY_OBJECT
      An object with no name/value pairs requires no separator before the next element.
      (package private) static int NONEMPTY_ARRAY
      An array with at least one value requires a separator before the next element.
      (package private) static int NONEMPTY_DOCUMENT
      A top-level value has already been started.
      (package private) static int NONEMPTY_OBJECT
      An object with at least one name/value pair requires a separator before the next element.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JsonScope()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EMPTY_ARRAY

        static final int EMPTY_ARRAY
        An array with no elements requires no separator before the next element.
        See Also:
        Constant Field Values
      • NONEMPTY_ARRAY

        static final int NONEMPTY_ARRAY
        An array with at least one value requires a separator before the next element.
        See Also:
        Constant Field Values
      • EMPTY_OBJECT

        static final int EMPTY_OBJECT
        An object with no name/value pairs requires no separator before the next element.
        See Also:
        Constant Field Values
      • DANGLING_NAME

        static final int DANGLING_NAME
        An object whose most recent element is a key. The next element must be a value.
        See Also:
        Constant Field Values
      • NONEMPTY_OBJECT

        static final int NONEMPTY_OBJECT
        An object with at least one name/value pair requires a separator before the next element.
        See Also:
        Constant Field Values
      • EMPTY_DOCUMENT

        static final int EMPTY_DOCUMENT
        No top-level value has been started yet.
        See Also:
        Constant Field Values
      • NONEMPTY_DOCUMENT

        static final int NONEMPTY_DOCUMENT
        A top-level value has already been started.
        See Also:
        Constant Field Values
      • CLOSED

        static final int CLOSED
        A document that's been closed and cannot be accessed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JsonScope

        private JsonScope()