Class OmniParser

java.lang.Object
org.openrewrite.OmniParser
All Implemented Interfaces:
org.openrewrite.Parser

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

    • OmniParser

      public OmniParser()
  • Method Details

    • parseAll

      public Stream<org.openrewrite.SourceFile> parseAll(Path rootDir)
    • parse

      public Stream<org.openrewrite.SourceFile> parse(Iterable<Path> sourceFiles, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parse in interface org.openrewrite.Parser
    • acceptedPaths

      public List<Path> acceptedPaths(Path rootDir)
    • 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
    • sourcePathFromSourceText

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

      public static OmniParser.Builder builder()