Package com.scriptbasic.lexer.elements
Class MultiCharacter
- java.lang.Object
-
- com.scriptbasic.lexer.elements.AbstractElementAnalyzer
-
- com.scriptbasic.lexer.elements.MultiCharacter
-
- All Implemented Interfaces:
LexicalElementAnalyzer,ScriptBasicKeyWords
public class MultiCharacter extends AbstractElementAnalyzer implements ScriptBasicKeyWords
-
-
Field Summary
-
Fields inherited from interface com.scriptbasic.interfaces.ScriptBasicKeyWords
BASIC_KEYWORDS, BASIC_OPERATOR_LEXEME_MAX_LENGTH, BASIC_OPERATORS
-
-
Constructor Summary
Constructors Constructor Description MultiCharacter(SourceReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LexicalElementread()Reads a lexeme and returns the created lexical element.-
Methods inherited from class com.scriptbasic.lexer.elements.AbstractElementAnalyzer
getReader
-
-
-
-
Constructor Detail
-
MultiCharacter
public MultiCharacter(SourceReader reader)
-
-
Method Detail
-
read
public LexicalElement 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- Specified by:
readin classAbstractElementAnalyzer- Returns:
- the created lexeme or
null
-
-