Package jodd.json
Class JsonValueContext
- java.lang.Object
-
- jodd.json.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.
-
-
-
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.
-
-