|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CharI
Generic source character.
This interface is used to implement classes representing a single character. Such a stream can be used to hold text characters read from a source file, containing information in addition to the character code itself, such as the source line, column number, and filename from which the character was read.
CharDfl,
LexerI,
CharInputStreamI| Field Summary | |
|---|---|
static java.lang.String |
REV
Revision information. |
| Method Summary | |
|---|---|
char |
getChar()
Retrieves the character code of this character. |
int |
getColNo()
Retrieves the source column number of this character. |
java.lang.String |
getFileName()
Retrieves the source filename of this character. |
int |
getLineNo()
Retrieves the source line number of this character. |
void |
setChar(char ch)
Establishes the character code of this character. |
void |
setFileName(java.lang.String fname)
Establishes the source filename of this character. |
void |
setLineNo(int ln,
int col)
Establishes the source line number and column number of this character. |
| Field Detail |
|---|
static final java.lang.String REV
| Method Detail |
|---|
void setChar(char ch)
ch - The character code for this character.char getChar()
void setLineNo(int ln,
int col)
ln - The source line number for this character.col - The source column number for this token.int getLineNo()
int getColNo()
void setFileName(java.lang.String fname)
fname - The source filename for this character.java.lang.String getFileName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||