|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.tools.builder.LexerBuilder<R,B>
public class LexerBuilder<R,B extends LexerBuffer>
Constructor Summary | |
---|---|
protected |
LexerBuilder(LexerTable<R> table)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LexerBuilder(LexerTable<R> table)
Method Detail |
---|
public static <R,B extends LexerBuffer> LexerBuilder<R,B> createBuilder(LexerTable<R> table, B buffer)
public static <R> LexerBuilder<R,ReaderWrapper> createReaderBuilder(LexerTable<R> table, Reader reader)
public SimpleLexer createSimpleLexer()
public Lexer<B> createLexer()
public LexerBuilder<R,B> setBuffer(B buffer)
Lexer.reset(B)
buffer
- public LexerBuilder<R,B> setLexerListener(LexerListener<? super R,? super B> listener)
listener
- public LexerBuilder<R,B> setActivator(RuleActivator<R> activator)
activator
- may be null, in that case all rules are activatedprotected RuleActivator<R> createAllRuleActivator(LexerTable<R> table)
createLexer()
if not
activator
is set.
table
- the parser table, never null.LexerTable.getRuleDataMap()
public LexerBuilder<R,B> setLifecycleHandler(LifecycleHandler<B> lifecycleHandler)
lifecycleHandler
- public LexerBuilder<R,B> setForwarder(ErrorForwarder<B> forwarder)
DefaultErrorForwarder
i.e. nothing or set by setParser by default)
forwarder
- public void setLexerErrorPolicy(LexerErrorRecoveryPolicy<R,B> policy)
protected LexerErrorRecoveryPolicy<R,B> createDefaultPolicy(ErrorForwarder<B> forwarder)
public <T,N,P,V> LexerBuilder<R,B> setParser(SimpleParser<T> parser)
parser
-
createParserForwarder(fr.umlv.tatoo.runtime.parser.SimpleParser)
protected <T> ParserForwarder<T,B> createParserForwarder(SimpleParser<T> parser)
public RuleActivator<R> getActivator()
public B getBuffer()
public ErrorForwarder<B> getForwarder()
public LifecycleHandler<B> getLifecycleHandler()
public LexerListener<? super R,? super B> getLexerListener()
public LexerTable<R> getLexerTable()
public LexerErrorRecoveryPolicy<R,B> getLexerErrorPolicy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |