Class SubmitRequirementExpressionInfo
java.lang.Object
com.google.gerrit.extensions.common.SubmitRequirementExpressionInfo
Result of evaluating a single submit requirement expression. This API entity is populated from
.
invalid reference
com.google.gerrit.entities.SubmitRequirementExpressionResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Values in this enum should match with values ininvalid reference
com.google.gerrit.entities.SubmitRequirementExpressionResult.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of leaf predicates to their explanations.Optional error message.Submit requirement expression as a String.A list of all atoms that are failing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"].boolean
A boolean indicating if the expression is fulfilled on a change.A list of all atoms that are passing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"].A status indicating if the expression is fulfilled, non-fulfilled or not evaluated. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
expression
Submit requirement expression as a String. -
fulfilled
public boolean fulfilledA boolean indicating if the expression is fulfilled on a change. -
status
A status indicating if the expression is fulfilled, non-fulfilled or not evaluated. -
passingAtoms
A list of all atoms that are passing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"]. -
failingAtoms
A list of all atoms that are failing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"]. -
atomExplanations
Map of leaf predicates to their explanations.This is used to provide more information about complex atoms, which may otherwise be opaque and hard to debug.
This will only be populated/implemented for some atoms.
-
errorMessage
Optional error message. Contains an explanation of why the submit requirement expression failed during its evaluation.
-
-
Constructor Details
-
SubmitRequirementExpressionInfo
public SubmitRequirementExpressionInfo()
-
-
Method Details