|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.tools.builder.Builder.LexerBuilder<R,B>
R - type of rules.B - type of the buffer.public static class Builder.LexerBuilder<R,B extends LexerBuffer>
A lexer builder that is able to set an activator, create a lexer or create a new builder in expert mode.
| Method Summary | |
|---|---|
Builder.LexerBuilder<R,B> |
activator(RuleActivator<R> activator)
Set a rule activator. |
Builder.LexerBuilder<R,B> |
allRuleActivator()
Set a rule activator that will activate all rules at any time. |
Lexer<B> |
create()
Creates a lexer with all rule activated if no activator is provided, the default error handling policy and no lifecycle handler. |
Builder.ExpertLexerBuilder<R,B> |
expert()
Returns a lexer builder with more configuration options. |
Builder.LexerBuilder<R,B> |
trace()
Adds a debug proxy in front of the lexer listener that will trace all calls to the lexer listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Builder.LexerBuilder<R,B> allRuleActivator()
activator(RuleActivator)public Builder.LexerBuilder<R,B> activator(RuleActivator<R> activator)
activator - a rule activator
public Builder.LexerBuilder<R,B> trace()
public Builder.ExpertLexerBuilder<R,B> expert()
public Lexer<B> create()
allRuleActivator(),
Builder.ExpertLexerBuilder.defaultErrorPolicy(LexerWarningReporter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||