Class JSONToken
- java.lang.Object
-
- com.dynatrace.openkit.util.json.lexer.JSONToken
-
public final class JSONToken extends java.lang.ObjectContainer class representing a token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONToken.TokenTypeToken's type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONToken.TokenTypegetTokenType()Get the type of the token.java.lang.StringgetValue()Get token value as string.java.lang.StringtoString()
-
-
-
Method Detail
-
getTokenType
public JSONToken.TokenType getTokenType()
Get the type of the token.- Returns:
- Token's type.
-
getValue
public java.lang.String getValue()
Get token value as string.This method is only relevant for number, boolean and string tokens.
- Returns:
- Token value as string.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-