Package org.benf.cfr.reader.api
Class CfrDriver.Builder
- java.lang.Object
-
- org.benf.cfr.reader.api.CfrDriver.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CfrDriver
build()
Given provided artifacts, build an instance ofCfrDriver
.CfrDriver.Builder
withBuiltOptions(org.benf.cfr.reader.util.getopt.Options options)
Note - theOptions
interface is *not* guaranteed to be stable.CfrDriver.Builder
withClassFileSource(ClassFileSource source)
Overrides where CFR searches for bytecode.CfrDriver.Builder
withOptions(Map<String,String> options)
A map, equivalent to the command line options that are passed to CFR.CfrDriver.Builder
withOutputSink(OutputSinkFactory output)
Handle how results / output are provided.
-
-
-
Method Detail
-
withClassFileSource
public CfrDriver.Builder withClassFileSource(ClassFileSource source)
Overrides where CFR searches for bytecode. SeeClassFileSource
.- Parameters:
source
- class file source.- Returns:
- this builder.
-
withOutputSink
public CfrDriver.Builder withOutputSink(OutputSinkFactory output)
Handle how results / output are provided.- Parameters:
output
- seeOutputSinkFactory
- Returns:
- this builder.
-
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 - theOptions
interface is *not* guaranteed to be stable.- Parameters:
options
- previously built options.- Returns:
- this builder.
-
-