Lines Matching defs:rule
538 type rule struct { struct
540 reason string
542 paths []string
543 unlessPaths []string
545 directDeps map[string]bool
547 osClasses []OsClass
549 moduleTypes []string
550 unlessModuleTypes []string
552 props ruleProperties
553 unlessProps ruleProperties
555 onlyBootclasspathJar bool
557 definedInBp bool
566 func (r *rule) In(path ...string) Rule {
572 func (r *rule) NotIn(path ...string) Rule {
578 func (r *rule) InDirectDeps(deps ...string) Rule {
586 func (r *rule) WithOsClass(osClasses ...OsClass) Rule {
592 func (r *rule) ModuleType(types ...string) Rule {
598 func (r *rule) NotModuleType(types ...string) Rule {
604 func (r *rule) With(properties, value string) Rule {
609 func (r *rule) WithMatcher(properties string, matcher ValueMatcher) Rule {
618 func (r *rule) Without(properties, value string) Rule {
623 func (r *rule) WithoutMatcher(properties string, matcher ValueMatcher) Rule {
633 func (r *rule) DefinedInBpFile() Rule {
646 func (r *rule) Because(reason string) Rule {
651 func (r *rule) String() string {
686 func (r *rule) appliesToPath(dir string) bool {
692 func (r *rule) appliesToDirectDeps(ctx BottomUpMutatorContext) bool {
708 func (r *rule) appliesToOsClass(osClass OsClass) bool {
722 func (r *rule) appliesToModuleType(moduleType string) bool {
729 func (r *rule) appliesToProperties(ctx BottomUpMutatorContext, properties []interface{}) bool {
735 func (r *rule) appliesToBpDefinedModule(ctx BottomUpMutatorContext) bool {