| org.netbeans.editor.ext.CompletionQuery
CompletionQuery | public interface CompletionQuery (Code) | | Code completion querying SPI and support.
author: Miloslav Metelka version: 1.01 |
Inner Class :public interface SupportsSpeculativeInvocation | |
Inner Class :public interface Result | |
Inner Class :abstract public static class AbstractResult implements Result | |
Inner Class :public static class DefaultResult extends AbstractResult | |
Inner Class :public static interface ResultItem | |
Inner Class :public static interface ResultItemAssociatedObject | |
query | public Result query(JTextComponent component, int offset, SyntaxSupport support)(Code) | | Perform the query on the given component. The query usually
gets the component's document, the caret position and searches back
to find the last command start. Then it inspects the text up to the caret
position and returns the result.
Implementations must be thread safe (also reentrant) because it can be
called speculatively from multiple threads. This requirement can be removed in future SPI
by passing additional flag marking speculative query. Skeletal implementation
could handle multithreading based on the flag.
Parameters: component - the component to use in this query. Parameters: offset - position in the component's document to which the query willbe performed. Usually it's a caret position. Parameters: support - syntax-support that will be used during resolving of the query. result of the query or null if there's no result. |
|
|