Package org.ek9lang.compiler.tokenizer
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorListener
(org.antlr.v4.runtime.ANTLRErrorListener listener) int
int
int
org.antlr.v4.runtime.CharStream
int
getLine()
getSymbolicName
(int tokenType) org.antlr.v4.runtime.TokenFactory
<?> org.antlr.v4.runtime.Token
void
void
setTokenFactory
(org.antlr.v4.runtime.TokenFactory<?> factory)
-
Constructor Details
-
DelegatingLexer
-
-
Method Details
-
getIndentToken
public int getIndentToken()- Specified by:
getIndentToken
in interfaceLexerPlugin
-
getDedentToken
public int getDedentToken()- Specified by:
getDedentToken
in interfaceLexerPlugin
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceLexerPlugin
-
nextToken
public org.antlr.v4.runtime.Token nextToken()- Specified by:
nextToken
in interfaceorg.antlr.v4.runtime.TokenSource
-
getLine
public int getLine()- Specified by:
getLine
in interfaceorg.antlr.v4.runtime.TokenSource
-
getCharPositionInLine
public int getCharPositionInLine()- Specified by:
getCharPositionInLine
in interfaceorg.antlr.v4.runtime.TokenSource
-
getInputStream
public org.antlr.v4.runtime.CharStream getInputStream()- Specified by:
getInputStream
in interfaceorg.antlr.v4.runtime.TokenSource
-
getSourceName
- Specified by:
getSourceName
in interfaceorg.antlr.v4.runtime.TokenSource
-
getTokenFactory
public org.antlr.v4.runtime.TokenFactory<?> getTokenFactory()- Specified by:
getTokenFactory
in interfaceorg.antlr.v4.runtime.TokenSource
-
setTokenFactory
public void setTokenFactory(org.antlr.v4.runtime.TokenFactory<?> factory) - Specified by:
setTokenFactory
in interfaceorg.antlr.v4.runtime.TokenSource
-
removeErrorListeners
public void removeErrorListeners()- Specified by:
removeErrorListeners
in interfaceLexerPlugin
-
addErrorListener
public void addErrorListener(org.antlr.v4.runtime.ANTLRErrorListener listener) - Specified by:
addErrorListener
in interfaceLexerPlugin
-