Package org.openrewrite.javascript
Class JavaScriptParser
java.lang.Object
org.openrewrite.javascript.JavaScriptParser
- All Implemented Interfaces:
org.openrewrite.Parser<JS.CompilationUnit>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.Parser
org.openrewrite.Parser.Input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static JavaScriptParser.Builder
builder()
parseInputs
(Iterable<org.openrewrite.Parser.Input> inputs, @Nullable Path relativeTo, org.openrewrite.ExecutionContext ogCtx) 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, reset
-
Constructor Details
-
JavaScriptParser
public JavaScriptParser()
-
-
Method Details
-
parse
- Specified by:
parse
in interfaceorg.openrewrite.Parser<JS.CompilationUnit>
-
parseInputs
public List<JS.CompilationUnit> parseInputs(Iterable<org.openrewrite.Parser.Input> inputs, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ogCtx) - Specified by:
parseInputs
in interfaceorg.openrewrite.Parser<JS.CompilationUnit>
-
accept
- Specified by:
accept
in interfaceorg.openrewrite.Parser<JS.CompilationUnit>
-
sourcePathFromSourceText
- Specified by:
sourcePathFromSourceText
in interfaceorg.openrewrite.Parser<JS.CompilationUnit>
-
builder
-