public class CsccRecommender extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
protected |
CsccRecommender(MethodInvocationIndex methodInvocationIndex,
ContextExtractor contextExtractor) |
| Modifier and Type | Method and Description |
|---|---|
void |
recommendForAllInvocationsInAvailableContexts(ContextEvaluationStatistics statistics)
Uses the specified index directory to perform a recommendation for every method invocation
within the projects provided in the contexts dataset.
|
List<RecommendationResult> |
recommendMethods(cc.kave.commons.model.events.completionevents.CompletionEvent completionEvent)
Recommend method names for a given KaVe method completion event based on the specified index
directory.
|
@Inject protected CsccRecommender(MethodInvocationIndex methodInvocationIndex, ContextExtractor contextExtractor)
public List<RecommendationResult> recommendMethods(cc.kave.commons.model.events.completionevents.CompletionEvent completionEvent)
completionEvent - a KaVE method completion event.IllegalStateException - if the last selected proposal of the completion event is
null or is not a IMethodName.public void recommendForAllInvocationsInAvailableContexts(ContextEvaluationStatistics statistics)
statistics - used to log overall recommendation statistics.Copyright © 2019 com.github.svstoll. All rights reserved.