|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.lexer.Lexer<B>
fr.umlv.tatoo.runtime.lexer.Lexer.LexerImpl<R,B>
public static class Lexer.LexerImpl<R,B extends LexerBuffer>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class fr.umlv.tatoo.runtime.lexer.Lexer |
|---|
Lexer.LexerImpl<R,B extends LexerBuffer> |
| Method Summary | |
|---|---|
void |
close()
Closes the lexing process. |
RuleActivator<? extends R> |
getActivator()
returns the RuleActivator used by this Lexer |
LexerErrorRecoveryPolicy<R,B> |
getLexerErrorRecoveryPolicy()
Returns the LexerErrorRecoveryPolicy used by this lexer |
LexerListener<? super R,? super B> |
getLexerListener()
Returns the LexerListener this lexer notifies events to |
void |
reset(B buffer)
Reset the lexer to perform a new analysis. |
void |
run()
Does all the lexing in one shot. |
void |
step()
Proceed all available characters from the underlying buffer. |
| Methods inherited from class fr.umlv.tatoo.runtime.lexer.Lexer |
|---|
createLexer, getBuffer, getLifecycleHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void step()
SimpleLexer.step()
the developer must call SimpleLexer.close().
During the execution of this method, changing the buffer has
no effect on the current execution.
A next call to this method will used the newly set buffer.
SimpleLexer.close(),
LexerBuffer.hasRemaining()public void close()
SimpleLexer.step().
Note that this method is likely to recognize some supplementary tokens
and thus to call LexerListener.ruleVerified(Object, int, Object).
during the lexing process, by example, if the lexer states doesn't accept
the end of file.
During the execution of this method, changing the buffer has
no effect on the current execution.
A next call to this method will used the newly set buffer.
SimpleLexer.step(),
SimpleLexer.run()public void run()
SimpleLexer.step()public RuleActivator<? extends R> getActivator()
getActivator in class Lexer<B extends LexerBuffer>public void reset(B buffer)
LifecycleHandler.lexerReset(Lexer)
after the reset of the lexer.
reset in class Lexer<B extends LexerBuffer>public LexerListener<? super R,? super B> getLexerListener()
getLexerListener in class Lexer<B extends LexerBuffer>public LexerErrorRecoveryPolicy<R,B> getLexerErrorRecoveryPolicy()
getLexerErrorRecoveryPolicy in class Lexer<B extends LexerBuffer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||