|
||||||||||
| 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.LexerTableBuilder<R>
R - type of rules.public static class Builder.LexerTableBuilder<R>
A lexer builder that configures the buffer of the lexer.
| Method Summary | ||
|---|---|---|
|
buffer(B buffer)
Returns a lexer builder configured with the buffer taken as argument. |
|
Builder.LexerBufferBuilder<R,ReaderWrapper> |
reader(Reader reader)
Returns a lexer builder which used a ReaderWrapper as
lexer buffer. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public <B extends LexerBuffer> Builder.LexerBufferBuilder<R,B> buffer(B buffer)
B - type of buffer.buffer - a lexer buffer or null if the buffer is provided later to the lexer.
Lexer.reset(LexerBuffer)public Builder.LexerBufferBuilder<R,ReaderWrapper> reader(Reader reader)
ReaderWrapper as
lexer buffer.
The buffer will compute locations in the text using a LocationTracker.
reader - a reader
ReaderWrapper as
lexer buffer.
IllegalArgumentException - if the reader is nullbuffer(LexerBuffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||