|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.search.core.text.TextSearchMatchAccess
A TextSearchMatchAccess
gives access to a pattern match found by the TextSearchEngine
.
Please note that
objects do not
have value semantic. The state of the object might change over
time especially since objects are reused for different call backs. Clients shall not keep a reference to
a TextSearchMatchAccess
TextSearchMatchAccess
element.
This class should only be implemented by implementors of a TextSearchEngine
.
Constructor Summary | |
---|---|
TextSearchMatchAccess()
|
Method Summary | |
---|---|
abstract IFile |
getFile()
Returns the file the match was found in. |
abstract String |
getFileContent(int offset,
int length)
Returns the file's content at the given offsets. |
abstract char |
getFileContentChar(int offset)
Returns a character of the file's content at the given offset |
abstract int |
getFileContentLength()
Returns the length of this file's content. |
abstract int |
getMatchLength()
Returns the length of this search match. |
abstract int |
getMatchOffset()
Returns the offset of this search match. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextSearchMatchAccess()
Method Detail |
public abstract IFile getFile()
public abstract int getMatchOffset()
public abstract int getMatchLength()
public abstract int getFileContentLength()
public abstract char getFileContentChar(int offset)
IndexOutOfBoundsException
- an IndexOutOfBoundsException
is
thrown when the offset
is negative or not less than the file content's length.public abstract String getFileContent(int offset, int length)
offset
- the offset of the requested contentlength
- the of the requested content
IndexOutOfBoundsException
- an IndexOutOfBoundsException
is
thrown when the offset
or the length
are negative
or when offset + length
is not less than the file content's length.
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.