A JSON token, with a type, line / column information, and the text of that token.
Type | Name and description |
---|---|
long |
getEndColumn() |
long |
getEndLine() |
long |
getStartColumn() |
long |
getStartLine() |
String |
getText() |
JsonTokenType |
getType() |
Object |
getValue() Return the value represented by this token (ie. a number, a string, a boolean or null). |
void |
setEndColumn(long endColumn) |
void |
setEndLine(long endLine) |
void |
setStartColumn(long startColumn) |
void |
setStartLine(long startLine) |
void |
setText(String text) |
void |
setType(JsonTokenType type) |
String |
toString() |
Return the value represented by this token (ie. a number, a string, a boolean or null). For numbers, the most appropriate type is returned (Float, Double, BigDecimal for decimal numbers, and Integer, Long and BigInteger for integral numbers).