View Javadoc
1   package javancss.parser;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import javancss.FunctionMetric;
7   import javancss.ObjectMetric;
8   import javancss.PackageMetric;
9   
10  public interface JavaParserInterface
11  {
12      void parse() throws Exception;
13  
14      void parseImportUnit() throws Exception;
15  
16      int getNcss();
17  
18      int getLOC();
19  
20      // added by SMS
21      int getJvdc();
22  
23      /*public int getTopLevelClasses() {
24        return _topLevelClasses;
25        }*/
26  
27      List<FunctionMetric> getFunction();
28  
29      /**
30       * @return Top level classes in sorted order
31       */
32      List<ObjectMetric> getObject();
33  
34      /**
35       * @return The empty package consists of the name ".".
36       */
37      Map<String, PackageMetric> getPackage();
38  
39      List<Object[]> getImports();
40  
41      /**
42       * name, beginLine, ...
43       */
44      Object[] getPackageObjects();
45  
46      /**
47       * if javancss is used with cat *.java a long
48       * input stream might get generated, so line
49       * number information in case of an parse exception
50       * is not very useful.
51       */
52      String getLastFunction();
53  }