Class ParserUtils.FinderOfIntersectionType

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

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

    • FinderOfIntersectionType

      public FinderOfIntersectionType(Method m)
    • FinderOfIntersectionType

      public FinderOfIntersectionType(Class<?> c)
    • FinderOfIntersectionType

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

      public FinderOfIntersectionType(Method m, boolean deep)
    • FinderOfIntersectionType

      public FinderOfIntersectionType(Constructor<?> c)
    • FinderOfIntersectionType

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

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

      public FinderOfIntersectionType(com.github.javaparser.ast.visitor.Visitable visitable, boolean deep)
      Effectue la recherche des IntersectionType 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 IntersectionType
      deep - recherche en profondeur ou non
  • Method Details

    • getIntersectionType

      public ArrayList<com.github.javaparser.ast.type.IntersectionType> getIntersectionType()
      Retourne le tableau des IntersectionType trouvés
      Returns:
      le tableau des IntersectionType trouvés
    • getNumberOfIntersectionType

      public int getNumberOfIntersectionType()
      Retourne le nombre de IntersectionType trouvés
      Returns:
      le nombre de IntersectionType trouvés