public abstract class DefaultToolchain extends Object implements Toolchain, ToolchainPrivate
Modifier | Constructor and Description |
---|---|
protected |
DefaultToolchain(ToolchainModel model,
Logger logger) |
protected |
DefaultToolchain(ToolchainModel model,
String type,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
addProvideToken(String type,
RequirementMatcher matcher) |
boolean |
equals(Object obj) |
protected Logger |
getLog() |
ToolchainModel |
getModel() |
String |
getType()
get the type of toolchain.
|
int |
hashCode() |
boolean |
matchesRequirements(Map<String,String> requirements)
Let the toolchain decide if it matches requirements defined
in the toolchain plugin configuration.
|
String |
toString() |
public static final String KEY_TYPE
protected DefaultToolchain(ToolchainModel model, Logger logger)
model
- the model, must not be null
logger
- the logger, must not be null
protected DefaultToolchain(ToolchainModel model, String type, Logger logger)
model
- the model, must not be null
type
- the typelogger
- the logger, must not be null
public final String getType()
Toolchain
public final ToolchainModel getModel()
getModel
in interface ToolchainPrivate
public final void addProvideToken(String type, RequirementMatcher matcher)
public boolean matchesRequirements(Map<String,String> requirements)
ToolchainPrivate
matchesRequirements
in interface ToolchainPrivate
requirements
- Mapnull
true
if the requirements match, otherwise false
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.