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 -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) extractLine(int lineNumber) Returns content of a line for a given line number.intReturns number of lines, which is always equal to number of line terminators plus 1.getPosition(int index) intlength()
-
Method Details
-
length
int length() -
charAt
char charAt(int index) -
extractLine
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
-