@Component public class AddModuleOptionsExpansionStrategy extends java.lang.Object implements CompletionExpansionStrategy
Constructor and Description |
---|
AddModuleOptionsExpansionStrategy(ModuleRegistry moduleRegistry,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct a new AddModuleOptionsExpansionStrategy for use in detecting missing module options.
|
Modifier and Type | Method and Description |
---|---|
void |
addProposals(java.lang.String text,
java.util.List<ModuleDescriptor> parseResult,
CompletionKind kind,
int detailLevel,
java.util.List<java.lang.String> proposals)
Perform code completion by adding proposals to the
proposals list. |
boolean |
shouldTrigger(java.lang.String text,
java.util.List<ModuleDescriptor> parseResult,
CompletionKind kind)
Whether this completion should be triggered.
|
@Autowired public AddModuleOptionsExpansionStrategy(ModuleRegistry moduleRegistry, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
moduleRegistry
- the registry to check for the existence of the last entered module
definition.moduleOptionsMetadataResolver
- the metadata resolver to use in order to create a list of proposals for
module options that have not yet been specified.public boolean shouldTrigger(java.lang.String text, java.util.List<ModuleDescriptor> parseResult, CompletionKind kind)
CompletionExpansionStrategy
shouldTrigger
in interface CompletionExpansionStrategy
public void addProposals(java.lang.String text, java.util.List<ModuleDescriptor> parseResult, CompletionKind kind, int detailLevel, java.util.List<java.lang.String> proposals)
CompletionExpansionStrategy
proposals
list.addProposals
in interface CompletionExpansionStrategy