Package jodd.json

Class JsonValueContext


  • public class JsonValueContext
    extends java.lang.Object
    Context of current serialized value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int index  
      protected java.lang.String propertyName  
      protected java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonValueContext​(java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Returns current index.
      java.lang.String getPropertyName()
      Returns current property name.
      java.lang.Object getValue()
      Returns current object value.
      void incrementIndex()  
      void reuse​(java.lang.Object value)
      Reuses this instance for better performances.
      void setPropertyName​(java.lang.String propertyName)
      Stores current property name.
      • Methods inherited from class java.lang.Object

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

      • value

        protected java.lang.Object value
      • propertyName

        protected java.lang.String propertyName
      • index

        protected int index
    • Constructor Detail

      • JsonValueContext

        public JsonValueContext​(java.lang.Object value)
    • Method Detail

      • reuse

        public void reuse​(java.lang.Object value)
        Reuses this instance for better performances.
      • getValue

        public java.lang.Object getValue()
        Returns current object value.
      • incrementIndex

        public void incrementIndex()
      • getIndex

        public int getIndex()
        Returns current index.
      • getPropertyName

        public java.lang.String getPropertyName()
        Returns current property name.
      • setPropertyName

        public void setPropertyName​(java.lang.String propertyName)
        Stores current property name.