Package com.github.javaparser
Class UnicodeEscapeProcessingProvider.LineCounter
java.lang.Object
com.github.javaparser.UnicodeEscapeProcessingProvider.LineCounter
- Enclosing class:
UnicodeEscapeProcessingProvider
Processor keeping track of the current line and column in a stream of
incoming characters.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
WhetherUnicodeEscapeProcessingProvider.CR
has been seen on the input as last character.private int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_crSeen
private boolean _crSeenWhetherUnicodeEscapeProcessingProvider.CR
has been seen on the input as last character. -
_line
private int _line -
_column
private int _column
-
-
Constructor Details
-
LineCounter
public LineCounter()Creates aUnicodeEscapeProcessingProvider.LineCounter
.
-
-
Method Details
-
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
The current position. -
process
public int process(int ch) Analyzes the given character for line feed. -
incLine
private void incLine()
-