com.atlassian.query.clause
Class NotClause

java.lang.Object
  extended by com.atlassian.query.clause.NotClause
All Implemented Interfaces:
Clause

public class NotClause
extends Object
implements Clause

Used to represent a logical NOT in the query tree.


Field Summary
static String NOT
           
 
Constructor Summary
NotClause(Clause subClause)
           
 
Method Summary
<R> R
accept(ClauseVisitor<R> visitor)
          Allows us to perform operations over the clauses based on the passed in visitor.
 boolean equals(Object o)
           
 List<Clause> getClauses()
           
 String getName()
          The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.
 Clause getSubClause()
           
 int hashCode()
           
 String toString()
          Return a string representation of the clause.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT

public static final String NOT
See Also:
Constant Field Values
Constructor Detail

NotClause

public NotClause(Clause subClause)
Method Detail

getName

public String getName()
Description copied from interface: Clause
The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.

Specified by:
getName in interface Clause
Returns:
the name of the individual clause.

getClauses

public List<Clause> getClauses()
Specified by:
getClauses in interface Clause
Returns:
child clauses if the clause has any, empty list if it has none.

accept

public <R> R accept(ClauseVisitor<R> visitor)
Description copied from interface: Clause
Allows us to perform operations over the clauses based on the passed in visitor. This method calls the visit method on the visitor with this reference.

Specified by:
accept in interface Clause
Parameters:
visitor - the visitor to accept.
Returns:
the result of the visit operation who's type is specified by the incoming visitor.

getSubClause

public Clause getSubClause()

toString

public String toString()
Description copied from interface: Clause
Return a string representation of the clause. This string representation should not be used to represent the clause to the user as it may not be valid. For example, this method makes no attempt to escape invalid names and strings.

Specified by:
toString in interface Clause
Overrides:
toString in class Object
Returns:
the string representation of the clause.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.