|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.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()
.
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.
SimpleLexer.step()
public void run()
public RuleActivator<? extends R> getActivator()
getActivator
in class Lexer<B extends LexerBuffer>
public void reset(B buffer)
LifecycleHandler.handleReset(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 |