Class DelegatingLexer
java.lang.Object
org.ek9lang.compiler.tokenizer.DelegatingLexer
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource, LexerPlugin
A Lexer, but one that delegates to the actual lexer that in plugged in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorListener(org.antlr.v4.runtime.ANTLRErrorListener listener) intintintorg.antlr.v4.runtime.CharStreamintgetLine()getSymbolicName(int tokenType) org.antlr.v4.runtime.TokenFactory<?> org.antlr.v4.runtime.TokenvoidvoidsetTokenFactory(org.antlr.v4.runtime.TokenFactory<?> factory)
-
Constructor Details
-
DelegatingLexer
-
-
Method Details
-
getIndentToken
public int getIndentToken()- Specified by:
getIndentTokenin interfaceLexerPlugin
-
getDedentToken
public int getDedentToken()- Specified by:
getDedentTokenin interfaceLexerPlugin
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceLexerPlugin
-
nextToken
public org.antlr.v4.runtime.Token nextToken()- Specified by:
nextTokenin interfaceorg.antlr.v4.runtime.TokenSource
-
getLine
public int getLine()- Specified by:
getLinein interfaceorg.antlr.v4.runtime.TokenSource
-
getCharPositionInLine
public int getCharPositionInLine()- Specified by:
getCharPositionInLinein interfaceorg.antlr.v4.runtime.TokenSource
-
getInputStream
public org.antlr.v4.runtime.CharStream getInputStream()- Specified by:
getInputStreamin interfaceorg.antlr.v4.runtime.TokenSource
-
getSourceName
- Specified by:
getSourceNamein interfaceorg.antlr.v4.runtime.TokenSource
-
getTokenFactory
public org.antlr.v4.runtime.TokenFactory<?> getTokenFactory()- Specified by:
getTokenFactoryin interfaceorg.antlr.v4.runtime.TokenSource
-
setTokenFactory
public void setTokenFactory(org.antlr.v4.runtime.TokenFactory<?> factory) - Specified by:
setTokenFactoryin interfaceorg.antlr.v4.runtime.TokenSource
-
removeErrorListeners
public void removeErrorListeners()- Specified by:
removeErrorListenersin interfaceLexerPlugin
-
addErrorListener
public void addErrorListener(org.antlr.v4.runtime.ANTLRErrorListener listener) - Specified by:
addErrorListenerin interfaceLexerPlugin
-