|
Eclipse JDT Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.codeassist.InternalCompletionContext
org.eclipse.jdt.core.CompletionContext
Completion context. Represent the context in which the completion occurs.
This class is not intended to be instantiated or subclassed by clients.
CompletionRequestor.acceptContext(CompletionContext)
Field Summary | |
---|---|
static int |
TOKEN_KIND_NAME
The completion token is a name. |
static int |
TOKEN_KIND_STRING_LITERAL
The completion token is a string literal. |
static int |
TOKEN_KIND_UNKNOWN
The completion token is unknown. |
Fields inherited from class org.eclipse.jdt.internal.codeassist.InternalCompletionContext |
---|
expectedTypesKeys, expectedTypesSignatures, javadoc, offset, token, tokenEnd, tokenKind, tokenStart |
Constructor Summary | |
---|---|
CompletionContext()
|
Method Summary | |
---|---|
char[][] |
getExpectedTypesKeys()
Return keys of expected types of a potential completion proposal at the completion position. |
char[][] |
getExpectedTypesSignatures()
Return signatures of expected types of a potential completion proposal at the completion position. |
int |
getOffset()
Returns the offset position in the source file buffer after which code assist is requested. |
char[] |
getToken()
Returns the completed token. |
int |
getTokenEnd()
Returns the character index of the end (exclusive) of the subrange in the source file buffer containing the relevant token. |
int |
getTokenKind()
Returns the kind of completion token being proposed. |
int |
getTokenStart()
Returns the character index of the start of the subrange in the source file buffer containing the relevant token being completed. |
boolean |
isInJavadoc()
Tell user whether completion takes place in a javadoc comment or not. |
boolean |
isInJavadocFormalReference()
Tell user whether completion takes place in a formal reference of a javadoc tag or not. |
boolean |
isInJavadocText()
Tell user whether completion takes place in text area of a javadoc comment or not. |
String |
toString()
|
Methods inherited from class org.eclipse.jdt.internal.codeassist.InternalCompletionContext |
---|
setExpectedTypesKeys, setExpectedTypesSignatures, setJavadoc, setOffset, setToken, setTokenKind, setTokenRange, setTokenRange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TOKEN_KIND_UNKNOWN
public static final int TOKEN_KIND_NAME
public static final int TOKEN_KIND_STRING_LITERAL
"foo"
or "foo
.
Constructor Detail |
public CompletionContext()
Method Detail |
public boolean isInJavadoc()
public boolean isInJavadocText()
public boolean isInJavadocFormalReference()
public char[][] getExpectedTypesSignatures()
null
if there is no expected types.Signature
public char[][] getExpectedTypesKeys()
null
if there is no expected types.ASTParser.createASTs(ICompilationUnit[], String[], org.eclipse.jdt.core.dom.ASTRequestor, org.eclipse.core.runtime.IProgressMonitor)
public char[] getToken()
null
.
null
public int getTokenKind()
The set of different kinds of completion token is expected to change over time. It is strongly recommended that clients do not assume that the kind is one of the ones they know about, and code defensively for the possibility of unexpected future growth.
TOKEN_KIND
,
or possibly a kind unknown to the callerpublic int getTokenStart()
public int getTokenEnd()
getTokenEnd() == getTokenStart() - 1
).
public int getOffset()
public String toString()
|
Eclipse JDT Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |