Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire