|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.buffer.impl.CharBufferWrapper
public class CharBufferWrapper
| Constructor Summary | |
|---|---|
CharBufferWrapper(CharBuffer buffer)
|
|
| Method Summary | |
|---|---|
void |
compact()
|
void |
discard()
Discards all characters already recognized by the lexer. |
void |
flip()
|
int |
getErrorChar()
|
LocationErrorContext |
getErrorContext()
Returns the context of an error that occurred in the lexer. |
boolean |
hasRemaining()
|
char |
next()
Reads the next character from the buffer. |
boolean |
previousWasNewLine()
Determines if the last unwinded character was an end of line. |
void |
unwind(int l)
Unwinds l characters from the buffer. |
CharSequence |
view()
Provides a view of all available tokens. |
CharSequence |
viewCharacters(int nb)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharBufferWrapper(CharBuffer buffer)
| Method Detail |
|---|
public void unwind(int l)
CharacterBufferl characters from the buffer.
unwind in interface CharacterBufferl - the number of characters to unwindpublic boolean previousWasNewLine()
CharacterBuffer
previousWasNewLine in interface CharacterBuffertrue if the last unwinded character was an end of line;
false otherwisepublic boolean hasRemaining()
public char next()
CharacterBuffer
next in interface CharacterBufferpublic void compact()
public void flip()
public void discard()
TokenBuffer
discard in interface TokenBufferpublic CharSequence viewCharacters(int nb)
public CharSequence view()
TokenBuffer
view in interface TokenBufferpublic LocationErrorContext getErrorContext()
ErrorContextBuffer
getErrorContext in interface ErrorContextBuffer<LocationErrorContext>public int getErrorChar()
getErrorChar in interface ErrorContextBuffer<LocationErrorContext>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||