com.atlassian.jira.issue.search
Class ClauseRemovingCloningVisitor

java.lang.Object
  extended by com.atlassian.jira.issue.search.ClauseRemovingCloningVisitor
All Implemented Interfaces:
ClauseVisitor<Clause>

public class ClauseRemovingCloningVisitor
extends Object
implements ClauseVisitor<Clause>

A visitor that will remove the specified named clauses from the query tree. NOTE: it is possible to remove all clauses from a tree which will result in a null clause.

Since:
v4.0

Constructor Summary
ClauseRemovingCloningVisitor(List<String> clauseNamesToRemove)
           
 
Method Summary
 Clause visit(AndClause andClause)
          Visit called when accepting a AndClause.
 Clause visit(ChangedClause clause)
          Visit called when accepting a ChangedClause.
 Clause visit(NotClause notClause)
          Visit called when accepting a NotClause.
 Clause visit(OrClause orClause)
          Visit called when accepting a OrClause.
 Clause visit(TerminalClause clause)
          Visit called when accepting a TerminalClause.
 Clause visit(WasClause clause)
          Visit called when accepting a WasClause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClauseRemovingCloningVisitor

public ClauseRemovingCloningVisitor(List<String> clauseNamesToRemove)
Method Detail

visit

public Clause visit(AndClause andClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a AndClause.

Specified by:
visit in interface ClauseVisitor<Clause>
Parameters:
andClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

public Clause visit(NotClause notClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a NotClause.

Specified by:
visit in interface ClauseVisitor<Clause>
Parameters:
notClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

public Clause visit(OrClause orClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a OrClause.

Specified by:
visit in interface ClauseVisitor<Clause>
Parameters:
orClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

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

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

visit

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

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

visit

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

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


Copyright © 2002-2011 Atlassian. All Rights Reserved.