Class MavenParser

java.lang.Object
org.openrewrite.maven.MavenParser
All Implemented Interfaces:
org.openrewrite.Parser

public class MavenParser extends Object implements org.openrewrite.Parser
  • Constructor Details

    • MavenParser

      public MavenParser()
  • Method Details

    • parse

      public Stream<org.openrewrite.SourceFile> parse(@Language("xml") String... sources)
      Specified by:
      parse in interface org.openrewrite.Parser
    • parse

      public Stream<org.openrewrite.SourceFile> parse(org.openrewrite.ExecutionContext ctx, @Language("xml") String... sources)
      Specified by:
      parse in interface org.openrewrite.Parser
    • parseInputs

      public Stream<org.openrewrite.SourceFile> parseInputs(Iterable<org.openrewrite.Parser.Input> sources, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parseInputs in interface org.openrewrite.Parser
    • accept

      public boolean accept(Path path)
      Specified by:
      accept in interface org.openrewrite.Parser
    • builder

      public static MavenParser.Builder builder()
    • sourcePathFromSourceText

      public Path sourcePathFromSourceText(Path prefix, String sourceCode)
      Specified by:
      sourcePathFromSourceText in interface org.openrewrite.Parser