| org.netbeans.editor.ext.CompletionQuery
All known Subclasses: org.netbeans.editor.ext.html.HTMLCompletionQuery, org.netbeans.editor.ext.java.JavaCompletionQuery,
CompletionQuery | public interface CompletionQuery (Code) | | Code completion querying support.
author: Miloslav Metelka version: 1.00 |
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 | |
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.
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 thequery. result of the query or null if there's no result. |
|
|