|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.services.clientserver.search.SystemSearchLineMatch
public class SystemSearchLineMatch
This class holds information about search results for a line of text. Its instance variables are public so that we can access them without having to call methods (for performance reasons).
| Constructor Summary | |
|---|---|
SystemSearchLineMatch(String line,
int lineNumber)
Constructor to create a search result for a line. |
|
| Method Summary | |
|---|---|
void |
addEntry(int startOffset,
int endOffset)
Adds an entry. |
String |
getLine()
Returns the line that matched. |
int |
getLineNumber()
Returns the line number of the line that matched. |
Iterator |
getMatches()
Gets the iterator for the matches in the line. |
int |
getNumOfMatches()
Gets the number of matches in the line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemSearchLineMatch(String line,
int lineNumber)
line - the line.lineNumber - the line number.| Method Detail |
|---|
public String getLine()
public int getLineNumber()
public Iterator getMatches()
public int getNumOfMatches()
public void addEntry(int startOffset,
int endOffset)
startOffset - the offset from the beginning of the file where the match begins.endOffset - the offset from the beginning of the file where the match ends.
|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||