public interface LexicalAnalyzer extends FactoryManaged
The actual implementation specifies what lexical elements that identifies and returns.
Modifier and Type | Method and Description |
---|---|
LexicalElement |
get()
Get the next lexical element from the input stream.
|
LexicalElement |
peek()
Peek at the next lexical element and do not remove it from the input
stream.
|
void |
registerElementAnalyzer(LexicalElementAnalyzer lea)
Register a lexical element analyzer.
|
void |
set(Reader reader)
Set the reader from where the lexical analyzer has to read the input.
|
setFactory
void set(Reader reader)
reader
- LexicalElement get() throws AnalysisException
null
AnalysisException
LexicalElement peek() throws AnalysisException
peek()
without calling get()
will return the same lexical element. Calling get()
will return
the same lexical element as the last call to peek()
.AnalysisException
void registerElementAnalyzer(LexicalElementAnalyzer lea)
lea
- Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.