E
- the kind of exception that is intercepted during parsingpublic interface RecoveryStrategy<E extends Exception>
Modifier and Type | Method and Description |
---|---|
void |
addProposals(String dsl,
E exception,
int detailLevel,
List<CompletionProposal> proposals)
Perform code completion by adding proposals to the
proposals list. |
boolean |
shouldTrigger(String dslStart,
Exception exception)
Whether this completion should be triggered.
|
boolean shouldTrigger(String dslStart, Exception exception)
dslStart
- the partial DSL textexception
- the exception thrown when parsing the DSL textvoid addProposals(String dsl, E exception, int detailLevel, List<CompletionProposal> proposals)
proposals
list.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 userCopyright © 2024 Pivotal Software, Inc.. All rights reserved.