@Component public class EmptyStartYieldsModulesRecoveryStrategy extends StacktraceFingerprintingCompletionRecoveryStrategy<CheckpointedStreamDefinitionException>
parser
Constructor and Description |
---|
EmptyStartYieldsModulesRecoveryStrategy(XDParser parser,
ModuleDefinitionRepository moduleDefinitionRepository)
Construct a new EmptyStartYieldsModulesRecoveryStrategy given the parser and ModuleDefinition repository.
|
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 EmptyStartYieldsModulesRecoveryStrategy(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 of a given type.public void addProposals(java.lang.String dsl, CheckpointedStreamDefinitionException exception, CompletionKind kind, int detailLevel, java.util.List<java.lang.String> proposals)
CompletionRecoveryStrategy
proposals
list.