Package org.sonar.iac.common.checkdsl
Class ContextualListTree<S extends ContextualListTree<S,T,E>,T extends Tree,E extends Tree>
- java.lang.Object
-
- org.sonar.iac.common.checkdsl.ContextualTree<S,T>
-
- org.sonar.iac.common.checkdsl.ContextualListTree<S,T,E>
-
public class ContextualListTree<S extends ContextualListTree<S,T,E>,T extends Tree,E extends Tree> extends ContextualTree<S,T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextualListTree(CheckContext ctx, T tree, String name, ContextualTree<?,?> parent, List<E> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<E>getItemIf(Predicate<E> predicate)booleanisEmpty()SreportIfEmpty(String message, SecondaryLocation... secondaryLocations)SreportItemIf(Predicate<E> predicate, String message, SecondaryLocation... secondaryLocations)-
Methods inherited from class org.sonar.iac.common.checkdsl.ContextualTree
ifPresent, isAbsent, isPresent, report, report, reportIfAbsent, reportIfAbsent, toHighlight, toSecondary
-
-
-
-
Constructor Detail
-
ContextualListTree
protected ContextualListTree(CheckContext ctx, @Nullable T tree, String name, @Nullable ContextualTree<?,?> parent, List<E> items)
-
-
Method Detail
-
reportItemIf
public S reportItemIf(Predicate<E> predicate, String message, SecondaryLocation... secondaryLocations)
-
reportIfEmpty
public S reportIfEmpty(String message, SecondaryLocation... secondaryLocations)
-
isEmpty
public boolean isEmpty()
-
-