public class Token extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
RE_IDENTIFIER |
static Pattern |
RE_INTEGER |
static Pattern |
RE_QUALIFIED_IDENTIFIER |
| Constructor and Description |
|---|
Token(String token,
int line,
int pos,
int len) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLen() |
int |
getLine() |
int |
getPos() |
Symbol |
getSymbol() |
String |
getToken() |
int |
intValue() |
boolean |
isIdentifier() |
boolean |
isInteger() |
boolean |
isLiteral() |
boolean |
isQualifiedIdentifier() |
boolean |
isSymbol() |
String |
literalValue() |
boolean |
startsBlockComment() |
boolean |
startsLineComment() |
String |
toString() |
public static final Pattern RE_IDENTIFIER
public static final Pattern RE_QUALIFIED_IDENTIFIER
public static final Pattern RE_INTEGER
public Token(String token, int line, int pos, int len)
public boolean startsLineComment()
public boolean startsBlockComment()
public String getToken()
public int getLine()
public int getPos()
public int getLen()
public boolean isSymbol()
public boolean isLiteral()
public boolean isIdentifier()
public boolean isQualifiedIdentifier()
public boolean isInteger()
public Symbol getSymbol()
public String literalValue() throws ParseException
ParseExceptionpublic int intValue()
Copyright © 2016. All rights reserved.