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