Class UpperCaseCharStream

java.lang.Object
org.apache.drill.exec.record.metadata.schema.parser.UpperCaseCharStream
All Implemented Interfaces:
org.antlr.v4.runtime.CharStream, org.antlr.v4.runtime.IntStream

public class UpperCaseCharStream extends Object implements org.antlr.v4.runtime.CharStream
Is used for case-insensitive lexing. Constructs a new stream wrapping forcing all characters to be in upper case. Allows building lexical rules match only upper case, making lexer easier to read.
  • Constructor Details

    • UpperCaseCharStream

      public UpperCaseCharStream(org.antlr.v4.runtime.CharStream stream)
  • Method Details

    • getText

      public String getText(org.antlr.v4.runtime.misc.Interval interval)
      Specified by:
      getText in interface org.antlr.v4.runtime.CharStream
    • consume

      public void consume()
      Specified by:
      consume in interface org.antlr.v4.runtime.IntStream
    • LA

      public int LA(int i)
      Specified by:
      LA in interface org.antlr.v4.runtime.IntStream
    • mark

      public int mark()
      Specified by:
      mark in interface org.antlr.v4.runtime.IntStream
    • release

      public void release(int marker)
      Specified by:
      release in interface org.antlr.v4.runtime.IntStream
    • index

      public int index()
      Specified by:
      index in interface org.antlr.v4.runtime.IntStream
    • seek

      public void seek(int index)
      Specified by:
      seek in interface org.antlr.v4.runtime.IntStream
    • size

      public int size()
      Specified by:
      size in interface org.antlr.v4.runtime.IntStream
    • getSourceName

      public String getSourceName()
      Specified by:
      getSourceName in interface org.antlr.v4.runtime.IntStream