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
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.
-
Field Summary
Fields inherited from interface org.antlr.v4.runtime.IntStream
EOF, UNKNOWN_SOURCE_NAME
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UpperCaseCharStream
public UpperCaseCharStream(org.antlr.v4.runtime.CharStream stream)
-
-
Method Details
-
getText
- Specified by:
getText
in interfaceorg.antlr.v4.runtime.CharStream
-
consume
public void consume()- Specified by:
consume
in interfaceorg.antlr.v4.runtime.IntStream
-
LA
public int LA(int i) - Specified by:
LA
in interfaceorg.antlr.v4.runtime.IntStream
-
mark
public int mark()- Specified by:
mark
in interfaceorg.antlr.v4.runtime.IntStream
-
release
public void release(int marker) - Specified by:
release
in interfaceorg.antlr.v4.runtime.IntStream
-
index
public int index()- Specified by:
index
in interfaceorg.antlr.v4.runtime.IntStream
-
seek
public void seek(int index) - Specified by:
seek
in interfaceorg.antlr.v4.runtime.IntStream
-
size
public int size()- Specified by:
size
in interfaceorg.antlr.v4.runtime.IntStream
-
getSourceName
- Specified by:
getSourceName
in interfaceorg.antlr.v4.runtime.IntStream
-