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
-
Constructor Summary
ConstructorDescriptionSingleValueOperand
(QueryLiteral literal) Note: cannot accept an emptyQueryLiteral
.SingleValueOperand
(Long longValue) SingleValueOperand
(String stringValue) -
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(OperandVisitor<R> visitor) Allows us to perform operations over the operand based on the passed in visitor.boolean
Produces the unexpanded representation of the Operand.getName()
The name that represents this Operand.int
hashCode()
toString()
-
Field Details
-
OPERAND_NAME
- See Also:
-
-
Constructor Details
-
SingleValueOperand
-
SingleValueOperand
-
SingleValueOperand
Note: cannot accept an emptyQueryLiteral
. UseEmptyOperand
instead.- Parameters:
literal
- the query literal to convert to an operand; must not be null or empty.
-
-
Method Details
-
getName
Description copied from interface:Operand
The name that represents this Operand. -
getDisplayString
Description copied from interface:Operand
Produces 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:
getDisplayString
in interfaceOperand
- Returns:
- a string that represents this operand as represented in the JQL query string.
-
accept
Description copied from interface:Operand
Allows 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
-