Klasse JavaSearchDocument
- Bekannte direkte Unterklassen:
MatchLocator.WorkingCopyDocument
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungJavaSearchDocument
(String documentPath, byte[] contents, SearchParticipant participant) JavaSearchDocument
(String documentPath, SearchParticipant participant) JavaSearchDocument
(ZipEntry zipEntry, org.eclipse.core.runtime.IPath zipFilePath, byte[] contents, SearchParticipant participant) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte[]
Returns the contents of this document.char[]
Returns the contents of this document.Returns the encoding for this document.toString()
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.core.search.SearchDocument
addIndexEntry, getParser, getParticipant, getPath, removeAllIndexEntries, requireIndexingResolvedDocument, setIndex, setParser, shouldIndexResolvedDocument
-
Felddetails
-
byteContents
protected byte[] byteContents -
charContents
protected char[] charContents
-
-
Konstruktordetails
-
JavaSearchDocument
-
JavaSearchDocument
public JavaSearchDocument(ZipEntry zipEntry, org.eclipse.core.runtime.IPath zipFilePath, byte[] contents, SearchParticipant participant) -
JavaSearchDocument
-
-
Methodendetails
-
getByteContents
public byte[] getByteContents()Beschreibung aus Klasse kopiert:SearchDocument
Returns the contents of this document. Contents may be different from actual resource at corresponding document path, in case of preprocessing.This method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
- Angegeben von:
getByteContents
in KlasseSearchDocument
- Gibt zurück:
- the contents of this document,
or
null
if none
-
getCharContents
public char[] getCharContents()Beschreibung aus Klasse kopiert:SearchDocument
Returns the contents of this document. Contents may be different from actual resource at corresponding document path due to preprocessing.This method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
- Angegeben von:
getCharContents
in KlasseSearchDocument
- Gibt zurück:
- the contents of this document,
or
null
if none
-
getEncoding
Beschreibung aus Klasse kopiert:SearchDocument
Returns the encoding for this document.This method must be implemented in subclasses.
- Angegeben von:
getEncoding
in KlasseSearchDocument
- Gibt zurück:
- the encoding for this document,
or
null
if none
-
toString
-