Package org.sonar.iac.common.yaml.object
Class BlockObject
- java.lang.Object
-
- org.sonar.iac.common.yaml.object.BlockObject
-
public class BlockObject extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockObject(CheckContext ctx, MappingTree tree, String key, org.sonar.iac.common.yaml.object.YamlObject.Status status)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeObjectattribute(String key)BlockObjectblock(String key)Stream<BlockObject>blocks(String key)static BlockObjectfromAbsent(CheckContext ctx, String key)static BlockObjectfromPresent(CheckContext ctx, YamlTree tree, String key)ListObjectlist(String key)Treport(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
-
-
Constructor Detail
-
BlockObject
protected BlockObject(CheckContext ctx, @Nullable MappingTree tree, String key, org.sonar.iac.common.yaml.object.YamlObject.Status status)
-
-
Method Detail
-
toHighlight
@Nullable protected HasTextRange toHighlight()
-
fromPresent
public static BlockObject fromPresent(CheckContext ctx, YamlTree tree, String key)
-
fromAbsent
public static BlockObject fromAbsent(CheckContext ctx, String key)
-
blocks
public Stream<BlockObject> blocks(String key)
-
block
public BlockObject block(String key)
-
attribute
public AttributeObject attribute(String key)
-
list
public ListObject list(String key)
-
report
public T report(String message)
-
-