Package jodd.json

Class ObjectParser

  • All Implemented Interfaces:
    java.util.function.Supplier

    class ObjectParser
    extends java.lang.Object
    implements java.util.function.Supplier
    Extracted function for parsing object content. This function is called in two periods:
    • during parsing
    • after parsing, in Lazy collections.
    This functional method re-use existing parser instance. The only thing we need to preserve are:
    • current index,
    • current path
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectParser​(JsonParser jsonParser, java.lang.Class targetType, java.lang.Class keyType, java.lang.Class componentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get()  
      • Methods inherited from class java.lang.Object

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

      • ndx

        private final int ndx
      • targetType

        private final java.lang.Class targetType
      • keyType

        private final java.lang.Class keyType
      • componentType

        private final java.lang.Class componentType
      • path

        private final Path path
    • Constructor Detail

      • ObjectParser

        ObjectParser​(JsonParser jsonParser,
                     java.lang.Class targetType,
                     java.lang.Class keyType,
                     java.lang.Class componentType)
    • Method Detail

      • get

        public java.lang.Object get()
        Specified by:
        get in interface java.util.function.Supplier