public void addClass(@DottedClassName String className,@CheckForNull String sourceFile,boolean isInterface,int size,boolean updatePackageStats){
  if (!hasClassStats) {
    totalClasses=0;
    totalSize=0;
  }
  hasClassStats=true;
  String packageName;
  int lastDot=className.lastIndexOf('.');
  if (lastDot < 0) {
    packageName="";
  }
 else {
    packageName=className.substring(0,lastDot);
  }
  PackageStats stat=getPackageStats(packageName);
  stat.addClass(className,sourceFile,isInterface,size,updatePackageStats);
  totalClasses++;
  totalSize+=size;
  totalClassesFromPackageStats=0;
  totalSizeFromPackageStats=0;
}

public void addClass ( @ DottedClassName String className , @ CheckForNull String sourceFile , boolean isInterface , int size , boolean updatePackageStats ) { if ( ! hasClassStats ) { totalClasses = 0 ; totalSize = 0 ; } hasClassStats = true ; String packageName ; int lastDot = className . lastIndexOf ( '.' ) ; if ( lastDot < 0 ) { packageName = "" ; } else { packageName = className . substring ( 0 , lastDot ) ; } PackageStats stat = getPackageStats ( packageName ) ; stat . addClass ( className , sourceFile , isInterface , size , updatePackageStats ) ; totalClasses ++ ; totalSize += size ; totalClassesFromPackageStats = 0 ; totalSizeFromPackageStats = 0 ; }
report that a class has been analyzed .
