Module org.apache.johnzon.mapper
Class JsonPointerTracker
java.lang.Object
org.apache.johnzon.mapper.internal.JsonPointerTracker
Internal class to easily collect information about the 'depth' of a json object
without having to eagerly construct it.
For use in recursive generator and parser method calls to defer string operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate Stringprivate final JsonPointerTrackerstatic final JsonPointerTracker -
Constructor Summary
ConstructorsConstructorDescriptionJsonPointerTracker(JsonPointerTracker jsonPointer, int i) For Arrays and Lists.JsonPointerTracker(JsonPointerTracker parent, String currentNode) -
Method Summary
-
Field Details
-
ROOT
-
parent
-
currentNode
-
jsonPointer
-
-
Constructor Details
-
JsonPointerTracker
- Parameters:
parent- ornullif this is the root objectcurrentNode- the name of the attribute or "/" for the root object
-
JsonPointerTracker
For Arrays and Lists.- Parameters:
jsonPointer- the json nodei- current counter number
-
-
Method Details