| java.lang.Object org.eclipse.jdt.internal.codeassist.impl.Engine org.eclipse.jdt.internal.codeassist.CompletionEngine
Method Summary | |
public void | acceptPackage(char[] packageName) One result of the search consists of a new package. | public void | acceptType(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, int modifiers, AccessRestriction accessRestriction) One result of the search consists of a new type. | public void | acceptUnresolvedName(char[] name) | public void | complete(IType type, char[] snippet, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic) | public void | complete(ICompilationUnit sourceUnit, int completionPosition, int pos) Ask the engine to compute a completion at the specified position
of the given compilation unit.
No return
completion results are answered through a requestor.
Parameters: sourceUnit - org.eclipse.jdt.internal.compiler.env.ICompilationUnitthe source of the current compilation unit. Parameters: completionPosition - inta position in the source where the completion is taking place. | int | computeBaseRelevance() | int | computeRelevanceForCaseMatching(char[] token, char[] proposalName) | int | computeRelevanceForInterestingProposal() | int | computeRelevanceForQualification(boolean prefixRequired) | int | computeRelevanceForResolution() | int | computeRelevanceForResolution(boolean isResolved) | int | computeRelevanceForRestrictions(int accessRuleKind) | public static char[] | createMethodSignature(char[][] parameterPackageNames, char[][] parameterTypeNames, char[] returnPackagename, char[] returnTypeName) | public static char[] | createMethodSignature(char[][] parameterPackageNames, char[][] parameterTypeNames, char[] returnTypeSignature) | public static char[] | createNonGenericTypeSignature(char[] qualifiedPackageName, char[] qualifiedTypeName) | protected CompletionProposal | createProposal(int kind, int completionOffset) | public static char[] | createTypeSignature(char[] qualifiedPackageName, char[] qualifiedTypeName) | protected void | findFieldsAndMethods(char[] token, TypeBinding receiverType, Scope scope, InvocationSite invocationSite, Scope invocationScope, boolean implicitCall, boolean superCall, Binding[] missingElements, int[] missingElementsStarts, int[] missingElementsEnds, boolean missingElementsHaveProblems) | public AssistParser | getParser() | protected boolean | hasPossibleAnnotationTarget(TypeBinding typeBinding, Scope scope) | protected void | printDebug(CategorizedProblem error) | protected void | printDebug(CompletionProposal proposal) | protected void | reset() |
BASE_TYPES_LENGTH | final static int BASE_TYPES_LENGTH(Code) | | |
BASE_TYPES_WITHOUT_VOID_LENGTH | final static int BASE_TYPES_WITHOUT_VOID_LENGTH(Code) | | |
BASE_TYPE_NAMES | final static char[][] BASE_TYPE_NAMES(Code) | | |
BASE_TYPE_NAMES_WITHOUT_VOID | final static char[][] BASE_TYPE_NAMES_WITHOUT_VOID(Code) | | |
DEBUG | public static boolean DEBUG(Code) | | |
NO_TYPE_COMPLETION_ON_EMPTY_TOKEN | final public static boolean NO_TYPE_COMPLETION_ON_EMPTY_TOKEN(Code) | | |
PERF | public static boolean PERF(Code) | | |
THIS | final static char[] THIS(Code) | | |
THROWS | final static char[] THROWS(Code) | | |
assistNodeCanBeSingleMemberAnnotation | boolean assistNodeCanBeSingleMemberAnnotation(Code) | | |
assistNodeInJavadoc | int assistNodeInJavadoc(Code) | | |
assistNodeIsAnnotation | boolean assistNodeIsAnnotation(Code) | | |
assistNodeIsClass | boolean assistNodeIsClass(Code) | | |
assistNodeIsConstructor | boolean assistNodeIsConstructor(Code) | | |
assistNodeIsEnum | boolean assistNodeIsEnum(Code) | | |
assistNodeIsException | boolean assistNodeIsException(Code) | | |
assistNodeIsInterface | boolean assistNodeIsInterface(Code) | | |
assistNodeIsSuperType | boolean assistNodeIsSuperType(Code) | | |
classField | final static char[] classField(Code) | | |
cloneMethod | final static char[] cloneMethod(Code) | | |
completionToken | char[] completionToken(Code) | | |
expectedTypesFilter | int expectedTypesFilter(Code) | | |
expectedTypesPtr | int expectedTypesPtr(Code) | | |
fileName | char[] fileName(Code) | | |
forbbidenBindingsFilter | int forbbidenBindingsFilter(Code) | | |
forbbidenBindingsPtr | int forbbidenBindingsPtr(Code) | | |
hasJavaLangObjectAsExpectedType | boolean hasJavaLangObjectAsExpectedType(Code) | | |
insideQualifiedReference | boolean insideQualifiedReference(Code) | | |
javadocTagPosition | int javadocTagPosition(Code) | | |
lengthField | final static char[] lengthField(Code) | | |
noProposal | boolean noProposal(Code) | | |
problemFactory | CompletionProblemFactory problemFactory(Code) | | |
qualifiedCompletionToken | char[] qualifiedCompletionToken(Code) | | |
resolvingImports | boolean resolvingImports(Code) | | |
resolvingStaticImports | boolean resolvingStaticImports(Code) | | |
startPositionactualCompletionPositionendPositionoffset | int startPositionactualCompletionPositionendPositionoffset(Code) | | |
targetedElement | long targetedElement(Code) | | |
uninterestingBindingsPtr | int uninterestingBindingsPtr(Code) | | |
CompletionEngine | public CompletionEngine(SearchableEnvironment nameEnvironment, CompletionRequestor requestor, Map settings, IJavaProject javaProject)(Code) | | The CompletionEngine is responsible for computing source completions.
It requires a searchable name environment, which supports some
specific search APIs, and a requestor to feed back the results to a UI.
Parameters: nameEnvironment - org.eclipse.jdt.internal.codeassist.ISearchableNameEnvironmentused to resolve type/package references and search for types/packagesbased on partial names. Parameters: requestor - org.eclipse.jdt.internal.codeassist.ICompletionRequestorsince the engine might produce answers of various forms, the engine is associated with a requestor able to accept all possible completions. Parameters: settings - java.util.Mapset of options used to configure the code assist engine. |
acceptPackage | public void acceptPackage(char[] packageName)(Code) | | One result of the search consists of a new package.
NOTE - All package names are presented in their readable form:
Package names are in the form "a.b.c".
The default package is represented by an empty array.
|
acceptType | public void acceptType(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, int modifiers, AccessRestriction accessRestriction)(Code) | | One result of the search consists of a new type.
NOTE - All package and type names are presented in their readable form:
Package names are in the form "a.b.c".
Nested type names are in the qualified form "A.I".
The default package is represented by an empty array.
|
acceptUnresolvedName | public void acceptUnresolvedName(char[] name)(Code) | | |
complete | public void complete(IType type, char[] snippet, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic)(Code) | | |
complete | public void complete(ICompilationUnit sourceUnit, int completionPosition, int pos)(Code) | | Ask the engine to compute a completion at the specified position
of the given compilation unit.
No return
completion results are answered through a requestor.
Parameters: sourceUnit - org.eclipse.jdt.internal.compiler.env.ICompilationUnitthe source of the current compilation unit. Parameters: completionPosition - inta position in the source where the completion is taking place. This position is relative to the source provided. |
computeBaseRelevance | int computeBaseRelevance()(Code) | | |
computeRelevanceForCaseMatching | int computeRelevanceForCaseMatching(char[] token, char[] proposalName)(Code) | | |
computeRelevanceForInterestingProposal | int computeRelevanceForInterestingProposal()(Code) | | |
computeRelevanceForQualification | int computeRelevanceForQualification(boolean prefixRequired)(Code) | | |
computeRelevanceForResolution | int computeRelevanceForResolution()(Code) | | |
computeRelevanceForResolution | int computeRelevanceForResolution(boolean isResolved)(Code) | | |
computeRelevanceForRestrictions | int computeRelevanceForRestrictions(int accessRuleKind)(Code) | | |
createMethodSignature | public static char[] createMethodSignature(char[][] parameterPackageNames, char[][] parameterTypeNames, char[] returnPackagename, char[] returnTypeName)(Code) | | |
createMethodSignature | public static char[] createMethodSignature(char[][] parameterPackageNames, char[][] parameterTypeNames, char[] returnTypeSignature)(Code) | | |
createNonGenericTypeSignature | public static char[] createNonGenericTypeSignature(char[] qualifiedPackageName, char[] qualifiedTypeName)(Code) | | |
createTypeSignature | public static char[] createTypeSignature(char[] qualifiedPackageName, char[] qualifiedTypeName)(Code) | | |
findFieldsAndMethods | protected void findFieldsAndMethods(char[] token, TypeBinding receiverType, Scope scope, InvocationSite invocationSite, Scope invocationScope, boolean implicitCall, boolean superCall, Binding[] missingElements, int[] missingElementsStarts, int[] missingElementsEnds, boolean missingElementsHaveProblems)(Code) | | |
hasPossibleAnnotationTarget | protected boolean hasPossibleAnnotationTarget(TypeBinding typeBinding, Scope scope)(Code) | | |
reset | protected void reset()(Code) | | |
|
|