| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TAB_WIDTH |
| Constructor and Description |
|---|
LineAndColumnTracker() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consume(char c) |
static LineAndColumnTracker |
create() |
abstract int |
getColumnNumber() |
abstract int |
getLineNumber() |
abstract void |
reset()
Resets the current line number to 1 and the current column number to one.
|
abstract void |
setColumnNumber(int columnNumber) |
abstract void |
setLineNumber(int lineNumber) |
abstract void |
setTabWidth(int tabWidth)
Reconfigures the TAB width.
|
public static final int DEFAULT_TAB_WIDTH
public abstract void setTabWidth(int tabWidth)
1 will treat TAB characters just like any other (non-line-break)
character.public abstract void consume(char c)
public abstract int getLineNumber()
public abstract void setLineNumber(int lineNumber)
public abstract int getColumnNumber()
public abstract void setColumnNumber(int columnNumber)
public abstract void reset()
tab width remains.)public static LineAndColumnTracker create()
Copyright © 2019. All rights reserved.