Package org.openrewrite.python
Class PipfileParser
java.lang.Object
org.openrewrite.python.PipfileParser
- All Implemented Interfaces:
org.openrewrite.Parser
Parser for Pipfile files that delegates to
TomlParser and attaches a
PythonResolutionResult marker with dependency metadata.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.Parser
org.openrewrite.Parser.Input -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PipfileParser.Builderbuilder()static @Nullable PythonResolutionResultcreateMarker(org.openrewrite.toml.tree.Toml.Document doc) 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, waitMethods inherited from interface org.openrewrite.Parser
accept, acceptedInputs, getCharset, parse, parse, parse, requirePrintEqualsInput, reset
-
Constructor Details
-
PipfileParser
public PipfileParser()
-
-
Method Details
-
parseInputs
public Stream<org.openrewrite.SourceFile> parseInputs(Iterable<org.openrewrite.Parser.Input> sources, @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx) - Specified by:
parseInputsin interfaceorg.openrewrite.Parser
-
createMarker
public static @Nullable PythonResolutionResult createMarker(org.openrewrite.toml.tree.Toml.Document doc) -
accept
- Specified by:
acceptin interfaceorg.openrewrite.Parser
-
sourcePathFromSourceText
- Specified by:
sourcePathFromSourceTextin interfaceorg.openrewrite.Parser
-
builder
-