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