package org.eclipse.jdt.core; /* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ import org.eclipse.jdt.internal.core.*; /** * Common protocol for Java elements that support source code assist and code * resolve. *
* This interface is not intended to be implemented by clients. *
*/ public interface ICodeAssist { /** * Performs code completion at the given offset position in this compilation unit, * reporting results to the given completion requestor. Theoffset
* is the 0-based index of the character, after which code assist is desired.
* An offset
of -1 indicates to code assist at the beginning of this
* compilation unit.
*
* @exception JavaModelException if code assist could not be performed. Reasons include:requestor
is null
*/
void codeComplete(int offset, ICodeCompletionRequestor requestor) throws JavaModelException;
/**
* Performs code selection on the given selected text in this compilation unit,
* reporting results to the given selection requestor. The offset
* is the 0-based index of the first selected character. The length
* is the number of selected characters.
*
* @exception JavaModelException if code resolve could not be performed. Reasons include:
*