Package groovy.json

Class JsonToken

  • public class JsonToken
    extends Object
    A JSON token, with a type, line / column information, and the text of that token.
    • Constructor Detail

      • JsonToken

        public JsonToken()
    • Method Detail

      • getValue

        public 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.
        the represented value
      • getStartLine

        public long getStartLine()
      • setStartLine

        public void setStartLine​(long startLine)
      • getEndLine

        public long getEndLine()
      • setEndLine

        public void setEndLine​(long endLine)
      • getStartColumn

        public long getStartColumn()
      • setStartColumn

        public void setStartColumn​(long startColumn)
      • getEndColumn

        public long getEndColumn()
      • setEndColumn

        public void setEndColumn​(long endColumn)
      • setText

        public void setText​(String text)
      • getText

        public String getText()