org.eclipse.rse.services.search
Interface IHostSearchResult
-
All Known Subinterfaces:
-
IRemoteSearchResult
-
All Known Implementing Classes:
-
AbstractSearchResult,
RemoteSearchResult
-
public interface IHostSearchResult
SEARCH_RESULT_DELIMITER
static final
String SEARCH_RESULT_DELIMITER
-
See Also:
-
Constant Field Values
SEARCH_RESULT_OPEN_DELIMITER
static final
String SEARCH_RESULT_OPEN_DELIMITER
-
See Also:
-
Constant Field Values
SEARCH_RESULT_CLOSE_DELIMITER
static final
String SEARCH_RESULT_CLOSE_DELIMITER
-
See Also:
-
Constant Field Values
SEARCH_RESULT_INDEX_DELIMITER
static final
String SEARCH_RESULT_INDEX_DELIMITER
-
See Also:
-
Constant Field Values
setParent
void setParent(
Object parent)
-
getParent
Object getParent()
-
getLine
int getLine()
-
getMatchingSearchString
SystemSearchString getMatchingSearchString()
- Gets the search string that this result matches.
-
-
Returns:
- the search string.
getAbsolutePath
String getAbsolutePath()
- Gets the path to the file that this output references if it references any. It may return null if
no such association exists. This may be used to jump to an editor from a view which displays
this
-
-
Returns:
- the path of the referenced file if there is one
getText
String getText()
- Gets the text to display for a search result.
-
-
Returns:
- the text.
getIndex
int getIndex()
- Gets the index of this search result in the context of its parent.
-
-
Returns:
- the index.
addMatch
void addMatch(int startOffset,
int endOffset)
- Add a match to the result. A match comprises a char start offset and a char end offset, both
relative to the beginning of the file. The matches are added in order.
-
-
Parameters:
-
startOffset
- the char start offset, from the beginning of the file. -
endOffset
- the char end offset, from the beginning of the file.
numOfMatches
int numOfMatches()
- Gets the number of matches in this line.
-
-
Returns:
- the number of matches.
getCharStart
int getCharStart(int matchIndex)
- Gets the char start offset for the given match index.
-
-
Parameters:
-
matchIndex
- the match index. For example, to get the start offset for the first match, specify 0.
-
Returns:
- the char start offset.
getCharEnd
int getCharEnd(int matchIndex)
- Gets the char end offset for the given match index.
-
-
Parameters:
-
matchIndex
- the match index. For example, to get the end offset for the first match, specify 0.
-
Returns:
- the char end offset.
getConfiguration
IHostSearchResultConfiguration getConfiguration()
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.