Eclipse JDT
Release 3.1

org.eclipse.jdt.core
Class CompletionContext

java.lang.Object
  extended byorg.eclipse.jdt.internal.codeassist.InternalCompletionContext
      extended byorg.eclipse.jdt.core.CompletionContext

public final class CompletionContext
extends org.eclipse.jdt.internal.codeassist.InternalCompletionContext

Completion context. Represent the context in which the completion occurs.

Since:
3.1
See Also:
CompletionRequestor.acceptContext(CompletionContext)

Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.codeassist.InternalCompletionContext
expectedTypesKeys, expectedTypesSignatures
 
Constructor Summary
CompletionContext()
           
 
Method Summary
 char[][] getExpectedTypesKeys()
          Return keys of expected types of a potential completion proposal at the completion position.
 char[][] getExpectedTypesSignatures()
          Return signatures of expected types of a potential completion proposal at the completion position.
 
Methods inherited from class org.eclipse.jdt.internal.codeassist.InternalCompletionContext
setExpectedTypesKeys, setExpectedTypesSignatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionContext

public CompletionContext()
Method Detail

getExpectedTypesSignatures

public char[][] getExpectedTypesSignatures()
Return signatures of expected types of a potential completion proposal at the completion position. It's not mandatory to a completion proposal to respect this expectation.

Returns:
signatures expected types of a potential completion proposal at the completion position or null if there is no expected types.
See Also:
Signature

getExpectedTypesKeys

public char[][] getExpectedTypesKeys()
Return keys of expected types of a potential completion proposal at the completion position. It's not mandatory to a completion proposal to respect this expectation.

Returns:
keys of expected types of a potential completion proposal at the completion position or null if there is no expected types.
See Also:
ASTParser.createASTs(ICompilationUnit[], String[], org.eclipse.jdt.core.dom.ASTRequestor, org.eclipse.core.runtime.IProgressMonitor)

Eclipse JDT
Release 3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.