Class ParserUtils.FinderOfLineComment

java.lang.Object
caseine.publication.ParserUtils.Finder
caseine.publication.ParserUtils.FinderOfLineComment
Enclosing class:
ParserUtils

public static class ParserUtils.FinderOfLineComment extends ParserUtils.Finder
Pour extraire tous les LineComment
Author:
Yvan Maillot <yvan.maillot@uha.fr>
  • Constructor Details

    • FinderOfLineComment

      public FinderOfLineComment(Method m)
    • FinderOfLineComment

      public FinderOfLineComment(Class<?> c)
    • FinderOfLineComment

      public FinderOfLineComment(Class<?> c, boolean deep)
    • FinderOfLineComment

      public FinderOfLineComment(Method m, boolean deep)
    • FinderOfLineComment

      public FinderOfLineComment(Constructor<?> c)
    • FinderOfLineComment

      public FinderOfLineComment(Constructor<?> c, boolean deep)
    • FinderOfLineComment

      public FinderOfLineComment(com.github.javaparser.ast.visitor.Visitable visitable)
      Dans ce cas, deep vaut true.
      Parameters:
      visitable - le Visitable dans le lequel chercher les LineComment
    • FinderOfLineComment

      public FinderOfLineComment(com.github.javaparser.ast.visitor.Visitable visitable, boolean deep)
      Effectue la recherche des LineComment dans un Visitable, en profondeur ou non selon l'état de deep.

      Rechercher en profondeur signifie que si un élément a été trouvé, la recherche continue dans l'élément lui-même. Cela permet de trouver les "if" imbriqués par exemple.

      Ne pas rechercher en profondeur signifie qu'on s'arrête au premier niveau.

      Cette propriété n'a pas d'intérêt pour tous les éléments

      Parameters:
      visitable - le Visitable dans le lequel chercher les LineComment
      deep - recherche en profondeur ou non
  • Method Details

    • getLineComment

      public ArrayList<com.github.javaparser.ast.comments.LineComment> getLineComment()
      Retourne le tableau des LineComment trouvés
      Returns:
      le tableau des LineComment trouvés
    • getNumberOfLineComment

      public int getNumberOfLineComment()
      Retourne le nombre de LineComment trouvés
      Returns:
      le nombre de LineComment trouvés