Class LineTracker
java.lang.Object
aQute.bnd.properties.LineTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcomputeNumberOfLines(String text) final StringgetLineDelimiter(int line) final IRegiongetLineInformation(int line) final IRegiongetLineInformationOfOffset(int position) final intgetLineLength(int line) final intgetLineNumberOfOffset(int position) final intgetLineOffset(int line) final intfinal intgetNumberOfLines(int position, int length) protected Document.DelimiterInfonextDelimiterInfo(String text, int offset) Returns the information about the first delimiter found in the given text starting at the given offset.final voidfinal void
-
Constructor Details
-
LineTracker
protected LineTracker()Creates a new line tracker.
-
-
Method Details
-
getLineLength
- Throws:
BadLocationException
-
getLineNumberOfOffset
- Throws:
BadLocationException
-
getLineInformationOfOffset
- Throws:
BadLocationException
-
getLineInformation
- Throws:
BadLocationException
-
getLineOffset
- Throws:
BadLocationException
-
getNumberOfLines
public final int getNumberOfLines() -
getNumberOfLines
- Throws:
BadLocationException
-
computeNumberOfLines
-
getLineDelimiter
- Throws:
BadLocationException
-
nextDelimiterInfo
Returns the information about the first delimiter found in the given text starting at the given offset.- Parameters:
text- the text to be searchedoffset- the offset in the given text- Returns:
- the information of the first found delimiter or
null
-
replace
- Throws:
BadLocationException
-
set
-