Example usage for Java org.eclipse.jdt.core CompletionContext fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TL_MEMBER_START The completed token is the first token of a member declaration. e.g. |
int | TL_STATEMENT_START The completed token is the first token of a statement. e.g. |
int | TOKEN_KIND_NAME The completion token is a name. |
int | TOKEN_KIND_STRING_LITERAL The completion token is a string literal. |
IJavaElement | getEnclosingElement() Returns the innermost enclosing Java element which contains the completion location or null if this element cannot be computed. |
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 | getTokenLocation() Returns the location 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 | isExtended() Returns whether this completion context is an extended context. |
boolean | isInJavadoc() Tell user whether completion takes place in a javadoc comment or not. |