Class JSONPrinter

  • All Implemented Interfaces:
    JSONHandler

    public class JSONPrinter
    extends java.lang.Object
    implements JSONHandler
    Parser debugging
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONPrinter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void element​(long currLine, long currCol)  
      void finishArray​(long currLine, long currCol)  
      void finishObject​(long currLine, long currCol)  
      void finishPair​(long currLine, long currCol)  
      void finishParse​(long currLine, long currCol)  
      void keyPair​(long currLine, long currCol)  
      void startArray​(long currLine, long currCol)  
      void startObject​(long currLine, long currCol)  
      void startPair​(long currLine, long currCol)  
      void startParse​(long currLine, long currCol)  
      void valueBoolean​(boolean b, long currLine, long currCol)  
      void valueDecimal​(java.lang.String image, long currLine, long currCol)  
      void valueDouble​(java.lang.String image, long currLine, long currCol)  
      void valueInteger​(java.lang.String image, long currLine, long currCol)  
      void valueNull​(long currLine, long currCol)  
      void valueString​(java.lang.String image, long currLine, long currCol)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONPrinter

        public JSONPrinter()
    • Method Detail

      • startParse

        public void startParse​(long currLine,
                               long currCol)
        Specified by:
        startParse in interface JSONHandler
      • finishParse

        public void finishParse​(long currLine,
                                long currCol)
        Specified by:
        finishParse in interface JSONHandler
      • startObject

        public void startObject​(long currLine,
                                long currCol)
        Specified by:
        startObject in interface JSONHandler
      • finishObject

        public void finishObject​(long currLine,
                                 long currCol)
        Specified by:
        finishObject in interface JSONHandler
      • startPair

        public void startPair​(long currLine,
                              long currCol)
        Specified by:
        startPair in interface JSONHandler
      • keyPair

        public void keyPair​(long currLine,
                            long currCol)
        Specified by:
        keyPair in interface JSONHandler
      • finishPair

        public void finishPair​(long currLine,
                               long currCol)
        Specified by:
        finishPair in interface JSONHandler
      • startArray

        public void startArray​(long currLine,
                               long currCol)
        Specified by:
        startArray in interface JSONHandler
      • element

        public void element​(long currLine,
                            long currCol)
        Specified by:
        element in interface JSONHandler
      • finishArray

        public void finishArray​(long currLine,
                                long currCol)
        Specified by:
        finishArray in interface JSONHandler
      • valueBoolean

        public void valueBoolean​(boolean b,
                                 long currLine,
                                 long currCol)
        Specified by:
        valueBoolean in interface JSONHandler
      • valueDecimal

        public void valueDecimal​(java.lang.String image,
                                 long currLine,
                                 long currCol)
        Specified by:
        valueDecimal in interface JSONHandler
      • valueDouble

        public void valueDouble​(java.lang.String image,
                                long currLine,
                                long currCol)
        Specified by:
        valueDouble in interface JSONHandler
      • valueInteger

        public void valueInteger​(java.lang.String image,
                                 long currLine,
                                 long currCol)
        Specified by:
        valueInteger in interface JSONHandler
      • valueNull

        public void valueNull​(long currLine,
                              long currCol)
        Specified by:
        valueNull in interface JSONHandler
      • valueString

        public void valueString​(java.lang.String image,
                                long currLine,
                                long currCol)
        Specified by:
        valueString in interface JSONHandler