Package com.atlassian.query.clause
Class WasClauseImpl
java.lang.Object
com.atlassian.query.clause.WasClauseImpl
- All Implemented Interfaces:
Clause,TerminalClause,WasClause,Serializable
Represents the clause for the "WAS mode" of change history querying. This clause selects issues on the basis of a
previous value of a field being equal to a given value (the 'operand').
- Since:
- v4.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWasClauseImpl(WasClause clause) WasClauseImpl(String field, Operator operator, Operand operand, HistoryPredicate predicate) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ClauseVisitor<R> visitor) Allows us to perform operations over the clauses based on the passed in visitor.booleangetField()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.io.atlassian.fugue.Option<Property>inthashCode()toString()Return a string representation of the clause.
-
Constructor Details
-
WasClauseImpl
-
WasClauseImpl
-
-
Method Details
-
accept
Description copied from interface:ClauseAllows 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. -
getName
Description copied from interface:ClauseThe name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause. -
getClauses
- Specified by:
getClausesin interfaceClause- Returns:
- child clauses if the clause has any, empty list if it has none.
-
getOperand
- Specified by:
getOperandin interfaceTerminalClause- Returns:
- the right hand side value of the expression. This can be a composite of more Operands or it can be SingleValueOperands that resolve to constant values.
-
getOperator
- Specified by:
getOperatorin interfaceTerminalClause- Returns:
- the operator used by the clause
Operator.
-
getProperty
- Specified by:
getPropertyin interfaceTerminalClause- Returns:
- the name of the property or absent.
-
getField
-
getPredicate
- Specified by:
getPredicatein interfaceWasClause
-
toString
Description copied from interface:ClauseReturn 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. -
equals
-
hashCode
public int hashCode() -
getDisplayString
-