Class NativeJSON

    • Constructor Detail

      • NativeJSON

        private NativeJSON()
    • Method Detail

      • init

        static void init​(Scriptable scope,
                         boolean sealed)
      • getClassName

        public java.lang.String getClassName()
        Description copied from class: ScriptableObject
        Return the name of the class.

        This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.

        Specified by:
        getClassName in interface Scriptable
        Specified by:
        getClassName in class ScriptableObject
      • stringify

        private static java.lang.Object stringify​(Context cx,
                                                  Scriptable scope,
                                                  Scriptable thisObj,
                                                  java.lang.Object[] args)
      • parse

        private static java.lang.Object parse​(Context cx,
                                              Scriptable scope,
                                              java.lang.String jtext)
      • parse

        public static java.lang.Object parse​(Context cx,
                                             Scriptable scope,
                                             java.lang.String jtext,
                                             Callable reviver)
      • repeat

        private static java.lang.String repeat​(char c,
                                               int count)
      • stringify

        public static java.lang.Object stringify​(Context cx,
                                                 Scriptable scope,
                                                 java.lang.Object value,
                                                 java.lang.Object replacer,
                                                 java.lang.Object space)
      • join

        private static java.lang.String join​(java.util.Collection<java.lang.Object> objs,
                                             java.lang.String delimiter)
      • quote

        private static java.lang.String quote​(java.lang.String string)
      • isObjectArrayLike

        private static boolean isObjectArrayLike​(java.lang.Object o)