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