|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.web.core.javascript.search.JsSearchDocument
public class JsSearchDocument
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves. (copied from JSP) Created with a .jsp file, but should appear to be a .java file for indexing and searching purposes. There are purposely few fields in this class, and those fields are lightweight since it's possible for many JSP search documents to exist in memory at one time (eg. after importing a project with a large number of JSP files)
Constructor Summary | |
---|---|
JsSearchDocument(java.lang.String filePath,
SearchParticipant participant)
|
Method Summary | |
---|---|
byte[] |
getByteContents()
|
char[] |
getCharContents()
|
java.lang.String |
getEncoding()
|
IFile |
getFile()
|
java.lang.String |
getJavaText()
|
IJsTranslation |
getJSPTranslation()
It's not recommended for clients to hold on to this JSPTranslation since it's kind of large. |
SearchParticipant |
getParticipant()
|
java.lang.String |
getPath()
the path to the Java compilation unit |
void |
release()
|
java.lang.String |
toString()
for debugging |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsSearchDocument(java.lang.String filePath, SearchParticipant participant)
file
- participant
-
CoreException
Method Detail |
---|
public SearchParticipant getParticipant()
public char[] getCharContents()
org.eclipse.jdt.core.search.SearchDocument#getCharContents()
public java.lang.String getJavaText()
public final IJsTranslation getJSPTranslation()
public java.lang.String getPath()
org.eclipse.jdt.core.search.SearchDocument#getPath()
public IFile getFile()
public void release()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getEncoding()
public byte[] getByteContents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |