Package org.openrewrite.text
Class PlainTextParser
- java.lang.Object
-
- org.openrewrite.text.PlainTextParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openrewrite.Parser
Parser.Input
-
-
Constructor Summary
Constructors Constructor Description PlainTextParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.nio.file.Path path)java.util.List<PlainText>parseInputs(java.lang.Iterable<Parser.Input> sources, @Nullable java.nio.file.Path relativeTo, ExecutionContext ctx)-
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, parse, parse, parse, randomSourceName, reset
-
-
-
-
Method Detail
-
parseInputs
public java.util.List<PlainText> parseInputs(java.lang.Iterable<Parser.Input> sources, @Nullable @Nullable java.nio.file.Path relativeTo, ExecutionContext ctx)
- Specified by:
parseInputsin interfaceParser<PlainText>- 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.
-
-