Class DelegatingLexer

java.lang.Object
org.ek9lang.compiler.tokenizer.DelegatingLexer
All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource, LexerPlugin

public class DelegatingLexer extends Object implements LexerPlugin
A Lexer, but one that delegates to the actual lexer that in plugged in.
  • Constructor Details

    • DelegatingLexer

      public DelegatingLexer(LexerPlugin delegateTo)
  • Method Details

    • getIndentToken

      public int getIndentToken()
      Specified by:
      getIndentToken in interface LexerPlugin
    • getDedentToken

      public int getDedentToken()
      Specified by:
      getDedentToken in interface LexerPlugin
    • getSymbolicName

      public String getSymbolicName(int tokenType)
      Specified by:
      getSymbolicName in interface LexerPlugin
    • nextToken

      public org.antlr.v4.runtime.Token nextToken()
      Specified by:
      nextToken in interface org.antlr.v4.runtime.TokenSource
    • getLine

      public int getLine()
      Specified by:
      getLine in interface org.antlr.v4.runtime.TokenSource
    • getCharPositionInLine

      public int getCharPositionInLine()
      Specified by:
      getCharPositionInLine in interface org.antlr.v4.runtime.TokenSource
    • getInputStream

      public org.antlr.v4.runtime.CharStream getInputStream()
      Specified by:
      getInputStream in interface org.antlr.v4.runtime.TokenSource
    • getSourceName

      public String getSourceName()
      Specified by:
      getSourceName in interface org.antlr.v4.runtime.TokenSource
    • getTokenFactory

      public org.antlr.v4.runtime.TokenFactory<?> getTokenFactory()
      Specified by:
      getTokenFactory in interface org.antlr.v4.runtime.TokenSource
    • setTokenFactory

      public void setTokenFactory(org.antlr.v4.runtime.TokenFactory<?> factory)
      Specified by:
      setTokenFactory in interface org.antlr.v4.runtime.TokenSource
    • removeErrorListeners

      public void removeErrorListeners()
      Specified by:
      removeErrorListeners in interface LexerPlugin
    • addErrorListener

      public void addErrorListener(org.antlr.v4.runtime.ANTLRErrorListener listener)
      Specified by:
      addErrorListener in interface LexerPlugin