\R pattern of Pattern. Initially, line number and column number are 1.
This class has no public constructors, instead, use one of the static "factory methods".
create()
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_TAB_WIDTH
The default "tab width". |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public static LineAndColumnTracker | |
| public abstract int | getColumnNumber()
Returns the column number of the previously consumed character; 1 after a line separator character has been consumed, 2 after the first non-line-separator character, and so forth. |
| public abstract int | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void |
| DEFAULT_TAB_WIDTH | back to summary |
|---|---|
| public static final int DEFAULT_TAB_WIDTH The default "tab width".
| |
| LineAndColumnTracker | back to summary |
|---|---|
| public LineAndColumnTracker() | |
| consume | back to summary |
|---|---|
| public abstract void consume(char c) Consumes the next character of the stream. | |
| create | back to summary |
|---|---|
public static LineAndColumnTracker create()
| |
| getColumnNumber | back to summary |
|---|---|
| public abstract int getColumnNumber() Returns the column number of the previously consumed character; 1 after a line separator character has been consumed, 2 after the first non-line-separator character, and so forth. | |
| getLineNumber | back to summary |
|---|---|
| public abstract int getLineNumber() Returns the line number of the previously consumed character (starting at 1). Line separator characters belong to the "next" line. | |
| reset | back to summary |
|---|---|
| public abstract void reset() Resets the current line number to 1 and the current column number to one. (The configured | |
| setColumnNumber | back to summary |
|---|---|
| public abstract void setColumnNumber(int columnNumber) Sets the "current column number" to the given value. | |
| setLineNumber | back to summary |
|---|---|
| public abstract void setLineNumber(int lineNumber) Sets the "current line number" to the given value. | |
| setTabWidth | back to summary |
|---|---|
| public abstract void setTabWidth(int tabWidth) Reconfigures the TAB width. Value | |