Class PlainTextParser.Builder

java.lang.Object
org.openrewrite.Parser.Builder
org.openrewrite.text.PlainTextParser.Builder
All Implemented Interfaces:
Cloneable
Enclosing class:
PlainTextParser

public static class PlainTextParser.Builder extends Parser.Builder
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public Parser<?> build()
      Specified by:
      build in class Parser.Builder
    • getDslName

      public String getDslName()
      Description copied from class: Parser.Builder
      The name of the domain specific language this parser builder produces a parser for. Used to disambiguate when multiple different parsers are potentially applicable to a source. For example, determining that MavenParser should be used for a pom.xml instead of XmlParser.
      Specified by:
      getDslName in class Parser.Builder