Package org.openrewrite.quark
Class QuarkParser
java.lang.Object
org.openrewrite.quark.QuarkParser
- All Implemented Interfaces:
Parser
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.Parser
Parser.Input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static QuarkParser.Builder
builder()
static Stream<SourceFile>
parseAllOtherFiles
(Path rootDir, List<SourceFile> sourceFiles) parseInputs
(Iterable<Parser.Input> sources, @Nullable Path relativeTo, 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, parse, requirePrintEqualsInput, reset
-
Constructor Details
-
QuarkParser
public QuarkParser()
-
-
Method Details
-
parseAllOtherFiles
public static Stream<SourceFile> parseAllOtherFiles(Path rootDir, List<SourceFile> sourceFiles) throws IOException - Throws:
IOException
-
parseInputs
public Stream<SourceFile> parseInputs(Iterable<Parser.Input> sources, @Nullable @Nullable Path relativeTo, ExecutionContext ctx) - Specified by:
parseInputs
in interfaceParser
- Parameters:
sources
- A collection of inputs. At the conclusion of parsing all sources'Parser.Input.source
are closed.relativeTo
- A common relative path for allParser.Input.path
.ctx
- The execution context- Returns:
- A stream of
SourceFile
.
-
accept
-
sourcePathFromSourceText
- Specified by:
sourcePathFromSourceText
in interfaceParser
-
builder
-