public final class WasClauseImpl extends Object implements WasClause
Constructor and Description |
---|
WasClauseImpl(String field,
Operator operator,
Operand operand,
HistoryPredicate predicate) |
WasClauseImpl(WasClause clause) |
Modifier and Type | Method and Description |
---|---|
<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 |
getDisplayString() |
String |
getField() |
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.
|
Operand |
getOperand() |
Operator |
getOperator() |
HistoryPredicate |
getPredicate() |
io.atlassian.fugue.Option<Property> |
getProperty() |
int |
hashCode() |
String |
toString()
Return a string representation of the clause.
|
public WasClauseImpl(String field, Operator operator, Operand operand, HistoryPredicate predicate)
public WasClauseImpl(WasClause clause)
public <R> R accept(ClauseVisitor<R> visitor)
Clause
public String getName()
Clause
public List<Clause> getClauses()
getClauses
in interface Clause
public Operand getOperand()
getOperand
in interface TerminalClause
public Operator getOperator()
getOperator
in interface TerminalClause
Operator
.public io.atlassian.fugue.Option<Property> getProperty()
getProperty
in interface TerminalClause
public HistoryPredicate getPredicate()
getPredicate
in interface WasClause
public String toString()
Clause
public String getDisplayString()
Copyright © 2002-2022 Atlassian. All Rights Reserved.