Class SourceCodeIndicator
int i = 0.1; ^^^ ^^^
vvvvvvv
int i = 0.1;
Note that the indicator line is not required to indicate continuous portions of the code line. However, in our application it is only going to be used for continuous portions.
Support for special characters (such as tab, backspace and end-of-line) in the code line is the responsibility of the class that displays the two lines. The indicator in this class assumes a one-to-one mapping of code characters to display characters and to indicator line characters. The meaning of "line" is left to the users of this class; it does not enforce that its "lines" contain no newline characters. In our application we should make sure we don't pass newline characters to this class.
The indicator line is not required to have the same length as the code line. This means that trailing whitespace can be absent. However, uses such as:
int i = 0; ____#####_
are considered valid. Note that the indicator line contains no whitespace and that both lines are the same size. As long as the visual indication is achieved, the indicator line is unconstrained.
The indicator line might be absent. If that is the case,
getIndicatorLine() returns null.
-
Method Summary
-
Method Details
-
getCodeLine
- Returns:
- the code line
-
getIndicatorLine
- Returns:
- the indicator line
-