@Component public class UnfinishedOptionNameRecoveryStrategy extends StacktraceFingerprintingCompletionRecoveryStrategy<CheckpointedStreamDefinitionException>
parser
Constructor and Description |
---|
UnfinishedOptionNameRecoveryStrategy(XDParser parser,
ModuleDefinitionRepository moduleDefinitionRepository,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct a new UnfinishedOptionNameRecoveryStrategy given the parser
|
Modifier and Type | Method and Description |
---|---|
void |
addProposals(java.lang.String dsl,
CheckpointedStreamDefinitionException 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 UnfinishedOptionNameRecoveryStrategy(XDParser parser, ModuleDefinitionRepository moduleDefinitionRepository, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
parser
- the parser used to parse the text the partial module definition.moduleDefinitionRepository
- the repository 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 void addProposals(java.lang.String dsl, CheckpointedStreamDefinitionException exception, CompletionKind kind, int detailLevel, java.util.List<java.lang.String> proposals)
CompletionRecoveryStrategy
proposals
list.