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 boolean
static int
static int
static int
static int
static int
static int
static int
static int
private static char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
completToK(String toComplet, int k)
Add enoth space to have a String length of k, or add the spliter.static GString
Get all code stats as a GString.static String
numberOfLines(int nbrOfLine)
Count the number of ligne in a file an add it to the statistic info.static void
setOnlyLastLine(boolean b)
static void
setSpliter(char c)
static void
statsJavadoc(String filePath)
static void
statsJavadoc(String filePath, boolean raccourcir)
Write the stats of javadoc comments in stats.txt.static String
toStatInfo(GInt gi, GInt gi2)
static String
toStatInfo(GInt gi, GInt gi2, boolean addToGlobal)
calculate the number of class, public, ø, protected, private longue fonction.static String
static String
calculate the %age of commented fonction in a file.static String
calculate 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
-