Package com.atlassian.query.operand
Class SingleValueOperand
java.lang.Object
com.atlassian.query.operand.SingleValueOperand
- All Implemented Interfaces:
Operand,Serializable
Used to represent a single constant value as an Operand.
- Since:
- v4.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleValueOperand(QueryLiteral literal) Note: cannot accept an emptyQueryLiteral.SingleValueOperand(Long longValue) SingleValueOperand(String stringValue) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(OperandVisitor<R> visitor) Allows us to perform operations over the operand based on the passed in visitor.booleanProduces the unexpanded representation of the Operand.getName()The name that represents this Operand.inthashCode()toString()
-
Field Details
-
OPERAND_NAME
- See Also:
-
-
Constructor Details
-
SingleValueOperand
-
SingleValueOperand
-
SingleValueOperand
Note: cannot accept an emptyQueryLiteral. UseEmptyOperandinstead.- Parameters:
literal- the query literal to convert to an operand; must not be null or empty.
-
-
Method Details
-
getName
Description copied from interface:OperandThe name that represents this Operand. -
getDisplayString
Description copied from interface:OperandProduces the unexpanded representation of the Operand. In the case of a function operand this would be the function as represented in the Query (i.e. group(jira-users)).- Specified by:
getDisplayStringin interfaceOperand- Returns:
- a string that represents this operand as represented in the JQL query string.
-
accept
Description copied from interface:OperandAllows us to perform operations over the operand based on the passed in visitor. This method calls the visit method on the visitor with this reference. -
getLongValue
-
getStringValue
-
equals
-
hashCode
public int hashCode() -
toString
-