@Value.Immutable(builder=false, copy=false, prehash=false, intern=true) public abstract class RuleType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RuleType.Kind
The kind of a rule type.
|
Constructor and Description |
---|
RuleType() |
Modifier and Type | Method and Description |
---|---|
protected void |
check() |
abstract RuleType.Kind |
getKind() |
abstract String |
getName() |
boolean |
isBuildRule() |
boolean |
isTestRule() |
static RuleType |
of(String name,
RuleType.Kind kind) |
String |
toString() |
public abstract String getName()
public abstract RuleType.Kind getKind()
@Value.Derived public boolean isTestRule()
@Value.Derived public boolean isBuildRule()
true
if this rule type is a build rule, false
otherwise (for example,
for configuration rule types).@Value.Check protected void check()
public static RuleType of(String name, RuleType.Kind kind)