com.atlassian.jira.issue.search.searchers.impl
Class NamedTerminalClauseCollectingVisitor

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.util.RecursiveClauseVisitor
      extended by com.atlassian.jira.issue.search.searchers.impl.NamedTerminalClauseCollectingVisitor
All Implemented Interfaces:
ClauseVisitor<Void>

public class NamedTerminalClauseCollectingVisitor
extends RecursiveClauseVisitor
implements ClauseVisitor<Void>

A RecursiveClauseVisitor which collects TerminalClauses that have the specified clause names.

Note: this visitor does not perform any structure checking. It simply collects all the clauses with the specified names.

Since:
v4.0

Constructor Summary
NamedTerminalClauseCollectingVisitor(Collection<String> clauseNames)
           
NamedTerminalClauseCollectingVisitor(String clauseName)
           
 
Method Summary
 boolean containsNamedClause()
           
 List<TerminalClause> getNamedClauses()
           
 Void visit(TerminalClause clause)
          Visit called when accepting a TerminalClause.
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.util.RecursiveClauseVisitor
visit, visit, visit, visit, visit
 
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, visit, visit, visit, visit
 

Constructor Detail

NamedTerminalClauseCollectingVisitor

public NamedTerminalClauseCollectingVisitor(String clauseName)

NamedTerminalClauseCollectingVisitor

public NamedTerminalClauseCollectingVisitor(Collection<String> clauseNames)
Method Detail

getNamedClauses

public List<TerminalClause> getNamedClauses()

containsNamedClause

public boolean containsNamedClause()

visit

public Void visit(TerminalClause clause)
Description copied from interface: ClauseVisitor
Visit called when accepting a TerminalClause.

Specified by:
visit in interface ClauseVisitor<Void>
Overrides:
visit in class RecursiveClauseVisitor
Parameters:
clause - the node being visited.
Returns:
The return type specified by the visitor.


Copyright © 2002-2012 Atlassian. All Rights Reserved.