Interface RecoveryStrategy<E extends Exception>
- Type Parameters:
E
- the kind of exception that is intercepted during parsing
- All Known Implementing Classes:
AppsAfterDoublePipeRecoveryStrategy
,AppsAfterPipeRecoveryStrategy
,ConfigurationPropertyValueHintRecoveryStrategy
,ConfigurationPropertyValueHintTaskRecoveryStrategy
,StacktraceFingerprintingRecoveryStrategy
,StacktraceFingerprintingTaskRecoveryStrategy
,TapOnDestinationRecoveryStrategy
,UnfinishedConfigurationPropertyNameRecoveryStrategy
,UnfinishedConfigurationPropertyNameTaskRecoveryStrategy
public interface RecoveryStrategy<E extends Exception>
Used to provide completions on ill-formed stream definitions, after an initial (failed)
parse.
- Author:
- Eric Bottard
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProposals
(String dsl, E exception, int detailLevel, List<CompletionProposal> proposals) Perform code completion by adding proposals to theproposals
list.boolean
shouldTrigger
(String dslStart, Exception exception) Whether this completion should be triggered.
-
Method Details
-
shouldTrigger
Whether this completion should be triggered.- Parameters:
dslStart
- the partial DSL textexception
- the exception thrown when parsing the DSL text- Returns:
- if proposals to complete the DSL should be provided
-
addProposals
Perform code completion by adding proposals to theproposals
list.- Parameters:
dsl
- the partial DSL textexception
- the exception thrown when parsing the DSL textdetailLevel
- an integer describing the level of detail to include in proposal, starting at 1. Higher values request more detail, with values typically in the range [1..5]proposals
- the list of completion proposals to show the user
-