Class DeterminedProjectsInQueryVisitor
java.lang.Object
com.atlassian.greenhopper.util.jql.DeterminedProjectsInQueryVisitor
- All Implemented Interfaces:
com.atlassian.query.clause.ClauseVisitor<Boolean>
public class DeterminedProjectsInQueryVisitor
extends Object
implements com.atlassian.query.clause.ClauseVisitor<Boolean>
A visitor that checks if we can determine any projects from the given query.
It visits the given query recursively and each of the visits returns true if any projects could be determined.
For 'or' clause each of its subclauses visits must return true in order to determine project(s) from the whole clause.
For 'and' at least one of its subclauses visits must return true in order to determine project(s).
All subclauses always need to be visited no matter what the results is so all projects are collected.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisit
(com.atlassian.query.clause.AndClause andClause) visit
(com.atlassian.query.clause.ChangedClause changedClause) visit
(com.atlassian.query.clause.NotClause notClause) visit
(com.atlassian.query.clause.OrClause orClause) visit
(com.atlassian.query.clause.TerminalClause terminalClause) visit
(com.atlassian.query.clause.WasClause wasClause) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.query.clause.ClauseVisitor
visit
-
Field Details
-
PROJECT_CLAUSE_NAME
- See Also:
-
ALLOWED_OPERATORS
public static final com.google.common.collect.ImmutableList<com.atlassian.query.operator.Operator> ALLOWED_OPERATORS -
projectsSetBuilder
-
-
Constructor Details
-
DeterminedProjectsInQueryVisitor
public DeterminedProjectsInQueryVisitor()
-
-
Method Details
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
visit
- Specified by:
visit
in interfacecom.atlassian.query.clause.ClauseVisitor<Boolean>
-
getDeterminedProjects
-