Class SubmitRequirementExpressionResult.PredicateResult

java.lang.Object
com.google.gerrit.entities.SubmitRequirementExpressionResult.PredicateResult
Enclosing class:
SubmitRequirementExpressionResult

public abstract static class SubmitRequirementExpressionResult.PredicateResult extends Object
Entity detailing the result of evaluating a predicate.

Example - branch:refs/heads/foo and has:unresolved

The above predicate is an "And" predicate having two child predicates:

  • branch:refs/heads/foo
  • has:unresolved

Each child predicate as well as the parent contains the result of its evaluation.

  • Constructor Details

    • PredicateResult

      public PredicateResult()
  • Method Details

    • predicateString

      public abstract String predicateString()
      We only set this field for leaf predicates.
    • explanation

      public abstract String explanation()
      An explanation of the predicate result.

      This is used to provide more information about complex atoms, which may otherwise be opaque and hard to debug.

      This will be empty for most predicate results and all non-leaf predicates.

    • builder