Class CaseInsensitiveANTLRStringStream
- java.lang.Object
-
- org.eclipse.persistence.internal.libraries.antlr.runtime.ANTLRStringStream
-
- org.eclipse.persistence.internal.jpa.parsing.jpql.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.ANTLRStringStreamThis 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
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveANTLRStringStream(char[] data, int numberOfActualCharsInArray)This is the preferred constructor as no data is copiedCaseInsensitiveANTLRStringStream(java.lang.String input)Copy data in string to a local char array
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intLA(int i)
-
-
-
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
-
-