| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| private int[] | |
| private char[] | |
| private int[] | |
| public int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int[] | |
| private int | |
| private int | |
| private Reader | |
| private int | |
| private int | |
| private char[] | |
| private int | |
| private boolean | |
| private boolean | |
| public static final boolean | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token. |
| public final void | backup(int amount)
Implements org. Backs up the input stream by amount steps. |
| public char | BeginToken()
Implements org. Returns the next character that marks the beginning of the next token. |
| public void | Done()
Implements org. The lexer calls this function to indicate that it is done with the stream and hence implementations can free any resources held by this class. |
| private void | |
| private void | |
| public final int | getBeginColumn()
Implements org. Returns the column number of the first character for current token (being matched after the last call to BeginTOken). |
| public final int | getBeginLine()
Implements org. Returns the line number of the first character for current token (being matched after the last call to BeginTOken). |
| public final int | |
| public final int | getColumn()
Implements org.
Deprecated
Returns the column position of the character last read. |
| public final int | getEndColumn()
Implements org. Returns the column number of the last character for current token (being matched after the last call to BeginTOken). |
| public final int | getEndLine()
Implements org. Returns the line number of the last character for current token (being matched after the last call to BeginTOken). |
| public final int | |
| public final String | GetImage()
Implements org. Returns a string made up of characters from the marked token beginning to the current buffer position. |
| public final int | getLine()
Implements org.
Deprecated
Returns the line number of the character last read. |
| public final char[] | GetSuffix(int len)
Implements org. Returns an array of characters that make up the suffix of length 'len' for the currently matched token. |
| private char | |
| public final char | readChar()
Implements org. Returns the next character from the selected input. |
| public void | ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
Implements org.
|
| public void | ReInit(Reader dstream, int startline, int startcolumn)
Implements org.
|
| public void | ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
Implements org.
|
| public void | ReInit(InputStream dstream, int startline, int startcolumn)
Implements org.
|
| private void |
| available | back to summary |
|---|---|
| pack-priv int available | |
| bufcolumn | back to summary |
|---|---|
| private int[] bufcolumn | |
| buffer | back to summary |
|---|---|
| private char[] buffer | |
| bufline | back to summary |
|---|---|
| private int[] bufline | |
| bufpos | back to summary |
|---|---|
| public int bufpos | |
| bufsize | back to summary |
|---|---|
| pack-priv int bufsize | |
| charCnt | back to summary |
|---|---|
| pack-priv int charCnt | |
| charOffset | back to summary |
|---|---|
| pack-priv int[] charOffset | |
| column | back to summary |
|---|---|
| private int column | |
| inBuf | back to summary |
|---|---|
| private int inBuf | |
| inputStream | back to summary |
|---|---|
| private Reader inputStream | |
| line | back to summary |
|---|---|
| private int line | |
| maxNextCharInd | back to summary |
|---|---|
| private int maxNextCharInd | |
| nextCharBuf | back to summary |
|---|---|
| private char[] nextCharBuf | |
| nextCharInd | back to summary |
|---|---|
| private int nextCharInd | |
| prevCharIsCR | back to summary |
|---|---|
| private boolean prevCharIsCR | |
| prevCharIsLF | back to summary |
|---|---|
| private boolean prevCharIsLF | |
| staticFlag | back to summary |
|---|---|
| public static final boolean staticFlag | |
| tokenBegin | back to summary |
|---|---|
| pack-priv int tokenBegin | |
| UCode_CharStream | back to summary |
|---|---|
| public UCode_CharStream(Reader dstream, int startline, int startcolumn, int buffersize) | |
| UCode_CharStream | back to summary |
|---|---|
| public UCode_CharStream(Reader dstream, int startline, int startcolumn) | |
| UCode_CharStream | back to summary |
|---|---|
| public UCode_CharStream(InputStream dstream, int startline, int startcolumn, int buffersize) | |
| UCode_CharStream | back to summary |
|---|---|
| public UCode_CharStream(InputStream dstream, int startline, int startcolumn) | |
| adjustBeginLineColumn | back to summary |
|---|---|
| public void adjustBeginLineColumn(int newLine, int newCol) Method to adjust line and column numbers for the start of a token. | |
| backup | back to summary |
|---|---|
| public final void backup(int amount) Implements org. Doc from org. Backs up the input stream by amount steps. Lexer calls this method if it had already read some characters, but could not use them to match a (longer) token. So, they will be used again as the prefix of the next token and it is the implemetation's responsibility to do this right. | |
| BeginToken | back to summary |
|---|---|
| public char BeginToken() throws IOException Implements org. Doc from org. Returns the next character that marks the beginning of the next token. All characters must remain in the buffer between two successive calls to this method to implement backup correctly. | |
| Done | back to summary |
|---|---|
| public void Done() Implements org. Doc from org. The lexer calls this function to indicate that it is done with the stream and hence implementations can free any resources held by this class. Again, the body of this function can be just empty and it will not affect the lexer's operation. | |
| ExpandBuff | back to summary |
|---|---|
| private void ExpandBuff(boolean wrapAround) | |
| FillBuff | back to summary |
|---|---|
| private void FillBuff() throws IOException | |
| getBeginColumn | back to summary |
|---|---|
| public final int getBeginColumn() Implements org. Doc from org. Returns the column number of the first character for current token (being matched after the last call to BeginTOken). | |
| getBeginLine | back to summary |
|---|---|
| public final int getBeginLine() Implements org. Doc from org. Returns the line number of the first character for current token (being matched after the last call to BeginTOken). | |
| getBeginOffset | back to summary |
|---|---|
| public final int getBeginOffset() Implements org. | |
| getColumn | back to summary |
|---|---|
| public final int getColumn() Implements org. Doc from org. Deprecated
Returns the column position of the character last read.
| |
| getEndColumn | back to summary |
|---|---|
| public final int getEndColumn() Implements org. Doc from org. Returns the column number of the last character for current token (being matched after the last call to BeginTOken). | |
| getEndLine | back to summary |
|---|---|
| public final int getEndLine() Implements org. Doc from org. Returns the line number of the last character for current token (being matched after the last call to BeginTOken). | |
| getEndOffset | back to summary |
|---|---|
| public final int getEndOffset() Implements org. | |
| GetImage | back to summary |
|---|---|
| public final String GetImage() Implements org. Doc from org. Returns a string made up of characters from the marked token beginning to the current buffer position. Implementations have the choice of returning anything that they want to. For example, for efficiency, one might decide to just return null, which is a valid implementation. | |
| getLine | back to summary |
|---|---|
| public final int getLine() Implements org. Doc from org. Deprecated
Returns the line number of the character last read.
| |
| GetSuffix | back to summary |
|---|---|
| public final char[] GetSuffix(int len) Implements org. Doc from org. Returns an array of characters that make up the suffix of length 'len' for the currently matched token. This is used to build up the matched string for use in actions in the case of MORE. A simple and inefficient implementation of this is as follows : { String t = GetImage(); return t.substring(t.length() - len, t.length()).toCharArray(); } | |
| ReadChar | back to summary |
|---|---|
| private char ReadChar() throws IOException | |
| readChar | back to summary |
|---|---|
| public final char readChar() throws IOException Implements org. Doc from org. Returns the next character from the selected input. The method of selecting the input is the responsibility of the class implementing this interface. Can throw any java.io.IOException. | |
| ReInit | back to summary |
|---|---|
| public void ReInit(Reader dstream, int startline, int startcolumn, int buffersize) Implements org. | |
| ReInit | back to summary |
|---|---|
| public void ReInit(Reader dstream, int startline, int startcolumn) Implements org. | |
| ReInit | back to summary |
|---|---|
| public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize) Implements org. | |
| ReInit | back to summary |
|---|---|
| public void ReInit(InputStream dstream, int startline, int startcolumn) Implements org. | |
| UpdateLineColumn | back to summary |
|---|---|
| private void UpdateLineColumn(char c) | |