public class PathCapturingJSONWriterWrapper extends JSONWriter
TODO Proof of concept Should capture the JSON Path to the current element
Modifiers | Name | Description |
---|---|---|
private class |
PathCapturingJSONWriterWrapper.IndexElement |
|
private class |
PathCapturingJSONWriterWrapper.PathElement |
|
private class |
PathCapturingJSONWriterWrapper.PropertyElement |
Modifiers | Name | Description |
---|---|---|
private boolean |
debugCurrentStack |
|
private JSONWriter |
delegate |
|
private org.apache.commons.logging.Log |
log |
|
private java.util.Stack<PathElement> |
pathStack |
Fields inherited from class | Fields |
---|---|
class JSONWriter |
comma, mode, nullWritable, stack, writer |
Constructor and description |
---|
PathCapturingJSONWriterWrapper
(JSONWriter delegate) |
Type Params | Return Type | Name and description |
---|---|---|
|
public JSONWriter |
append(java.lang.String s) |
|
public JSONWriter |
array() |
|
public void |
comma() |
|
public JSONWriter |
end(Mode m, char c) |
|
public JSONWriter |
endArray() |
|
public JSONWriter |
endObject() |
|
public java.lang.String |
getCurrentStrackReference() |
|
public java.lang.String |
getStackReference(int depth) |
|
public JSONWriter |
key(java.lang.String s) |
|
private int |
nextIndex() |
|
public JSONWriter |
object() |
|
public void |
pop(Mode c) |
|
public void |
push(Mode c) |
|
private void |
pushNextIndex() |
|
public JSONWriter |
value(boolean b) |
|
public JSONWriter |
value(double d) |
|
public JSONWriter |
value(long l) |
|
public JSONWriter |
value(java.lang.Object o) |