Package org.sonar.iac.common.checkdsl
Class ContextualTree<S extends ContextualTree<S,T>,T extends Tree>
java.lang.Object
org.sonar.iac.common.checkdsl.ContextualTree<S,T>
- Direct Known Subclasses:
ContextualListTree,ContextualPropertyTree
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextualTree(CheckContext ctx, T tree, String name, ContextualTree<? extends ContextualTree<?, ?>, ? extends Tree> parent) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisAbsent()booleanreport(String message, List<SecondaryLocation> secondaries) report(String message, SecondaryLocation... secondaryLocations) reportIfAbsent(String message, List<SecondaryLocation> secondaries) reportIfAbsent(String message, SecondaryLocation... secondaries) protected HasTextRangetoSecondary(String message)
-
Field Details
-
ctx
-
tree
-
name
-
-
Constructor Details
-
ContextualTree
protected ContextualTree(CheckContext ctx, @Nullable T tree, @Nullable String name, @Nullable ContextualTree<? extends ContextualTree<?, ?>, ? extends Tree> parent)
-
-
Method Details
-
reportIfAbsent
-
reportIfAbsent
-
report
-
report
-
toSecondary
-
toHighlight
-
isPresent
public boolean isPresent() -
ifPresent
-
isAbsent
public boolean isAbsent()
-