public abstract class AbstractElementAnalyzer extends Object implements LexicalElementAnalyzer
Constructor and Description |
---|
AbstractElementAnalyzer() |
public Reader getReader()
public void setReader(Reader reader)
LexicalElementAnalyzer
setReader
in interface LexicalElementAnalyzer
public abstract LexicalElement read() throws LexicalException
LexicalElementAnalyzer
If the characters read from the reader show that the lexeme is not the
type that the class implementing this interface can handle then the
characters are pushed back to he reader and null
is returned.
If the characters read from the reader show that the lexeme is the type that the class implementing this interface can handle, but is erroneous, then the method throws the exception.
read
in interface LexicalElementAnalyzer
null
LexicalException
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.