Class CaseInsensitiveANTLRStringStream

  • All Implemented Interfaces:
    org.eclipse.persistence.internal.libraries.antlr.runtime.CharStream, org.eclipse.persistence.internal.libraries.antlr.runtime.IntStream

    public class CaseInsensitiveANTLRStringStream
    extends org.eclipse.persistence.internal.libraries.antlr.runtime.ANTLRStringStream
    This Stream is used when tokenizing JPQL queries It overrides the look ahead operator to return the lower case version of the string This is required because starting in ANTLR v3, case insensitivity is not provided as an option in ANTLR and JPQL requires case insensitivity
    Author:
    tware
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.internal.libraries.antlr.runtime.ANTLRStringStream

        charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, p
      • Fields inherited from interface org.eclipse.persistence.internal.libraries.antlr.runtime.CharStream

        EOF
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int LA​(int i)  
      • Methods inherited from class org.eclipse.persistence.internal.libraries.antlr.runtime.ANTLRStringStream

        consume, getCharPositionInLine, getLine, getSourceName, index, LT, mark, release, reset, rewind, rewind, seek, setCharPositionInLine, setLine, size, substring, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CaseInsensitiveANTLRStringStream

        public CaseInsensitiveANTLRStringStream​(java.lang.String input)
        Copy data in string to a local char array
      • CaseInsensitiveANTLRStringStream

        public CaseInsensitiveANTLRStringStream​(char[] data,
                                                int numberOfActualCharsInArray)
        This is the preferred constructor as no data is copied
    • Method Detail

      • LA

        public int LA​(int i)
        Specified by:
        LA in interface org.eclipse.persistence.internal.libraries.antlr.runtime.IntStream
        Overrides:
        LA in class org.eclipse.persistence.internal.libraries.antlr.runtime.ANTLRStringStream