Package groovy.json
Class JsonToken
- java.lang.Object
- 
- groovy.json.JsonToken
 
- 
 public class JsonToken extends java.lang.ObjectA JSON token, with a type, line / column information, and the text of that token.- Since:
- 1.8.0
 
- 
- 
Constructor SummaryConstructors Constructor Description JsonToken()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEndColumn()longgetEndLine()longgetStartColumn()longgetStartLine()java.lang.StringgetText()JsonTokenTypegetType()java.lang.ObjectgetValue()Return the value represented by this token (ie.voidsetEndColumn(long endColumn)voidsetEndLine(long endLine)voidsetStartColumn(long startColumn)voidsetStartLine(long startLine)voidsetText(java.lang.String text)voidsetType(JsonTokenType type)java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getValuepublic java.lang.Object getValue() Return the value represented by this token (ie. a number, a string, a boolean or null). For numbers, BigDecimal is returned for decimals and Integer, Long or BigInteger for integral numbers.- Returns:
- the represented value
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getStartLinepublic long getStartLine() 
 - 
setStartLinepublic void setStartLine(long startLine) 
 - 
getEndLinepublic long getEndLine() 
 - 
setEndLinepublic void setEndLine(long endLine) 
 - 
getStartColumnpublic long getStartColumn() 
 - 
setStartColumnpublic void setStartColumn(long startColumn) 
 - 
getEndColumnpublic long getEndColumn() 
 - 
setEndColumnpublic void setEndColumn(long endColumn) 
 - 
getTypepublic JsonTokenType getType() 
 - 
setTypepublic void setType(JsonTokenType type) 
 - 
setTextpublic void setText(java.lang.String text) 
 - 
getTextpublic java.lang.String getText() 
 
- 
 
-