Package fr.formiko.usuel
Class stats
java.lang.Object
fr.formiko.usuel.stats
A tool class about statistic.
- Author:
 - Hydrolien
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intprivate static char - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static StringcompletToK(String toComplet, int k)Add enoth space to have a String length of k, or add the spliter.static GStringGet all code stats as a GString.static StringnumberOfLines(int nbrOfLine)Count the number of ligne in a file an add it to the statistic info.static voidsetOnlyLastLine(boolean b)static voidsetSpliter(char c)static voidstatsJavadoc(String filePath)static voidstatsJavadoc(String filePath, boolean raccourcir)Write the stats of javadoc comments in stats.txt.static StringtoStatInfo(GInt gi, GInt gi2)static StringtoStatInfo(GInt gi, GInt gi2, boolean addToGlobal)calculate the number of class, public, ø, protected, private longue fonction.static Stringstatic Stringcalculate the %age of commented fonction in a file.static Stringcalculate the %age of tested fonction in a file. 
- 
Field Details
- 
sommeDesComG
public static int sommeDesComG - 
sommeDesFctLG
public static int sommeDesFctLG - 
sommeDesClassG
public static int sommeDesClassG - 
sommeDesFctLPuG
public static int sommeDesFctLPuG - 
sommeDesFctLPoG
public static int sommeDesFctLPoG - 
sommeDesFctLPrG
public static int sommeDesFctLPrG - 
sommeDesFctCG
public static int sommeDesFctCG - 
sommeNbrDeLigneG
public static int sommeNbrDeLigneG - 
onlyLastLine
private static boolean onlyLastLine - 
spliter
private static char spliter 
 - 
 - 
Constructor Details
- 
stats
public stats() 
 - 
 - 
Method Details
- 
setSpliter
public static void setSpliter(char c) - 
setOnlyLastLine
public static void setOnlyLastLine(boolean b) - 
getStats
Get all code stats as a GString. - 
statsJavadoc
Write the stats of javadoc comments in stats.txt. - 
statsJavadoc
 - 
toStatJd
calculate the %age of commented fonction in a file. - 
toStatJd
 - 
toStatTst
calculate the %age of tested fonction in a file. - 
toStatInfo
calculate the number of class, public, ø, protected, private longue fonction. - 
toStatInfo
 - 
numberOfLines
Count the number of ligne in a file an add it to the statistic info. - 
completToK
Add enoth space to have a String length of k, or add the spliter. We need to add several ' ' or 1 spliter.- Parameters:
 toComplet- String to completk- max char
 
 -