Here are the examples of the java api class com.google.classyshark.silverghost.exporter.MethodCountExporter taken from open source projects.
1. SilverGhostFacade#inspectPackages()
Project: android-classyshark
File: SilverGhostFacade.java
File: SilverGhostFacade.java
public static void inspectPackages(List<String> args) { String fileName = args.get(1); File file = new File(fileName); if (!file.exists()) { System.err.printf("File '%s' does not exist", fileName); return; } RootBuilder rootBuilder = new RootBuilder(); MethodCountExporter methodCountExporter = new TreeMethodCountExporter(new PrintWriter(System.out)); if (args.size() > 2) { for (int i = 2; i < args.size(); i++) { if (args.get(i).equals("-flat")) { methodCountExporter = new FlatMethodCountExporter(new PrintWriter(System.out)); } } } ClassNode rootNode = rootBuilder.fillClassesWithMethods(fileName); methodCountExporter.exportMethodCounts(rootNode); }