public class

DeMorgansVisitor

extends Object
implements ClauseVisitor<R>
java.lang.Object
   ↳ com.atlassian.jira.jql.clause.DeMorgansVisitor

Class Overview

Expands the not clauses in a clause tree using DeMorgans law and flips the operators to remove the not alltogether when possible.

Summary

Public Constructors
DeMorgansVisitor()
Public Methods
Clause visit(WasClause clause)
Visit called when accepting a WasClause.
Clause visit(AndClause andClause)
Visit called when accepting a AndClause.
Clause visit(NotClause notClause)
Visit called when accepting a NotClause.
Clause visit(OrClause orClause)
Visit called when accepting a OrClause.
Clause visit(TerminalClause terminalClause)
Visit called when accepting a TerminalClause.
Clause visit(ChangedClause clause)
Visit called when accepting a ChangedClause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.clause.ClauseVisitor

Public Constructors

public DeMorgansVisitor ()

Public Methods

public Clause visit (WasClause clause)

Visit called when accepting a WasClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (AndClause andClause)

Visit called when accepting a AndClause.

Parameters
andClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (NotClause notClause)

Visit called when accepting a NotClause.

Parameters
notClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (OrClause orClause)

Visit called when accepting a OrClause.

Parameters
orClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (TerminalClause terminalClause)

Visit called when accepting a TerminalClause.

Parameters
terminalClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (ChangedClause clause)

Visit called when accepting a ChangedClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.