RSE
Release 3.4

org.eclipse.rse.services.clientserver.search
Class SystemSearchLineMatch

java.lang.Object
  extended by org.eclipse.rse.services.clientserver.search.SystemSearchLineMatch

public class SystemSearchLineMatch
extends Object

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

SystemSearchLineMatch

public SystemSearchLineMatch(String line,
                             int lineNumber)
Constructor to create a search result for a line.

Parameters:
line - the line.
lineNumber - the line number.
Method Detail

getLine

public String getLine()
Returns the line that matched.

Returns:
the line.

getLineNumber

public int getLineNumber()
Returns the line number of the line that matched.

Returns:
the line number.

getMatches

public Iterator getMatches()
Gets the iterator for the matches in the line.

Returns:
the iterator over the list of matches.

getNumOfMatches

public int getNumOfMatches()
Gets the number of matches in the line.

Returns:
the number of matches.

addEntry

public void addEntry(int startOffset,
                     int endOffset)
Adds an entry.

Parameters:
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

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.