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<java.lang.Void>

public class NamedTerminalClauseCollectingVisitor
extends RecursiveClauseVisitor
implements ClauseVisitor<java.lang.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(java.util.Collection<java.lang.String> clauseNames)
           
NamedTerminalClauseCollectingVisitor(java.lang.String clauseName)
           
 
Method Summary
 boolean containsNamedClause()
           
 java.util.List<TerminalClause> getNamedClauses()
           
 java.lang.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
 
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
 

Constructor Detail

NamedTerminalClauseCollectingVisitor

public NamedTerminalClauseCollectingVisitor(java.lang.String clauseName)

NamedTerminalClauseCollectingVisitor

public NamedTerminalClauseCollectingVisitor(java.util.Collection<java.lang.String> clauseNames)
Method Detail

getNamedClauses

public java.util.List<TerminalClause> getNamedClauses()

containsNamedClause

public boolean containsNamedClause()

visit

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

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.