com.atlassian.query.clause
Class OrClause

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

public class OrClause
extends MultiClause

Used to represent a logical OR in the query tree.


Field Summary
static java.lang.String OR
           
 
Constructor Summary
OrClause(Clause... clauses)
           
OrClause(java.util.Collection<? extends Clause> clauses)
           
 
Method Summary
<R> R
accept(ClauseVisitor<R> visitor)
          Allows us to perform operations over the clauses based on the passed in visitor.
 java.lang.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.
 
Methods inherited from class com.atlassian.query.clause.MultiClause
equals, getClauses, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OR

public static final java.lang.String OR
See Also:
Constant Field Values
Constructor Detail

OrClause

public OrClause(Clause... clauses)

OrClause

public OrClause(java.util.Collection<? extends Clause> clauses)
Method Detail

getName

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

Returns:
the name of the individual clause.

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.

Parameters:
visitor - the visitor to accept.
Returns:
the result of the visit operation who's type is specified by the incomming visitor.


Copyright © 2002-2010 Atlassian. All Rights Reserved.