Class FileEditsPredicate

All Implemented Interfaces:
Matchable<ChangeData>

public class FileEditsPredicate extends SubmitRequirementPredicate
A submit-requirement predicate that can be used in submit requirements expressions. This predicate is fulfilled if the diff between the latest patchset of the change and the base commit includes a specific file path pattern with some specific content modification. The modification could be an added, deleted or replaced content.
  • Constructor Details

  • Method Details

    • match

      public boolean match(ChangeData cd)
      Description copied from interface: Matchable
      Does this predicate match this object?
    • getCost

      public int getCost()
      Description copied from interface: Matchable
      Returns a cost estimate to run this predicate, higher figures cost more.