Package com.github.javaparser
Class UnicodeEscapeProcessingProvider.LineCounter
- java.lang.Object
-
- com.github.javaparser.UnicodeEscapeProcessingProvider.LineCounter
-
- Enclosing class:
- UnicodeEscapeProcessingProvider
public static final class UnicodeEscapeProcessingProvider.LineCounter extends java.lang.Object
Processor keeping track of the current line and column in a stream of incoming characters.- See Also:
process(int)
-
-
Field Summary
Fields Modifier and Type Field Description private int
_column
private boolean
_crSeen
WhetherUnicodeEscapeProcessingProvider.CR
has been seen on the input as last character.private int
_line
-
Constructor Summary
Constructors Constructor Description LineCounter()
Creates aUnicodeEscapeProcessingProvider.LineCounter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
The column of the currently processed input character.int
getLine()
The line of the currently processed input character.Position
getPosition()
The current position.private void
incLine()
int
process(int ch)
Analyzes the given character for line feed.
-
-
-
Field Detail
-
_crSeen
private boolean _crSeen
WhetherUnicodeEscapeProcessingProvider.CR
has been seen on the input as last character.
-
_line
private int _line
-
_column
private int _column
-
-
Constructor Detail
-
LineCounter
public LineCounter()
Creates aUnicodeEscapeProcessingProvider.LineCounter
.
-
-
Method Detail
-
getLine
public int getLine()
The line of the currently processed input character.
-
getColumn
public int getColumn()
The column of the currently processed input character.
-
getPosition
public Position getPosition()
The current position.
-
process
public int process(int ch)
Analyzes the given character for line feed.
-
incLine
private void incLine()
-
-