Class HclParser

java.lang.Object
org.openrewrite.hcl.HclParser
All Implemented Interfaces:
org.openrewrite.Parser<Hcl.ConfigFile>

public class HclParser extends Object implements org.openrewrite.Parser<Hcl.ConfigFile>
  • Method Details

    • parseInputs

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

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

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

      public static HclParser.Builder builder()