@Component public class EmptyStartYieldsModulesRecoveryStrategy extends StacktraceFingerprintingCompletionRecoveryStrategy<CheckpointedStreamDefinitionException>
parser
Constructor and Description |
---|
EmptyStartYieldsModulesRecoveryStrategy(XDParser parser,
ModuleRegistry moduleRegistry)
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, ModuleRegistry moduleRegistry)
parser
- the parser used to parse the text the partial module definition.moduleRegistry
- the registry 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.