Example usage for Java org.eclipse.jdt.core CompletionProposal fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ANONYMOUS_CLASS_DECLARATION Completion is a declaration of an anonymous class. |
int | FIELD_REF Completion is a reference to a field. |
int | KEYWORD Completion is a keyword. |
int | LABEL_REF Completion is a reference to a label. |
int | LOCAL_VARIABLE_REF Completion is a reference to a local variable. |
int | METHOD_REF Completion is a reference to a method. |
int | METHOD_DECLARATION Completion is a declaration of a method. |
int | PACKAGE_REF Completion is a reference to a package. |
int | TYPE_REF Completion is a reference to a type. |
int | VARIABLE_DECLARATION Completion is a declaration of a variable (locals, parameters, fields, etc.). |
int | POTENTIAL_METHOD_DECLARATION Completion is a declaration of a new potential method. |
int | METHOD_NAME_REFERENCE Completion is a reference to a method name. |
int | ANNOTATION_ATTRIBUTE_REF Completion is a reference to annotation's attribute. |
int | JAVADOC_FIELD_REF Completion is a link reference to a field in a javadoc text. |
int | JAVADOC_METHOD_REF Completion is a link reference to a method in a javadoc text. |
int | JAVADOC_TYPE_REF Completion is a link reference to a type in a javadoc text. |
int | JAVADOC_VALUE_REF Completion is a value reference to a static field in a javadoc text. |
int | JAVADOC_PARAM_REF Completion is a method argument or a class/method type parameter in javadoc param tag. |
int | JAVADOC_BLOCK_TAG Completion is a javadoc block tag. |
int | JAVADOC_INLINE_TAG Completion is a javadoc inline tag. |
int | FIELD_IMPORT Completion is an import of reference to a static field. |
int | METHOD_IMPORT Completion is an import of reference to a static method. |
int | TYPE_IMPORT Completion is an import of reference to a type. |
int | METHOD_REF_WITH_CASTED_RECEIVER Completion is a reference to a method with a casted receiver. |
int | FIELD_REF_WITH_CASTED_RECEIVER Completion is a reference to a field with a casted receiver. |
int | CONSTRUCTOR_INVOCATION Completion is a reference to a constructor. |
int | ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION Completion is a reference of a constructor of an anonymous class. |
CompletionProposal | create(int kind, int completionOffset) Creates a basic completion proposal. |
char[][] | findParameterNames(IProgressMonitor monitor) Finds the method parameter names. |
int | getAccessibility() Returns the accessibility of the proposal. |
int | getAdditionalFlags() Returns the completion flags relevant in the context, or CompletionFlags.Default if none. |
char[] | getCompletion() Returns the proposed sequence of characters to insert into the source file buffer, replacing the characters at the specified source range. |
int | getCompletionLocation() Returns the character index in the source file buffer where source completion was requested (the offset parameter to ICodeAssist.codeComplete minus one). |
char[] | getDeclarationKey() Returns the key of the relevant declaration in the context, or null if none. |
char[] | getDeclarationSignature() Returns the type signature or package name or module name (9) of the relevant declaration in the context, or null if none. |
int | getFlags() Returns the modifier flags relevant in the context, or Flags.AccDefault if none. |
char[] | getKey() Returns the key relevant in the context, or null if none. |
int | getKind() Returns the kind of completion being proposed. |
char[] | getName() Returns the simple name of the method, field, member, or variable relevant in the context, or null if none. |
int | getReceiverEnd() Returns the character index of the end (exclusive) of the subrange in the source file buffer containing the relevant receiver of the member being completed. |
char[] | getReceiverSignature() Returns the type signature or package name of the relevant receiver in the context, or null if none. |
int | getReceiverStart() Returns the character index of the start of the subrange in the source file buffer containing the relevant receiver of the member being completed. |
int | getRelevance() Returns the relative relevance rating of this proposal. |
int | getReplaceEnd() Returns the character index of the end of the subrange in the source file buffer to be replaced by the completion string. |
int | getReplaceStart() Returns the character index of the start of the subrange in the source file buffer to be replaced by the completion string. |
CompletionProposal[] | getRequiredProposals() Returns the required completion proposals. |
char[] | getSignature() Returns the signature of the method or type relevant in the context, or null if none. |
int | getTokenEnd() Returns the character index of the end (exclusive) of the subrange in the source file buffer containing the relevant token. |
int | getTokenStart() Returns the character index of the start of the subrange in the source file buffer containing the relevant token being completed. |
boolean | isConstructor() Returns whether this proposal is a constructor. |
void | setAdditionalFlags(int additionalFlags) Sets the completion flags relevant in the context. |
void | setCompletion(char[] completion) Sets the proposed sequence of characters to insert into the source file buffer, replacing the characters at the specified source range. |
void | setDeclarationSignature(char[] signature) Sets the type or package signature or module name (9) of the relevant declaration in the context, or null if none. |
void | setFlags(int flags) Sets the modifier flags relevant in the context. |
void | setName(char[] name) Sets the simple name of the method (type simple name for constructor), field, member, or variable relevant in the context, or null if none. |
void | setParameterNames(char[][] parameterNames) Sets the method parameter names. |
void | setReceiverRange(int startIndex, int endIndex) Sets the character indices of the subrange in the source file buffer containing the relevant receiver of the member being completed. |
void | setRelevance(int rating) Sets the relative relevance rating of this proposal. |
void | setReplaceRange(int startIndex, int endIndex) Sets the character indices of the subrange in the source file buffer to be replaced by the completion string. |
void | setRequiredProposals(CompletionProposal[] proposals) Sets the list of required completion proposals, or null if none. |
void | setSignature(char[] signature) Sets the signature of the method, field type, member type, relevant in the context, or null if none. |