Class JsonPointerTracker
- java.lang.Object
- 
- org.apache.johnzon.mapper.internal.JsonPointerTracker
 
- 
 public class JsonPointerTracker extends Object 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 SummaryFields Modifier and Type Field Description private StringcurrentNodeprivate StringjsonPointerprivate JsonPointerTrackerparentstatic JsonPointerTrackerROOT
 - 
Constructor SummaryConstructors Constructor Description JsonPointerTracker(JsonPointerTracker jsonPointer, int i)For Arrays and Lists.JsonPointerTracker(JsonPointerTracker parent, String currentNode)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static Stringencode(String s)private static Stringreplace(String src, String from, String to)StringtoString()
 
- 
- 
- 
Field Detail- 
ROOTpublic static final JsonPointerTracker ROOT 
 - 
parentprivate final JsonPointerTracker parent 
 - 
currentNodeprivate final String currentNode 
 - 
jsonPointerprivate String jsonPointer 
 
- 
 - 
Constructor Detail- 
JsonPointerTrackerpublic JsonPointerTracker(JsonPointerTracker parent, String currentNode) - Parameters:
- parent- or- nullif this is the root object
- currentNode- the name of the attribute or "/" for the root object
 
 - 
JsonPointerTrackerpublic JsonPointerTracker(JsonPointerTracker jsonPointer, int i) For Arrays and Lists.- Parameters:
- jsonPointer- the json node
- i- current counter number
 
 
- 
 
-