Class JavaScriptParser

java.lang.Object
org.openrewrite.javascript.JavaScriptParser
All Implemented Interfaces:
org.openrewrite.Parser

public class JavaScriptParser extends Object implements org.openrewrite.Parser
  • Method Details

    • parse

      public Stream<org.openrewrite.SourceFile> parse(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
    • sourcePathFromSourceText

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

      public static JavaScriptParser.Builder builder()