|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.core.util.jlex.Token
public class Token
Token data class for use with JLex. Reference:
"JLex: A Lexical Analyzer Generator for Java"
http://www.cs.princeton.edu/~appel/modern/java/JLex/
Field Summary | |
---|---|
int |
charBegin
Defaults to -1. |
int |
charEnd
Defaults to -1. |
int |
id
The token type identifier number. |
int |
line
Defaults to -1. |
String |
text
|
Constructor Summary | |
---|---|
Token(int id)
|
|
Token(int id,
String text)
|
|
Token(int id,
String text,
int line,
int charBegin,
int charEnd)
|
Method Summary | |
---|---|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int id
public String text
public int line
public int charBegin
public int charEnd
Constructor Detail |
---|
public Token(int id, String text, int line, int charBegin, int charEnd)
public Token(int id, String text)
public Token(int id)
Method Detail |
---|
public String toString()
toString
in class Object
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |