Class JavaScriptParser

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

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

    • JavaScriptParser

      public JavaScriptParser()
  • 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> inputs, @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
    • reset

      public JavaScriptParser reset()
      Specified by:
      reset in interface org.openrewrite.Parser
    • builder

      public static JavaScriptParser.Builder builder()
    • isServerRunning

      public static boolean isServerRunning(int port)