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