public abstract class ToolConfig extends Object implements ConfigView<BuckConfig>
Constructor and Description |
---|
ToolConfig() |
Modifier and Type | Method and Description |
---|---|
abstract BuckConfig |
getDelegate() |
Optional<Tool> |
getPrebuiltTool(String section,
String field,
java.util.function.Function<String,Path> valueToPathMapper) |
Tool |
getRequiredTool(String section,
String field,
BuildRuleResolver resolver,
TargetConfiguration targetConfiguration) |
Optional<Tool> |
getTool(String section,
String field,
BuildRuleResolver resolver,
TargetConfiguration targetConfiguration) |
Optional<ToolProvider> |
getToolProvider(String section,
String field) |
Optional<ToolProvider> |
getToolProvider(String section,
String field,
java.util.function.Function<String,Path> valueToPathMapper) |
static ToolConfig |
of(BuckConfig delegate) |
public abstract BuckConfig getDelegate()
getDelegate
in interface ConfigView<BuckConfig>
public static ToolConfig of(BuckConfig delegate)
public Optional<ToolProvider> getToolProvider(String section, String field)
public Optional<ToolProvider> getToolProvider(String section, String field, java.util.function.Function<String,Path> valueToPathMapper)
public Optional<Tool> getPrebuiltTool(String section, String field, java.util.function.Function<String,Path> valueToPathMapper)
public Optional<Tool> getTool(String section, String field, BuildRuleResolver resolver, TargetConfiguration targetConfiguration)
public Tool getRequiredTool(String section, String field, BuildRuleResolver resolver, TargetConfiguration targetConfiguration)