Class UnicodeEscapeStream
java.lang.Object
org.eclipse.rdf4j.query.parser.sparql.ast.JavaCharStream
org.eclipse.rdf4j.query.parser.sparql.ast.UnicodeEscapeStream
- All Implemented Interfaces:
CharStream
-
Field Summary
Fields inherited from class JavaCharStream
bufcolumn, buffer, bufline, bufpos, column, inBuf, inputStream, IO_EXCEPTION, line, maxNextCharInd, nextCharBuf, nextCharInd, prevCharIsCR, prevCharIsLF, staticFlag, tabSizeModifier and TypeFieldDescriptionprotected int[]protected char[]protected int[]intPosition in buffer.protected intprotected intprotected Readerstatic final IOExceptionprotected intprotected intprotected char[]protected intprotected booleanprotected booleanstatic final booleanWhether parser is static.protected int -
Constructor Summary
ConstructorsConstructorDescriptionUnicodeEscapeStream(Reader dstream, int tabSize) UnicodeEscapeStream(String string, int tabSize) -
Method Summary
Methods inherited from class JavaCharStream
adjustBeginLineColumn, AdjustBuffSize, backup, BeginToken, Done, ExpandBuff, FillBuff, getBeginColumn, getBeginLine, getColumn, getEndColumn, getEndLine, GetImage, getLine, GetSuffix, getTabSize, getTrackLineColumn, ReadByte, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, setTabSize, setTrackLineColumn, UpdateLineColumnModifier and TypeMethodDescriptionvoidadjustBeginLineColumn(int newLine, int newCol) Method to adjust line and column numbers for the start of a token.protected voidvoidbackup(int amount) Retreat.charReturns the next character that marks the beginning of the next token.voidDone()Set buffers back to null when finished.protected voidExpandBuff(boolean wrapAround) protected voidFillBuff()intReturns the column number of the first character for current token (being matched after the last call to BeginTOken).intReturns the line number of the first character for current token (being matched after the last call to BeginTOken).intDeprecated.intGet end column.intGet end line.GetImage()Returns a string made up of characters from the marked token beginning to the current buffer position.intgetLine()Deprecated.char[]GetSuffix(int len) Returns an array of characters that make up the suffix of length 'len' for the currently matched token.intbooleanprotected charReadByte()voidReInit(InputStream dstream) Reinitialise.voidReInit(InputStream dstream, int startline, int startcolumn) Reinitialise.voidReInit(InputStream dstream, int startline, int startcolumn, int buffersize) Reinitialise.voidReInit(InputStream dstream, String encoding) Reinitialise.voidReInit(InputStream dstream, String encoding, int startline, int startcolumn) Reinitialise.voidReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) Reinitialise.voidReinitialise.voidReinitialise.voidReinitialise.voidsetTabSize(int i) voidsetTrackLineColumn(boolean trackLineColumn) protected voidUpdateLineColumn(char c)
-
Constructor Details
-
UnicodeEscapeStream
-
UnicodeEscapeStream
-
-
Method Details
-
readChar
Description copied from class:JavaCharStreamRead a character.- Specified by:
readCharin interfaceCharStream- Overrides:
readCharin classJavaCharStream- Throws:
IOException
-