Class DeterminedProjectsInQueryVisitor

java.lang.Object
com.atlassian.jira.issue.search.optimizers.DeterminedProjectsInQueryVisitor
All Implemented Interfaces:
ClauseVisitor<Boolean>

public class DeterminedProjectsInQueryVisitor extends Object implements 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 Details

    • PROJECT_CLAUSE_NAME

      public static final String PROJECT_CLAUSE_NAME
      See Also:
    • ALLOWED_OPERATORS

      public static final com.google.common.collect.ImmutableList<Operator> ALLOWED_OPERATORS
    • projectsSetBuilder

      public final com.google.common.collect.ImmutableSet.Builder<String> projectsSetBuilder
  • Constructor Details

    • DeterminedProjectsInQueryVisitor

      public DeterminedProjectsInQueryVisitor()
  • Method Details