Package org.eclipse.xtext.parser.antlr
Class Lexer
- java.lang.Object
-
- org.antlr.runtime.BaseRecognizer
-
- org.antlr.runtime.Lexer
-
- org.eclipse.xtext.parser.antlr.Lexer
-
- All Implemented Interfaces:
org.antlr.runtime.TokenSource
- Direct Known Subclasses:
InternalXtextLexer
public abstract class Lexer extends org.antlr.runtime.LexerHack: As AntLR does not allow to define the superclass of the generated lexer, we call this class Lexer and import it to be used instead of the original lexer class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemitErrorMessage(java.lang.String msg)java.lang.StringgetErrorMessage(org.antlr.runtime.Token t)org.antlr.runtime.TokennextToken()-
Methods inherited from class org.antlr.runtime.Lexer
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, mTokens, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
-
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getErrorHeader, getGrammarFileName, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
-
-
-
-
Method Detail
-
nextToken
public org.antlr.runtime.Token nextToken()
- Specified by:
nextTokenin interfaceorg.antlr.runtime.TokenSource- Overrides:
nextTokenin classorg.antlr.runtime.Lexer
-
getErrorMessage
public java.lang.String getErrorMessage(org.antlr.runtime.Token t)
-
emitErrorMessage
public void emitErrorMessage(java.lang.String msg)
- Overrides:
emitErrorMessagein classorg.antlr.runtime.BaseRecognizer
-
-