content: /*
   * Copyright (C) 2016-2023 ActionTech.
   * based on code by MyCATCopyrightHolder Copyright (c) 2013, OpenCloudDB/MyCAT.
   * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
   */
  
  package com.actiontech.dble.plan.common.item.function.jsonfunc;
  
  /**
   * migrate from gson 2.8.9
   * for issue inner-1940
   */
  final class JsonScope {
  
      /**
       * An array with no elements requires no separators or newlines before
       * it is closed.
       */
      static final int EMPTY_ARRAY = 1;
  
      /**
       * A array with at least one value requires a comma and newline before
       * the next element.
       */
      static final int NONEMPTY_ARRAY = 2;
  
      /**
       * An object with no name/value pairs requires no separators or newlines
       * before it is closed.
       */
      static final int EMPTY_OBJECT = 3;
  
      /**
       * An object whose most recent element is a key. The next element must
       * be a value.
       */
      static final int DANGLING_NAME = 4;
  
      /**
       * An object with at least one name/value pair requires a comma and
       * newline before the next element.
       */
      static final int NONEMPTY_OBJECT = 5;
  
      /**
       * No object or array has been started.
       */
      static final int EMPTY_DOCUMENT = 6;
  
      /**
       * A document with at an array or object.
       */
      static final int NONEMPTY_DOCUMENT = 7;
  
      /**
       * A document that's been closed and cannot be accessed.
       */
      static final int CLOSED = 8;
  
      private JsonScope() {
  
      }
  }
  