Class CachingIntervalSet

java.lang.Object
org.antlr.v4.runtime.misc.IntervalSet
io.github.douira.glsl_transformer.generic.CachingIntervalSet
All Implemented Interfaces:
org.antlr.v4.runtime.misc.IntSet

public class CachingIntervalSet extends org.antlr.v4.runtime.misc.IntervalSet
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.antlr.v4.runtime.misc.Interval
     

    Fields inherited from class org.antlr.v4.runtime.misc.IntervalSet

    COMPLETE_CHAR_SET, EMPTY_SET, intervals, readonly
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(int el)
    Copied from ANTLR's IntervalSet.contains but with an addition of caching.
    boolean
    isTokenAllowed(org.antlr.v4.runtime.Token token)
     

    Methods inherited from class org.antlr.v4.runtime.misc.IntervalSet

    add, add, add, addAll, and, clear, complement, complement, elementName, elementName, equals, get, getIntervals, getMaxElement, getMinElement, hashCode, isNil, isReadonly, of, of, or, or, remove, setReadonly, size, subtract, subtract, toArray, toIntegerList, toList, toSet, toString, toString, toString, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • lastIntervalHit

      protected org.antlr.v4.runtime.misc.Interval lastIntervalHit
  • Constructor Details

    • CachingIntervalSet

      public CachingIntervalSet()
  • Method Details

    • contains

      public boolean contains(int el)
      Copied from ANTLR's IntervalSet.contains but with an addition of caching.
      Specified by:
      contains in interface org.antlr.v4.runtime.misc.IntSet
      Overrides:
      contains in class org.antlr.v4.runtime.misc.IntervalSet
    • isTokenAllowed

      public boolean isTokenAllowed(org.antlr.v4.runtime.Token token)