Class YamlTreeMetadata

    • Constructor Detail

      • YamlTreeMetadata

        public YamlTreeMetadata​(String tag,
                                org.sonar.api.batch.fs.TextRange textRange,
                                List<Comment> comments)
    • Method Detail

      • textRange

        public org.sonar.api.batch.fs.TextRange textRange()
        Specified by:
        textRange in interface HasTextRange
      • fromNode

        public static YamlTreeMetadata fromNode​(String tag,
                                                org.snakeyaml.engine.v2.nodes.Node node)
      • fromNode

        public static YamlTreeMetadata fromNode​(org.snakeyaml.engine.v2.nodes.Node node)
      • fromNodes

        public static YamlTreeMetadata fromNodes​(String tag,
                                                 org.snakeyaml.engine.v2.nodes.Node firstNode,
                                                 org.snakeyaml.engine.v2.nodes.Node secondNode)
      • comments

        public static List<Comment> comments​(org.snakeyaml.engine.v2.nodes.Node node)
      • range

        public static org.sonar.api.batch.fs.TextRange range​(org.snakeyaml.engine.v2.nodes.Node node)
      • tag

        public static String tag​(org.snakeyaml.engine.v2.nodes.Node node)