Package org.meeuw.json
Class ParseEvent
- java.lang.Object
-
- org.meeuw.json.ParseEvent
-
-
Constructor Summary
Constructors Constructor Description ParseEvent(com.fasterxml.jackson.core.JsonToken token, Path path, String value)ParseEvent(com.fasterxml.jackson.core.JsonToken token, Path path, String value, List<String> keys)ParseEvent(com.fasterxml.jackson.core.JsonToken token, Path path, String value, List<String> keys, Object node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getKeys()voidtoGenerator(com.fasterxml.jackson.core.JsonGenerator generator)StringtoString()StringvalueOrNodeAsConciseString()StringvalueOrNodeAsString()Returns the value associated with this event as a string.
-
-
-
Method Detail
-
toGenerator
public void toGenerator(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException- Throws:
IOException
-
valueOrNodeAsString
public String valueOrNodeAsString()
Returns the value associated with this event as a string.- Returns:
- The value as a string if it is a simple value. Or, if this leaf represents an object or an array, a complete json representation of it as a string.
-
valueOrNodeAsConciseString
public String valueOrNodeAsConciseString()
- Returns:
- The value as a string if it is a simple value. Or, if this leaf represents an object or an array, either '{...}' or '[...]'
-
-