Class XmlParser

  • All Implemented Interfaces:
    org.openrewrite.Parser<Xml.Document>

    public class XmlParser
    extends java.lang.Object
    implements org.openrewrite.Parser<Xml.Document>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.openrewrite.Parser

        org.openrewrite.Parser.Input
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.nio.file.Path path)  
      java.util.List<Xml.Document> parse​(java.lang.String... sources)  
      java.util.List<Xml.Document> parseInputs​(java.lang.Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable java.nio.file.Path relativeTo, org.openrewrite.ExecutionContext ctx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openrewrite.Parser

        accept, acceptedInputs, parse, parse, randomSourceName, reset
    • Constructor Detail

      • XmlParser

        public XmlParser()
    • Method Detail

      • parseInputs

        public java.util.List<Xml.Document> parseInputs​(java.lang.Iterable<org.openrewrite.Parser.Input> sourceFiles,
                                                        @Nullable
                                                        @Nullable java.nio.file.Path relativeTo,
                                                        org.openrewrite.ExecutionContext ctx)
        Specified by:
        parseInputs in interface org.openrewrite.Parser<Xml.Document>
      • parse

        public java.util.List<Xml.Document> parse​(java.lang.String... sources)
        Specified by:
        parse in interface org.openrewrite.Parser<Xml.Document>
      • accept

        public boolean accept​(java.nio.file.Path path)
        Specified by:
        accept in interface org.openrewrite.Parser<Xml.Document>