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

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

Introduction

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

The text is from its open source code.

Field

intANONYMOUS_CLASS_DECLARATION
Completion is a declaration of an anonymous class.
intFIELD_REF
Completion is a reference to a field.
intKEYWORD
Completion is a keyword.
intLABEL_REF
Completion is a reference to a label.
intLOCAL_VARIABLE_REF
Completion is a reference to a local variable.
intMETHOD_REF
Completion is a reference to a method.
intMETHOD_DECLARATION
Completion is a declaration of a method.
intPACKAGE_REF
Completion is a reference to a package.
intTYPE_REF
Completion is a reference to a type.
intVARIABLE_DECLARATION
Completion is a declaration of a variable (locals, parameters, fields, etc.).
intPOTENTIAL_METHOD_DECLARATION
Completion is a declaration of a new potential method.
intMETHOD_NAME_REFERENCE
Completion is a reference to a method name.
intANNOTATION_ATTRIBUTE_REF
Completion is a reference to annotation's attribute.
intJAVADOC_FIELD_REF
Completion is a link reference to a field in a javadoc text.
intJAVADOC_METHOD_REF
Completion is a link reference to a method in a javadoc text.
intJAVADOC_TYPE_REF
Completion is a link reference to a type in a javadoc text.
intJAVADOC_VALUE_REF
Completion is a value reference to a static field in a javadoc text.
intJAVADOC_PARAM_REF
Completion is a method argument or a class/method type parameter in javadoc param tag.
intJAVADOC_BLOCK_TAG
Completion is a javadoc block tag.
intJAVADOC_INLINE_TAG
Completion is a javadoc inline tag.
intFIELD_IMPORT
Completion is an import of reference to a static field.
intMETHOD_IMPORT
Completion is an import of reference to a static method.
intTYPE_IMPORT
Completion is an import of reference to a type.
intMETHOD_REF_WITH_CASTED_RECEIVER
Completion is a reference to a method with a casted receiver.
intFIELD_REF_WITH_CASTED_RECEIVER
Completion is a reference to a field with a casted receiver.
intCONSTRUCTOR_INVOCATION
Completion is a reference to a constructor.
intANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION
Completion is a reference of a constructor of an anonymous class.

Method

CompletionProposalcreate(int kind, int completionOffset)
Creates a basic completion proposal.
char[][]findParameterNames(IProgressMonitor monitor)
Finds the method parameter names.
intgetAccessibility()
Returns the accessibility of the proposal.
intgetAdditionalFlags()
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.
intgetCompletionLocation()
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.
intgetFlags()
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.
intgetKind()
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.
intgetReceiverEnd()
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.
intgetReceiverStart()
Returns the character index of the start of the subrange in the source file buffer containing the relevant receiver of the member being completed.
intgetRelevance()
Returns the relative relevance rating of this proposal.
intgetReplaceEnd()
Returns the character index of the end of the subrange in the source file buffer to be replaced by the completion string.
intgetReplaceStart()
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.
intgetTokenEnd()
Returns the character index of the end (exclusive) of the subrange in the source file buffer containing the relevant token.
intgetTokenStart()
Returns the character index of the start of the subrange in the source file buffer containing the relevant token being completed.
booleanisConstructor()
Returns whether this proposal is a constructor.
voidsetAdditionalFlags(int additionalFlags)
Sets the completion flags relevant in the context.
voidsetCompletion(char[] completion)
Sets the proposed sequence of characters to insert into the source file buffer, replacing the characters at the specified source range.
voidsetDeclarationSignature(char[] signature)
Sets the type or package signature or module name (9) of the relevant declaration in the context, or null if none.
voidsetFlags(int flags)
Sets the modifier flags relevant in the context.
voidsetName(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.
voidsetParameterNames(char[][] parameterNames)
Sets the method parameter names.
voidsetReceiverRange(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.
voidsetRelevance(int rating)
Sets the relative relevance rating of this proposal.
voidsetReplaceRange(int startIndex, int endIndex)
Sets the character indices of the subrange in the source file buffer to be replaced by the completion string.
voidsetRequiredProposals(CompletionProposal[] proposals)
Sets the list of required completion proposals, or null if none.
voidsetSignature(char[] signature)
Sets the signature of the method, field type, member type, relevant in the context, or null if none.