Package org.openrewrite.javascript
Class JavaScriptParser
java.lang.Object
org.openrewrite.javascript.JavaScriptParser
- All Implemented Interfaces:
org.openrewrite.Parser
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.Parser
org.openrewrite.Parser.Input
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static JavaScriptParser.Builder
builder()
Stream<org.openrewrite.SourceFile>
Stream<org.openrewrite.SourceFile>
parseInputs
(Iterable<org.openrewrite.Parser.Input> sources, @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx) sourcePathFromSourceText
(Path prefix, String sourceCode) 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, getCharset, parse, parse, requirePrintEqualsInput, reset
-
Method Details
-
parse
- Specified by:
parse
in interfaceorg.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 interfaceorg.openrewrite.Parser
-
accept
- Specified by:
accept
in interfaceorg.openrewrite.Parser
-
sourcePathFromSourceText
- Specified by:
sourcePathFromSourceText
in interfaceorg.openrewrite.Parser
-
builder
-