Package aQute.bnd.properties
Class LineTracker
java.lang.Object
aQute.bnd.properties.LineTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
computeNumberOfLines
(String text) final String
getLineDelimiter
(int line) final IRegion
getLineInformation
(int line) final IRegion
getLineInformationOfOffset
(int position) final int
getLineLength
(int line) final int
getLineNumberOfOffset
(int position) final int
getLineOffset
(int line) final int
final int
getNumberOfLines
(int position, int length) protected Document.DelimiterInfo
nextDelimiterInfo
(String text, int offset) Returns the information about the first delimiter found in the given text starting at the given offset.final void
final 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
-