Class AppsAfterPipeRecoveryStrategy
java.lang.Object
org.springframework.cloud.dataflow.completion.StacktraceFingerprintingRecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.CheckPointedParseException>
org.springframework.cloud.dataflow.completion.AppsAfterPipeRecoveryStrategy
- All Implemented Interfaces:
RecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.CheckPointedParseException>
public class AppsAfterPipeRecoveryStrategy
extends StacktraceFingerprintingRecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.CheckPointedParseException>
Provides completions for the case where the user has entered a pipe symbol and a app
reference is expected next.
- Author:
- Eric Bottard, Mark Fisher
-
Field Summary
Fields inherited from class org.springframework.cloud.dataflow.completion.StacktraceFingerprintingRecoveryStrategy
streamDefinitionService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProposals
(String dsl, org.springframework.cloud.dataflow.core.dsl.CheckPointedParseException exception, int detailLevel, List<CompletionProposal> collector) Perform code completion by adding proposals to theproposals
list.Methods inherited from class org.springframework.cloud.dataflow.completion.StacktraceFingerprintingRecoveryStrategy
shouldTrigger
-
Method Details
-
addProposals
public void addProposals(String dsl, org.springframework.cloud.dataflow.core.dsl.CheckPointedParseException exception, int detailLevel, List<CompletionProposal> collector) Description copied from interface:RecoveryStrategy
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]collector
- the list of completion proposals to show the user
-