use of com.github.sevntu.checkstyle.domain.Dependencies in project methods-distance by sevntu-checkstyle.
the class MethodCallDependencyCheckstyleModule method finishTree.
@Override
public void finishTree(DetailAST rootAST) {
topLevelClass.ifPresent(enclosingClass -> {
consumer.ifPresent(informationConsumer -> {
final Dependencies dependencies = buildDependencies(enclosingClass, methodInvocations);
final String inputFilePath = new File(getFileContents().getFileName()).toURI().getPath();
informationConsumer.accept(inputFilePath, dependencies);
});
});
}
Aggregations