| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_12) on Fri May 30 11:15:46 CDT 2008 --> |
| <TITLE> |
| CompletionContext |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.core.CompletionContext class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="CompletionContext"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompletionContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/eclipse/wst/jsdt/core/BufferChangedEvent.html" title="class in org.eclipse.wst.jsdt.core"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionFlags.html" title="class in org.eclipse.wst.jsdt.core"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/eclipse/wst/jsdt/core/CompletionContext.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="CompletionContext.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.eclipse.wst.jsdt.core</FONT> |
| <BR> |
| Class CompletionContext</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">org.eclipse.wst.jsdt.internal.codeassist.InternalCompletionContext |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.wst.jsdt.core.CompletionContext</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public final class <B>CompletionContext</B><DT>extends org.eclipse.wst.jsdt.internal.codeassist.InternalCompletionContext</DL> |
| </PRE> |
| |
| <P> |
| Completion context. |
| |
| Represent the context in which the completion occurs. |
| <p> |
| This class is not intended to be instantiated or subclassed by clients. |
| </p> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionRequestor.html#acceptContext(org.eclipse.wst.jsdt.core.CompletionContext)"><CODE>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.</CODE></A></DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#TOKEN_KIND_NAME">TOKEN_KIND_NAME</A></B></CODE> |
| |
| <BR> |
| The completion token is a name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#TOKEN_KIND_STRING_LITERAL">TOKEN_KIND_STRING_LITERAL</A></B></CODE> |
| |
| <BR> |
| The completion token is a string literal.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#TOKEN_KIND_UNKNOWN">TOKEN_KIND_UNKNOWN</A></B></CODE> |
| |
| <BR> |
| The completion token is unknown.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#CompletionContext()">CompletionContext</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> char[][]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getExpectedTypesKeys()">getExpectedTypesKeys</A></B>()</CODE> |
| |
| <BR> |
| Return keys of expected types of a potential completion proposal at the completion position.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> char[][]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getExpectedTypesSignatures()">getExpectedTypesSignatures</A></B>()</CODE> |
| |
| <BR> |
| Return signatures of expected types of a potential completion proposal at the completion position.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getOffset()">getOffset</A></B>()</CODE> |
| |
| <BR> |
| Returns the offset position in the source file buffer |
| after which code assist is requested.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> char[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getToken()">getToken</A></B>()</CODE> |
| |
| <BR> |
| Returns the completed token.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getTokenEnd()">getTokenEnd</A></B>()</CODE> |
| |
| <BR> |
| Returns the character index of the end (exclusive) of the subrange |
| in the source file buffer containing the |
| relevant token.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getTokenKind()">getTokenKind</A></B>()</CODE> |
| |
| <BR> |
| Returns the kind of completion token being proposed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#getTokenStart()">getTokenStart</A></B>()</CODE> |
| |
| <BR> |
| Returns the character index of the start of the |
| subrange in the source file buffer containing the |
| relevant token being completed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#isInJsdoc()">isInJsdoc</A></B>()</CODE> |
| |
| <BR> |
| Tell user whether completion takes place in a jsdoc comment or not.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#isInJsdocFormalReference()">isInJsdocFormalReference</A></B>()</CODE> |
| |
| <BR> |
| Tell user whether completion takes place in a formal reference of a jsdoc tag or not.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#isInJsdocText()">isInJsdocText</A></B>()</CODE> |
| |
| <BR> |
| Tell user whether completion takes place in text area of a jsdoc comment or not.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionContext.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="TOKEN_KIND_UNKNOWN"><!-- --></A><H3> |
| TOKEN_KIND_UNKNOWN</H3> |
| <PRE> |
| public static final int <B>TOKEN_KIND_UNKNOWN</B></PRE> |
| <DL> |
| <DD>The completion token is unknown. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.eclipse.wst.jsdt.core.CompletionContext.TOKEN_KIND_UNKNOWN">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="TOKEN_KIND_NAME"><!-- --></A><H3> |
| TOKEN_KIND_NAME</H3> |
| <PRE> |
| public static final int <B>TOKEN_KIND_NAME</B></PRE> |
| <DL> |
| <DD>The completion token is a name. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.eclipse.wst.jsdt.core.CompletionContext.TOKEN_KIND_NAME">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="TOKEN_KIND_STRING_LITERAL"><!-- --></A><H3> |
| TOKEN_KIND_STRING_LITERAL</H3> |
| <PRE> |
| public static final int <B>TOKEN_KIND_STRING_LITERAL</B></PRE> |
| <DL> |
| <DD>The completion token is a string literal. |
| The string literal ends quote can be not present the source. |
| <code>"foo"</code> or <code>"foo</code>. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.eclipse.wst.jsdt.core.CompletionContext.TOKEN_KIND_STRING_LITERAL">Constant Field Values</A></DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="CompletionContext()"><!-- --></A><H3> |
| CompletionContext</H3> |
| <PRE> |
| public <B>CompletionContext</B>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="isInJsdoc()"><!-- --></A><H3> |
| isInJsdoc</H3> |
| <PRE> |
| public boolean <B>isInJsdoc</B>()</PRE> |
| <DL> |
| <DD>Tell user whether completion takes place in a jsdoc comment or not. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>boolean true if completion takes place in a jsdoc comment, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isInJsdocText()"><!-- --></A><H3> |
| isInJsdocText</H3> |
| <PRE> |
| public boolean <B>isInJsdocText</B>()</PRE> |
| <DL> |
| <DD>Tell user whether completion takes place in text area of a jsdoc comment or not. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>boolean true if completion takes place in a text area of a jsdoc comment, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isInJsdocFormalReference()"><!-- --></A><H3> |
| isInJsdocFormalReference</H3> |
| <PRE> |
| public boolean <B>isInJsdocFormalReference</B>()</PRE> |
| <DL> |
| <DD>Tell user whether completion takes place in a formal reference of a jsdoc tag or not. |
| Tags with formal reference are: |
| <ul> |
| <li>@see</li> |
| <li>@throws</li> |
| <li>@exception</li> |
| <li>{@link Object}</li> |
| <li>{@linkplain Object}</li> |
| <li>{@value} when compiler compliance is set at leats to 1.5</li> |
| </ul> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>boolean true if completion takes place in formal reference of a jsdoc tag, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getExpectedTypesSignatures()"><!-- --></A><H3> |
| getExpectedTypesSignatures</H3> |
| <PRE> |
| public char[][] <B>getExpectedTypesSignatures</B>()</PRE> |
| <DL> |
| <DD>Return signatures of expected types of a potential completion proposal at the completion position. |
| |
| It's not mandatory to a completion proposal to respect this expectation. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>signatures expected types of a potential completion proposal at the completion position or |
| <code>null</code> if there is no expected types.<DT><B>See Also:</B><DD><A HREF="../../../../../org/eclipse/wst/jsdt/core/Signature.html" title="class in org.eclipse.wst.jsdt.core"><CODE>Signature</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getExpectedTypesKeys()"><!-- --></A><H3> |
| getExpectedTypesKeys</H3> |
| <PRE> |
| public char[][] <B>getExpectedTypesKeys</B>()</PRE> |
| <DL> |
| <DD>Return keys of expected types of a potential completion proposal at the completion position. |
| |
| It's not mandatory to a completion proposal to respect this expectation. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>keys of expected types of a potential completion proposal at the completion position or |
| <code>null</code> if there is no expected types.<DT><B>See Also:</B><DD><CODE>org.eclipse.wst.jsdt.core.dom.ASTParser#createASTs(IJavaScriptUnit[], String[], org.eclipse.wst.jsdt.core.dom.ASTRequestor, org.eclipse.core.runtime.IProgressMonitor)</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getToken()"><!-- --></A><H3> |
| getToken</H3> |
| <PRE> |
| public char[] <B>getToken</B>()</PRE> |
| <DL> |
| <DD>Returns the completed token. |
| This token is either the identifier or JavaScript language keyword |
| or the string literal under, immediately preceding, |
| the original request offset. If the original request offset |
| is not within or immediately after an identifier or keyword or |
| a string literal then the returned value is <code>null</code>. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>completed token or <code>null</code></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTokenKind()"><!-- --></A><H3> |
| getTokenKind</H3> |
| <PRE> |
| public int <B>getTokenKind</B>()</PRE> |
| <DL> |
| <DD>Returns the kind of completion token being proposed. |
| <p> |
| The set of different kinds of completion token is |
| expected to change over time. It is strongly recommended |
| that clients do <b>not</b> assume that the kind is one of the |
| ones they know about, and code defensively for the |
| possibility of unexpected future growth. |
| </p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the kind; one of the kind constants declared on |
| this class whose name starts with <code>TOKEN_KIND</code>, |
| or possibly a kind unknown to the caller</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTokenStart()"><!-- --></A><H3> |
| getTokenStart</H3> |
| <PRE> |
| public int <B>getTokenStart</B>()</PRE> |
| <DL> |
| <DD>Returns the character index of the start of the |
| subrange in the source file buffer containing the |
| relevant token being completed. This |
| token is either the identifier or JavaScript language keyword |
| under, or immediately preceding, the original request |
| offset. If the original request offset is not within |
| or immediately after an identifier or keyword, then the |
| position returned is original request offset and the |
| token range is empty. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>character index of token start position (inclusive)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTokenEnd()"><!-- --></A><H3> |
| getTokenEnd</H3> |
| <PRE> |
| public int <B>getTokenEnd</B>()</PRE> |
| <DL> |
| <DD>Returns the character index of the end (exclusive) of the subrange |
| in the source file buffer containing the |
| relevant token. When there is no relevant token, the |
| range is empty |
| (<code>getTokenEnd() == getTokenStart() - 1</code>). |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>character index of token end position (exclusive)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getOffset()"><!-- --></A><H3> |
| getOffset</H3> |
| <PRE> |
| public int <B>getOffset</B>()</PRE> |
| <DL> |
| <DD>Returns the offset position in the source file buffer |
| after which code assist is requested. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>offset position in the source file buffer</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public java.lang.String <B>toString</B>()</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompletionContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/eclipse/wst/jsdt/core/BufferChangedEvent.html" title="class in org.eclipse.wst.jsdt.core"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/eclipse/wst/jsdt/core/CompletionFlags.html" title="class in org.eclipse.wst.jsdt.core"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/eclipse/wst/jsdt/core/CompletionContext.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="CompletionContext.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |