|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompletionQuery
Code completion querying SPI and support.
Nested Class Summary | |
---|---|
static class |
CompletionQuery.AbstractResult
The very basic funztionality of Result is implemented by this class, but parts general enough to not need to be overriden. |
static class |
CompletionQuery.AbstractResultItem
A class providing generic, nearly full implementation of ResultItem |
static class |
CompletionQuery.DefaultResult
Full implementation of Result, managing substitution of the text and finding and substituting common prefix of items |
static class |
CompletionQuery.DefaultResultItem
|
static interface |
CompletionQuery.Result
Result of the query or expression evaluation. |
static interface |
CompletionQuery.ResultItem
An interface used as an item of List returned by CompletionQuery.Result.getData() Such items are then able to their part in Completion process themselves |
static interface |
CompletionQuery.ResultItemAssociatedObject
An interface allowing to obtain the object carrying the actual data associated with the result item. |
static interface |
CompletionQuery.SupportsSpeculativeInvocation
Deprecated. It is a workaround. It's suggested that providers should wait for new completion query SPI that should better support speculative queries, partial results, result cancellation and result narrowing. Implement only if it's simple. |
Method Summary | |
---|---|
CompletionQuery.Result |
query(JTextComponent component,
int offset,
SyntaxSupport support)
Perform the query on the given component. |
Method Detail |
---|
CompletionQuery.Result query(JTextComponent component, int offset, SyntaxSupport support)
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.
component
- the component to use in this query.offset
- position in the component's document to which the query will
be performed. Usually it's a caret position.support
- syntax-support that will be used during resolving of the query.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |