class Position
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
column
Die Quelltextspalte.
|
(package private) int |
line
Die Quelltextzeile.
|
Constructor and Description |
---|
Position(int line,
int column)
Konstruktor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
next(char c)
Die Methode zählt die Quelltextposition weiter.
|
Position(int line, int column)
line
- Die Quelltextzeile.column
- Die Quelltextspalte.void next(char c)
c
- Das aktuell gelesene Zeichen. '\n' springt
an den Anfang der nächsten Zeile. '\t' springt
zur nächsten Tabulatorposition (Vielfache von 8).
'\r' wird ignoriert.