Package com.atlassian.jira.jql.clause
Class WorklogClausesTransformerVisitor
java.lang.Object
com.atlassian.jira.jql.clause.WorklogClausesTransformerVisitor
- All Implemented Interfaces:
ClauseVisitor<Clause>
@NonInjectableComponent
public class WorklogClausesTransformerVisitor
extends Object
implements ClauseVisitor<Clause>
This visitor executes all worklog clauses and replaces them
with a clause of the form "issuekey in (issue id-s of found worklogs)".
The purpose is to apply all worklog clauses to single worklog instead of executing them separately. We need this because one issue can have many worklogs and worklogs are stored as documents in a separate index.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionVisit called when accepting aAndClause
.visit
(ChangedClause clause) Visit called when accepting aChangedClause
.Visit called when accepting aNotClause
.Visit called when accepting aOrClause
.visit
(TerminalClause clause) Visit called when accepting aTerminalClause
.Visit called when accepting aWasClause
.
-
Method Details
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aAndClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
andClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aOrClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
orClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aTerminalClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aNotClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
notClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aWasClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aChangedClause
.- Specified by:
visit
in interfaceClauseVisitor<Clause>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-