Class CaseControlStringStream

  • All Implemented Interfaces:
    org.antlr.v4.runtime.CharStream, org.antlr.v4.runtime.IntStream

    public class CaseControlStringStream
    extends org.antlr.v4.runtime.ANTLRInputStream
    Author:
    rpastrana for HPCC Edited and reformatted
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean toUpperCase  
      • Fields inherited from class org.antlr.v4.runtime.ANTLRInputStream

        data, INITIAL_BUFFER_SIZE, n, name, p, READ_BUFFER_SIZE
      • Fields inherited from interface org.antlr.v4.runtime.IntStream

        EOF, UNKNOWN_SOURCE_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      CaseControlStringStream​(char[] data, int numberOfActualCharsInArray)
      This is the preferred constructor as no data is actually copied.
      CaseControlStringStream​(String input)
      Copy data from string to a local char array.
    • Field Detail

      • toUpperCase

        public boolean toUpperCase
    • Constructor Detail

      • CaseControlStringStream

        public CaseControlStringStream​(String input)
        Copy data from string to a local char array.
        Parameters:
        input - the input
      • CaseControlStringStream

        public CaseControlStringStream​(char[] data,
                                       int numberOfActualCharsInArray)
        This is the preferred constructor as no data is actually copied.
        Parameters:
        data - the data
        numberOfActualCharsInArray - the number of actual chars in array
    • Method Detail

      • LA

        public int LA​(int i)
        Specified by:
        LA in interface org.antlr.v4.runtime.IntStream
        Overrides:
        LA in class org.antlr.v4.runtime.ANTLRInputStream