Class PropertiesParser

java.lang.Object
org.openrewrite.properties.PropertiesParser
All Implemented Interfaces:
org.openrewrite.Parser<Properties.File>

public class PropertiesParser extends Object implements org.openrewrite.Parser<Properties.File>
  • Constructor Details

    • PropertiesParser

      public PropertiesParser()
  • Method Details

    • parse

      public List<Properties.File> parse(@Language("properties") String... sources)
      Specified by:
      parse in interface org.openrewrite.Parser<Properties.File>
    • parseInputs

      public List<Properties.File> parseInputs(Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parseInputs in interface org.openrewrite.Parser<Properties.File>
    • accept

      public boolean accept(Path path)
      Specified by:
      accept in interface org.openrewrite.Parser<Properties.File>
    • sourcePathFromSourceText

      public Path sourcePathFromSourceText(Path prefix, String sourceCode)
      Specified by:
      sourcePathFromSourceText in interface org.openrewrite.Parser<Properties.File>
    • builder

      public static PropertiesParser.Builder builder()