001 package javancss.parser;
002
003 import java.util.*;
004
005 public interface JavaParserInterface
006 {
007 public void parse() throws Exception;
008 public void parseImportUnit() throws Exception;
009
010 public int getNcss();
011
012 public int getLOC();
013
014 // added by SMS
015 public int getJvdc();
016
017 /*public int getTopLevelClasses() {
018 return _topLevelClasses;
019 }*/
020
021 public List/*<FunctionMetric>*/ getFunction();
022
023 /**
024 * @return Top level classes in sorted order
025 */
026 public List/*<ObjectMetric>*/ getObject();
027
028 /**
029 * @return The empty package consists of the name ".".
030 */
031 public Map/*<String,PackageMetric>*/ getPackage();
032
033 public List getImports();
034
035 /**
036 * name, beginLine, ...
037 */
038 public Object[] getPackageObjects();
039
040 /**
041 * if javancss is used with cat *.java a long
042 * input stream might get generated, so line
043 * number information in case of an parse exception
044 * is not very useful.
045 */
046 public String getLastFunction();
047 }