Groovy 2.2.0

groovy.json
[Java] Class JsonToken

java.lang.Object
  groovy.json.JsonToken

public class JsonToken

A JSON token, with a type, line / column information, and the text of that token.

Authors:
Guillaume Laforge
Since:
1.8.0


Method Summary
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()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

getEndColumn

public long getEndColumn()


getEndLine

public long getEndLine()


getStartColumn

public long getStartColumn()


getStartLine

public long getStartLine()


getText

public String getText()


getType

public JsonTokenType getType()


getValue

public Object getValue()
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).
Returns:
the represented value


setEndColumn

public void setEndColumn(long endColumn)


setEndLine

public void setEndLine(long endLine)


setStartColumn

public void setStartColumn(long startColumn)


setStartLine

public void setStartLine(long startLine)


setText

public void setText(String text)


setType

public void setType(JsonTokenType type)


toString

public String toString()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.