Class RuleType


  • @Immutable(builder=false,
               copy=false,
               prehash=false,
               intern=true)
    public abstract class RuleType
    extends Object
    • Constructor Detail

      • RuleType

        public RuleType()
    • Method Detail

      • getName

        public abstract String getName()
        Returns:
        the name as displayed in a build file, such as "java_library"
      • getKind

        public abstract RuleType.Kind getKind()
        Returns:
        the kind of this type.
      • isTestRule

        @Derived
        public boolean isTestRule()
      • isBuildRule

        @Derived
        public boolean isBuildRule()
        Returns:
        true if this rule type is a build rule, false otherwise (for example, for configuration rule types).
      • check

        @Check
        protected void check()