Package org.sonar.iac.common.yaml.object
Class AttributeObject
- java.lang.Object
-
- org.sonar.iac.common.yaml.object.AttributeObject
-
public class AttributeObject extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeObjectfromAbsent(CheckContext ctx, String key)static AttributeObjectfromPresent(CheckContext ctx, YamlTree tree, String key)Treport(String message)AttributeObjectreportIfValue(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 AttributeObject fromPresent(CheckContext ctx, YamlTree tree, String key)
-
fromAbsent
public static AttributeObject fromAbsent(CheckContext ctx, String key)
-
reportIfValue
public AttributeObject reportIfValue(Predicate<YamlTree> predicate, String message)
-
toHighlight
@Nullable protected HasTextRange toHighlight()
-
report
public T report(String message)
-
-