Package org.sonar.sslr.internal.matchers
Interface InputBuffer
-
- All Known Implementing Classes:
ImmutableInputBuffer
public interface InputBuffer
Input text to be parsed.This interface is not intended to be implemented by clients.
- Since:
- 1.16
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InputBuffer.Position
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char
charAt(int index)
String
extractLine(int lineNumber)
Returns content of a line for a given line number.int
getLineCount()
Returns number of lines, which is always equal to number of line terminators plus 1.InputBuffer.Position
getPosition(int index)
int
length()
-
-
-
Method Detail
-
length
int length()
-
charAt
char charAt(int index)
-
extractLine
String extractLine(int lineNumber)
Returns content of a line for a given line number. Numbering of lines starts from 1.
-
getLineCount
int getLineCount()
Returns number of lines, which is always equal to number of line terminators plus 1.
-
getPosition
InputBuffer.Position getPosition(int index)
-
-