Class stats

java.lang.Object
fr.formiko.usuel.stats

public class stats extends Object
A tool class about statistic.
Author:
Hydrolien
  • 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

      public static GString getStats(String filePath, boolean raccourcir)
      Get all code stats as a GString.
    • statsJavadoc

      public static void statsJavadoc(String filePath, boolean raccourcir)
      Write the stats of javadoc comments in stats.txt.
    • statsJavadoc

      public static void statsJavadoc(String filePath)
    • toStatJd

      public static String toStatJd(GInt gi, boolean addToGlobal)
      calculate the %age of commented fonction in a file.
    • toStatJd

      public static String toStatJd(GInt gi)
    • toStatTst

      public static String toStatTst(GInt gi)
      calculate the %age of tested fonction in a file.
    • toStatInfo

      public static String toStatInfo(GInt gi, GInt gi2, boolean addToGlobal)
      calculate the number of class, public, ø, protected, private longue fonction.
    • toStatInfo

      public static String toStatInfo(GInt gi, GInt gi2)
    • numberOfLines

      public static String numberOfLines(int nbrOfLine)
      Count the number of ligne in a file an add it to the statistic info.
    • completToK

      private static String completToK(String toComplet, int k)
      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 complet
      k - max char