public interface ActionVisitor
ActionInfo maps.
Each visitor may mutate the input ActionInfo, or filter it out of the map entirely.
When multiple extensions are registered, the order in which they are executed is undefined.
| Modifier and Type | Method and Description |
|---|---|
boolean |
visit(java.lang.String name,
ActionInfo actionInfo,
ChangeInfo changeInfo)
Visit a change-level action.
|
boolean |
visit(java.lang.String name,
ActionInfo actionInfo,
ChangeInfo changeInfo,
RevisionInfo revisionInfo)
Visit a revision-level action.
|
boolean visit(java.lang.String name,
ActionInfo actionInfo,
ChangeInfo changeInfo)
Callers may mutate the input ActionInfo, or return false to omit the action from the
map entirely. Inputs other than the ActionInfo should be considered immutable.
name - name of the action, as a key into the ActionInfo map returned by the REST
API.actionInfo - action being visited; caller may mutate.changeInfo - information about the change to which this action belongs; caller should
treat as immutable.boolean visit(java.lang.String name,
ActionInfo actionInfo,
ChangeInfo changeInfo,
RevisionInfo revisionInfo)
Callers may mutate the input ActionInfo, or return false to omit the action from the
map entirely. Inputs other than the ActionInfo should be considered immutable.
name - name of the action, as a key into the ActionInfo map returned by the REST
API.actionInfo - action being visited; caller may mutate.changeInfo - information about the change to which this action belongs; caller should
treat as immutable.revisionInfo - information about the revision to which this action belongs; caller should
treat as immutable.