Eclipse Platform
Release 3.2

org.eclipse.search.ui.text
Class SearchMatchInformationProvider.LineInformation

java.lang.Object
  extended byorg.eclipse.search.ui.text.SearchMatchInformationProvider.LineInformation
Enclosing class:
SearchMatchInformationProvider

public static final class SearchMatchInformationProvider.LineInformation
extends Object

Information about a line of a match.


Constructor Summary
SearchMatchInformationProvider.LineInformation(int lineNumber, int lineOffset, int lineLength)
          Creates a line information instance for a match.
 
Method Summary
 int getLineLength()
          Returns the total length of the lines containing the match.
 int getLineNumber()
          Returns the line number of the line where the match starts.
 int getLineOffset()
          Returns the file offset of the beginning of the line where the match starts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchMatchInformationProvider.LineInformation

public SearchMatchInformationProvider.LineInformation(int lineNumber,
                                                      int lineOffset,
                                                      int lineLength)
Creates a line information instance for a match.

Parameters:
lineNumber - the line number where the match starts.
lineOffset - the file offset of the beginning of the line where the match starts.
lineLength - the length of the lines containing the match.
Method Detail

getLineNumber

public int getLineNumber()
Returns the line number of the line where the match starts.

Returns:
the line number of the line where the match starts.

getLineLength

public int getLineLength()
Returns the total length of the lines containing the match. This also includes the characters of the line terminator.

Returns:
the length of the lines containing the match.

getLineOffset

public int getLineOffset()
Returns the file offset of the beginning of the line where the match starts.

Returns:
the offset of the beginning of the line where the match starts.

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.