Class NotClause

java.lang.Object
com.atlassian.query.clause.NotClause
All Implemented Interfaces:
Clause, Serializable

public class NotClause extends Object implements Clause
Used to represent a logical NOT in the query tree.
See Also:
  • Field Details

  • Constructor Details

    • NotClause

      public NotClause(Clause subClause)
  • Method Details

    • 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