@Service
@Lazy
public class CompletionProvider
extends java.lang.Object
Constructor and Description |
---|
CompletionProvider(XDParser parser,
java.util.List<CompletionRecoveryStrategy<? extends java.lang.Exception>> completionRecoveryStrategies,
java.util.List<CompletionExpansionStrategy> completionExpansionStrategies)
Construct a new CompletionProvider given a list of recovery strategies and expansion strategies.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
complete(CompletionKind kind,
java.lang.String start,
int detailLevel) |
static boolean |
shouldShowOption(ModuleOption option,
int detailLevel) |
@Autowired public CompletionProvider(XDParser parser, java.util.List<CompletionRecoveryStrategy<? extends java.lang.Exception>> completionRecoveryStrategies, java.util.List<CompletionExpansionStrategy> completionExpansionStrategies)
parser
- the parser used to parse the text the partial module definition.completionRecoveryStrategies
- list of strategies to apply when an exception was thrown during parsing.completionExpansionStrategies
- list of strategies to apply for adding additional module options completion
suggestions.public static boolean shouldShowOption(ModuleOption option, int detailLevel)
public java.util.List<java.lang.String> complete(CompletionKind kind, java.lang.String start, int detailLevel)