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>
-
Field Summary
FieldsFields inherited from class org.sonar.iac.common.checkdsl.ContextualTree
ctx, name, tree -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextualListTree(CheckContext ctx, T tree, String name, ContextualTree<?, ?> parent, List<E> items) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()reportIfEmpty(String message, SecondaryLocation... secondaryLocations) reportItemIf(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
-
Field Details
-
items
-
-
Constructor Details
-
ContextualListTree
protected ContextualListTree(CheckContext ctx, @Nullable T tree, String name, @Nullable ContextualTree<?, ?> parent, List<E> items)
-
-
Method Details
-
reportItemIf
public S reportItemIf(Predicate<E> predicate, String message, SecondaryLocation... secondaryLocations) -
reportIfEmpty
-
getItemIf
-
isEmpty
public boolean isEmpty()
-