Class Parser.Builder

java.lang.Object
org.openrewrite.Parser.Builder
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PlainTextParser.Builder, QuarkParser.Builder
Enclosing interface:
Parser

public abstract static class Parser.Builder extends Object implements Cloneable
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public abstract Parser build()
    • getDslName

      public abstract String getDslName()
      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.
    • clone

      public Parser.Builder clone()
      Overrides:
      clone in class Object