Class HistoryTokenFilter

java.lang.Object
antlr.TokenStreamBasicFilter
antlr.TokenStreamHiddenTokenFilter
eu.bandm.tools.xantlr.runtime.HistoryTokenFilter
All Implemented Interfaces:
antlr.TokenStream

public class HistoryTokenFilter extends antlr.TokenStreamHiddenTokenFilter
Filter for streams of HistoryTokens, which additionally compies the memoized information across discarded token. See HistoryToken for more.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected String
     
    protected int
     
    protected boolean
     

    Fields inherited from class antlr.TokenStreamHiddenTokenFilter

    firstHidden, hideMask, lastHiddenToken, nextMonitoredToken

    Fields inherited from class antlr.TokenStreamBasicFilter

    discardMask, input
  • Constructor Summary

    Constructors
    Constructor
    Description
    HistoryTokenFilter(antlr.TokenStream in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    Methods inherited from class antlr.TokenStreamHiddenTokenFilter

    getDiscardMask, getHiddenAfter, getHiddenBefore, getHideMask, getInitialHiddenToken, hide, hide, LA, nextToken

    Methods inherited from class antlr.TokenStreamBasicFilter

    discard, discard

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • patching

      protected boolean patching
    • lastTokenFilename

      protected String lastTokenFilename
    • lastTokenLine

      protected int lastTokenLine
    • lastTokenColumn

      protected int lastTokenColumn
  • Constructor Details

    • HistoryTokenFilter

      public HistoryTokenFilter(antlr.TokenStream in)
  • Method Details

    • consume

      protected void consume() throws antlr.TokenStreamException
      Overrides:
      consume in class antlr.TokenStreamHiddenTokenFilter
      Throws:
      antlr.TokenStreamException