Package com.scriptbasic.lexer.elements
Class ConstAwareIdentifier
java.lang.Object
com.scriptbasic.lexer.elements.AbstractElementAnalyzer
com.scriptbasic.lexer.elements.Identifier
com.scriptbasic.lexer.elements.ConstAwareIdentifier
- All Implemented Interfaces:
LexicalElementAnalyzer
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.scriptbasic.lexer.elements.Identifier
setKeywordRecognizerMethods inherited from class com.scriptbasic.lexer.elements.AbstractElementAnalyzer
getReader
-
Constructor Details
-
ConstAwareIdentifier
-
-
Method Details
-
read
Description copied from interface:LexicalElementAnalyzerReads a lexeme and returns the created lexical element.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
nullis 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.
- Specified by:
readin interfaceLexicalElementAnalyzer- Overrides:
readin classIdentifier- Returns:
- the created lexeme or
null - Throws:
LexicalException
-