Package caseine.publication
Class ParserUtils.FinderOfThrowStmt
java.lang.Object
caseine.publication.ParserUtils.Finder
caseine.publication.ParserUtils.FinderOfThrowStmt
- Enclosing class:
- ParserUtils
Pour extraire tous les ThrowStmt
- Author:
- Yvan Maillot <yvan.maillot@uha.fr>
-
Field Summary
Fields inherited from class caseine.publication.ParserUtils.Finder
deep, visitable -
Constructor Summary
ConstructorsConstructorDescriptionFinderOfThrowStmt(com.github.javaparser.ast.visitor.Visitable visitable) Dans ce cas, deep vaut true.FinderOfThrowStmt(com.github.javaparser.ast.visitor.Visitable visitable, boolean deep) Effectue la recherche des ThrowStmt dans un Visitable, en profondeur ou non selon l'état dedeep.FinderOfThrowStmt(Class<?> c) FinderOfThrowStmt(Class<?> c, boolean deep) FinderOfThrowStmt(Constructor<?> c) FinderOfThrowStmt(Constructor<?> c, boolean deep) FinderOfThrowStmt(Method m, boolean deep) -
Method Summary
Modifier and TypeMethodDescriptionintRetourne le nombre de ThrowStmt trouvésArrayList<com.github.javaparser.ast.stmt.ThrowStmt>Retourne le tableau des ThrowStmt trouvés
-
Constructor Details
-
FinderOfThrowStmt
-
FinderOfThrowStmt
-
FinderOfThrowStmt
-
FinderOfThrowStmt
-
FinderOfThrowStmt
-
FinderOfThrowStmt
-
FinderOfThrowStmt
public FinderOfThrowStmt(com.github.javaparser.ast.visitor.Visitable visitable) Dans ce cas, deep vaut true.- Parameters:
visitable- le Visitable dans le lequel chercher les ThrowStmt
-
FinderOfThrowStmt
public FinderOfThrowStmt(com.github.javaparser.ast.visitor.Visitable visitable, boolean deep) Effectue la recherche des ThrowStmt dans un Visitable, en profondeur ou non selon l'état dedeep.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 ThrowStmtdeep- recherche en profondeur ou non
-
-
Method Details
-
getThrowStmt
Retourne le tableau des ThrowStmt trouvés- Returns:
- le tableau des ThrowStmt trouvés
-
getNumberOfThrowStmt
public int getNumberOfThrowStmt()Retourne le nombre de ThrowStmt trouvés- Returns:
- le nombre de ThrowStmt trouvés
-