@Component public class UnfinishedModuleNameRecoveryStrategy extends StacktraceFingerprintingCompletionRecoveryStrategy<NoSuchModuleException>
parser
Constructor and Description |
---|
UnfinishedModuleNameRecoveryStrategy(XDParser parser,
ModuleRegistry moduleRegistry)
Construct a new UnfinishedModuleNameRecoveryStrategy given the parser
|
Modifier and Type | Method and Description |
---|---|
void |
addProposals(java.lang.String dsl,
NoSuchModuleException exception,
CompletionKind kind,
int detailLevel,
java.util.List<java.lang.String> proposals)
Perform code completion by adding proposals to the
proposals list. |
shouldTrigger
@Autowired public UnfinishedModuleNameRecoveryStrategy(XDParser parser, ModuleRegistry moduleRegistry)
parser
- the parser used to parse the text the partial module definition.moduleRegistry
- the registry 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, int detailLevel, java.util.List<java.lang.String> proposals)
CompletionRecoveryStrategy
proposals
list.