public class Token extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
characterPosition |
protected int |
lineNumber |
static int |
TOKEN_FLOAT |
static int |
TOKEN_INTEGER |
static int |
TOKEN_PUNCTUATION |
static int |
TOKEN_STRING |
static int |
TOKEN_TOKEN |
protected int |
tokenType |
protected String |
tokenValue |
Constructor and Description |
---|
Token(int type,
String value,
int lineNumber,
int characterPosition) |
Modifier and Type | Method and Description |
---|---|
String |
getFloat() |
String |
getInteger() |
String |
getPunctuation() |
String |
getString() |
String |
getToken() |
void |
throwException(String message) |
String |
toString() |
public static final int TOKEN_PUNCTUATION
public static final int TOKEN_STRING
public static final int TOKEN_INTEGER
public static final int TOKEN_FLOAT
public static final int TOKEN_TOKEN
protected int tokenType
protected String tokenValue
protected int lineNumber
protected int characterPosition
public Token(int type, String value, int lineNumber, int characterPosition)
public void throwException(String message) throws ScriptException
ScriptException
public String getPunctuation()
public String getToken()
public String getString()
public String getFloat()
public String getInteger()