Class PositionInfo


  • public class PositionInfo
    extends Object
    • 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 document
        start - position data for start of value
        end - 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 document
        start - position data for start of value, in PositionEndpoint form
        end - position data for end of value, in raw JsonLocation form