| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TokenI
Generic lexical token interface.
 This interface is used to implement any kind of lexical token object, which
 is constructed by some form of lexical analyzer (lexer) such as any that
 implements the LexerI interface.  A token object represents a single
 lexical entity read from an input source text stream.  A lexer provides a
 stream of tokens read from such an input stream, which can then be used by a
 syntactical parser (such as any that implements the ParserI
 interface) for parsing sequences of source tokens into a symbol table or
 parse tree.
 
A token object has the following attributes:
TokenAdapter, 
LexerI, 
ParserI| Field Summary | |
|---|---|
| static java.lang.String | REVRevision information. | 
| Method Summary | |
|---|---|
|  int | getColumnNumber()Retrieve the source column number of this token. | 
|  java.lang.String | getFileName()Retrieve the source filename of this token. | 
|  int | getLineNumber()Retrieve the source line number of this token. | 
|  java.lang.String | getText()Retrieve the textual contents of this token. | 
|  int | getType()Retrieve the type code of this token. | 
|  void | setColumnNumber(int colNo)Establish the source column number of this token. | 
|  void | setFileName(java.lang.String fname)Establishe the source filename of this token. | 
|  void | setLineNumber(int lineNo)Establish the source line number number of this token. | 
|  void | setText(java.lang.String text)Establish the textual contents of this token. | 
|  void | setType(int type)Establish the token type code of this token. | 
| Field Detail | 
|---|
static final java.lang.String REV
| Method Detail | 
|---|
void setText(java.lang.String text)
text - The string containing the textual contents for this token.java.lang.String getText()
void setType(int type)
type - The token type code for this token.int getType()
void setLineNumber(int lineNo)
lineNo - The source line number for this token.int getLineNumber()
void setColumnNumber(int colNo)
colNo - The source column number for this token.int getColumnNumber()
void setFileName(java.lang.String fname)
fname - The source filename for this token.java.lang.String getFileName()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||