Class CfrDriver.Builder

  • Enclosing interface:
    CfrDriver

    public static class CfrDriver.Builder
    extends Object
    Builder for CfrDriver Note that *all* parameters are optional. If you build a naked builder, you will get default CFR behaviour.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withOptions

        public CfrDriver.Builder withOptions​(Map<String,String> options)
        A map, equivalent to the command line options that are passed to CFR. Note. Strong values on this are not guaranteed, however you should expect that command line options to CFR do not change. eg { "sugarboxing" -> "false" } You may use { OptionsImpl.SUGAR_BOXING.getName() -> "false" } However, this is not guaranteed to remain in place currently, and may lead to compile / runtime errors in subsequent versions.
        Parameters:
        options - map of options
        Returns:
        this builder.
      • withBuiltOptions

        public CfrDriver.Builder withBuiltOptions​(org.benf.cfr.reader.util.getopt.Options options)
        Note - the Options interface is *not* guaranteed to be stable.
        Parameters:
        options - previously built options.
        Returns:
        this builder.
      • build

        public CfrDriver build()
        Given provided artifacts, build an instance of CfrDriver. Note that if artifacts are not provided, you will get default CFR behaviour.
        Returns:
        Constructed instance of CfrDriver