Package com.networknt.jsonoverlay
Class PositionInfo
- java.lang.Object
-
- com.networknt.jsonoverlay.PositionInfo
-
public class PositionInfo extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPositionInfo.PositionEndpoint
-
Constructor Summary
Constructors Constructor Description PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, com.fasterxml.jackson.core.JsonLocation start, com.fasterxml.jackson.core.JsonLocation end)Records the position of a JSON value.PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, PositionInfo.PositionEndpoint start, com.fasterxml.jackson.core.JsonLocation end)Records the position of a JSON value.PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, PositionInfo.PositionEndpoint start, PositionInfo.PositionEndpoint end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()StringgetDocumentUrl()PositionInfo.PositionEndpointgetEnd()intgetLine()com.fasterxml.jackson.core.JsonPointergetPointer()PositionInfo.PositionEndpointgetStart()StringtoString()StringtoString(boolean startOnly)
-
-
-
Constructor Detail
-
PositionInfo
public PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, com.fasterxml.jackson.core.JsonLocation start, com.fasterxml.jackson.core.JsonLocation end)Records the position of a JSON value. Depending on the value type, this may be an intermediate value, including only the position of the beginning of the value. This is the case for the document as a whole in all cases, and also for any containers (objects or arrays), whose end positions are detected later in the parse.- Parameters:
pointer- JsonPointer uniquely identifying this value in the oveall documentstart- position data for start of valueend- position data for end of value if known, else repeat of start data
-
PositionInfo
public PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, PositionInfo.PositionEndpoint start, com.fasterxml.jackson.core.JsonLocation end)Records the position of a JSON value. This is used to update a provisional instance that was created when the end of the value had not yet been detected. The start data is supplied in its processed form, while the end data comes in the raw form provided by the parser.- Parameters:
pointer- JsonPointer uniquely identifying this value in the overall documentstart- position data for start of value, in PositionEndpoint formend- position data for end of value, in raw JsonLocation form
-
PositionInfo
public PositionInfo(com.fasterxml.jackson.core.JsonPointer pointer, PositionInfo.PositionEndpoint start, PositionInfo.PositionEndpoint end)
-
-
Method Detail
-
getPointer
public com.fasterxml.jackson.core.JsonPointer getPointer()
-
getStart
public PositionInfo.PositionEndpoint getStart()
-
getEnd
public PositionInfo.PositionEndpoint getEnd()
-
getDocumentUrl
public String getDocumentUrl()
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
toString
public String toString(boolean startOnly)
-
-