| net.sourceforge.squirrel_sql.client.session.parser.kernel.Completion
All known Subclasses: net.sourceforge.squirrel_sql.client.session.parser.kernel.SQLCompletion,
Completion | public interface Completion (Code) | | requirements of a completion item
|
getCompletion | Completion getCompletion(int position)(Code) | | Find a completion item for the given text position. This method can be overridden by
subclasses to implement the composite pattern. If the object is not a composite, it
should return itself. Otherwise, it can delegate the lookup to its children.
Parameters: position - the caret position at which the completion is requested an appropriate completion object, or null of none available |
getLength | int getLength()(Code) | | the length of the text currently occupied by this completion |
getStart | int getStart()(Code) | | the starting text position |
getText | String getText(int position)(Code) | | return completion text if the completion is fully defined
Parameters: position - the caret position at which the text should be inserted return the completion text to be inserted into the underlying document |
getText | String getText(int position, String option)(Code) | | return completion text which is defined from this object and the derived option
Parameters: position - the caret position at which the text should be inserted Parameters: option - an option string, which was earlier derived from this object return the completion text to be inserted into the underlying document |
hasTextPosition | boolean hasTextPosition()(Code) | | whether this completion is assigned to a specific position within theunderlying document |
isRepeatable | boolean isRepeatable()(Code) | | whether this completion can be used to generate lists of items, e.g. columnsin a SQL select clause |
mustReplace | boolean mustReplace(int position)(Code) | | Parameters: position - the position at which the status should be determined whether the text between the start position and position must be replaced |
|
|