public interface ToolchainProvider
Modifier and Type | Method and Description |
---|---|
Toolchain |
getByName(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
<T extends Toolchain> |
getByName(String toolchainName,
TargetConfiguration toolchainTargetConfiguration,
Class<T> toolchainClass) |
<T extends Toolchain> |
getByNameIfPresent(String toolchainName,
TargetConfiguration toolchainTargetConfiguration,
Class<T> toolchainClass) |
Optional<ToolchainInstantiationException> |
getToolchainInstantiationException(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
<T extends ToolchainWithCapability> |
getToolchainsWithCapability(Class<T> capability)
Provides access to all known toolchains that support the provided capability.
|
boolean |
isToolchainCreated(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
boolean |
isToolchainFailed(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
boolean |
isToolchainPresent(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
Toolchain getByName(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
ToolchainInstantiationException
- when a toolchain cannot be created<T extends Toolchain> T getByName(String toolchainName, TargetConfiguration toolchainTargetConfiguration, Class<T> toolchainClass)
ToolchainInstantiationException
- when a toolchain cannot be created<T extends Toolchain> Optional<T> getByNameIfPresent(String toolchainName, TargetConfiguration toolchainTargetConfiguration, Class<T> toolchainClass)
boolean isToolchainPresent(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain exists (triggering instantiation if needed)boolean isToolchainCreated(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain has already been created (without triggering
instantiation)boolean isToolchainFailed(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain failed to instantiate (without triggering instantiation)<T extends ToolchainWithCapability> Collection<String> getToolchainsWithCapability(Class<T> capability)
The toolchains are not created during the execution of this method.
Optional<ToolchainInstantiationException> getToolchainInstantiationException(String toolchainName, TargetConfiguration toolchainTargetConfiguration)