Package org.sonar.iac.common.yaml.object
Class ListObject
- java.lang.Object
-
- org.sonar.iac.common.yaml.object.ListObject
-
public class ListObject extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListObjectfromAbsent(CheckContext ctx, String key)static ListObjectfromPresent(CheckContext ctx, YamlTree tree, String key, YamlTree parent)Treport(String message)ListObjectreportIfAnyItem(Predicate<YamlTree> predicate, String message)protected HasTextRangetoHighlight()
-
-
-
Field Detail
-
ctx
public final CheckContext ctx
-
tree
@Nullable public final K extends YamlTree tree
-
key
public final String key
-
status
public final org.sonar.iac.common.yaml.object.YamlObject.Status status
-
-
Method Detail
-
fromPresent
public static ListObject fromPresent(CheckContext ctx, YamlTree tree, String key, YamlTree parent)
-
fromAbsent
public static ListObject fromAbsent(CheckContext ctx, String key)
-
reportIfAnyItem
public ListObject reportIfAnyItem(Predicate<YamlTree> predicate, String message)
-
toHighlight
@Nullable protected HasTextRange toHighlight()
-
report
public T report(String message)
-
-