|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteSearchResult
This interface represents a handle to a search result.
Field Summary |
---|
Fields inherited from interface org.eclipse.rse.services.search.IHostSearchResult |
---|
SEARCH_RESULT_CLOSE_DELIMITER, SEARCH_RESULT_DELIMITER, SEARCH_RESULT_INDEX_DELIMITER, SEARCH_RESULT_OPEN_DELIMITER |
Method Summary | |
---|---|
void |
addMatch(int startOffset,
int endOffset)
Add a match to the result. |
int |
getCharEnd(int matchIndex)
Gets the char end offset for the given match index. |
int |
getCharStart(int matchIndex)
Gets the char start offset for the given match index. |
int |
getIndex()
Gets the index of this search result in the context of its parent. |
SystemSearchString |
getMatchingSearchString()
Gets the search string that this result matches. |
String |
getText()
Gets the text to display for a search result. |
int |
numOfMatches()
Gets the number of matches in this line. |
Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteLineReference |
---|
getAbsolutePath, getCharEnd, getCharStart, getLine, getParent |
Methods inherited from interface org.eclipse.rse.services.search.IHostSearchResult |
---|
getAbsolutePath, getConfiguration, getLine, getParent, setParent |
Method Detail |
---|
String getText()
getText
in interface IHostSearchResult
int getIndex()
getIndex
in interface IHostSearchResult
SystemSearchString getMatchingSearchString()
getMatchingSearchString
in interface IHostSearchResult
void addMatch(int startOffset, int endOffset)
addMatch
in interface IHostSearchResult
startOffset
- the char start offset, from the beginning of the file.endOffset
- the char end offset, from the beginning of the file.int numOfMatches()
numOfMatches
in interface IHostSearchResult
int getCharStart(int matchIndex)
getCharStart
in interface IHostSearchResult
matchIndex
- the match index. For example, to get the start offset for the first match, specify 0.
int getCharEnd(int matchIndex)
getCharEnd
in interface IHostSearchResult
matchIndex
- the match index. For example, to get the end offset for the first match, specify 0.
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |