public class Token extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Token.Type |
Modifier and Type | Field and Description |
---|---|
int |
col |
int |
row |
Token.Type |
type |
Object |
value |
Constructor and Description |
---|
Token(Token.Type type,
Object value) |
Token(Token.Type type,
Object value,
int row,
int col) |
Token(Token.Type type,
Object value,
Token tokenOrigin) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Token.Type |
getType() |
Object |
getValue() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isBoxedPrimitive() |
boolean |
isDecimal() |
boolean |
isInteger() |
boolean |
isIterable() |
boolean |
isNumeric() |
boolean |
isObject() |
boolean |
isString() |
static void |
main(String[] ar) |
boolean |
toBoolean() |
double |
toDecimal() |
int |
toInteger() |
String |
toString() |
String |
toStringRowColOnly() |
public final Token.Type type
public final Object value
public final int row
public final int col
public Token(Token.Type type, Object value, int row, int col)
public Token(Token.Type type, Object value, Token tokenOrigin)
public Token(Token.Type type, Object value)
public Object getValue()
public boolean isInteger()
public boolean isDecimal()
public boolean isBoolean()
public boolean isString()
public boolean isArray()
public boolean isIterable()
public boolean isObject()
public boolean isBoxedPrimitive()
public int toInteger()
public double toDecimal()
public boolean isNumeric()
public boolean toBoolean()
public Token.Type getType()
public String toStringRowColOnly()
public static void main(String[] ar)