Lines Matching defs:rule
584 type rule struct { struct
586 reason string
588 paths []string
589 unlessPaths []string
591 directDeps map[string]bool
593 osClasses []OsClass
595 moduleTypes []string
596 unlessModuleTypes []string
598 props ruleProperties
599 unlessProps ruleProperties
601 onlyBootclasspathJar bool
603 definedInBp bool
612 func (r *rule) In(path ...string) Rule {
618 func (r *rule) NotIn(path ...string) Rule {
624 func (r *rule) InDirectDeps(deps ...string) Rule {
632 func (r *rule) WithOsClass(osClasses ...OsClass) Rule {
638 func (r *rule) ModuleType(types ...string) Rule {
644 func (r *rule) NotModuleType(types ...string) Rule {
650 func (r *rule) With(properties, value string) Rule {
655 func (r *rule) WithMatcher(properties string, matcher ValueMatcher) Rule {
664 func (r *rule) Without(properties, value string) Rule {
669 func (r *rule) WithoutMatcher(properties string, matcher ValueMatcher) Rule {
679 func (r *rule) DefinedInBpFile() Rule {
692 func (r *rule) Because(reason string) Rule {
697 func (r *rule) String() string {
732 func (r *rule) appliesToPath(dir string) bool {
738 func (r *rule) appliesToDirectDeps(ctx BottomUpMutatorContext) bool {
754 func (r *rule) appliesToOsClass(osClass OsClass) bool {
768 func (r *rule) appliesToModuleType(moduleType string) bool {
775 func (r *rule) appliesToProperties(ctx BottomUpMutatorContext, properties []interface{}) bool {
781 func (r *rule) appliesToBpDefinedModule(ctx BottomUpMutatorContext) bool {