@Component public class UnfinishedModuleNameRecoveryStrategy extends StacktraceFingerprintingCompletionRecoveryStrategy<NoSuchModuleException>
parser| Constructor and Description |
|---|
UnfinishedModuleNameRecoveryStrategy(XDParser parser,
ModuleDefinitionRepository moduleDefinitionRepository)
Construct a new UnfinishedModuleNameRecoveryStrategy given the parser
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProposals(java.lang.String dsl,
NoSuchModuleException exception,
CompletionKind kind,
java.util.List<java.lang.String> proposals)
Perform code completion by adding proposals to the
proposals list. |
shouldTrigger@Autowired public UnfinishedModuleNameRecoveryStrategy(XDParser parser, ModuleDefinitionRepository moduleDefinitionRepository)
parser - the parser used to parse the text the partial module definition.moduleDefinitionRepository - the repository to use for looking up all modules that start with a given name
prefix.public void addProposals(java.lang.String dsl,
NoSuchModuleException exception,
CompletionKind kind,
java.util.List<java.lang.String> proposals)
CompletionRecoveryStrategyproposals list.