Java org.eclipse.jdt.core CompletionContext fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core CompletionContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core CompletionContext.

The text is from its open source code.

Field

intTL_MEMBER_START
The completed token is the first token of a member declaration.
e.g.
intTL_STATEMENT_START
The completed token is the first token of a statement.
e.g.
intTOKEN_KIND_NAME
The completion token is a name.
intTOKEN_KIND_STRING_LITERAL
The completion token is a string literal.

Constructor

Method

IJavaElementgetEnclosingElement()
Returns the innermost enclosing Java element which contains the completion location or null if this element cannot be computed.
intgetOffset()
Returns the offset position in the source file buffer after which code assist is requested.
char[]getToken()
Returns the completed token.
intgetTokenEnd()
Returns the character index of the end (exclusive) of the subrange in the source file buffer containing the relevant token.
intgetTokenKind()
Returns the kind of completion token being proposed.
intgetTokenLocation()
Returns the location of completion token being proposed.
intgetTokenStart()
Returns the character index of the start of the subrange in the source file buffer containing the relevant token being completed.
booleanisExtended()
Returns whether this completion context is an extended context.
booleanisInJavadoc()
Tell user whether completion takes place in a javadoc comment or not.