public class QueryLiteral extends Object
Used to communicate literal values, Strings or Longs, as input into the Operands.
When writing JqlFunction
s that must return QueryLiterals, try to
return the more specific QueryLiteral where possible, to avoid unnecessary resolving. "More specific" here means the
form that is used by the index (if applicable), as this value can then be used directly when constructing index
queries.
QueryLiterals contain an operand source, this is the Operand
of the JQL that
produced the QueryLiteral. For instance in the JQL query project = HSP
the "HSP" QueryLiteral will have
the operand source of a SingleValueOperand
with value "HSP". Notably
QueryLiterals produced by JqlFunction
s must set the
FunctionOperand
as the operand source.
Constructor and Description |
---|
QueryLiteral() |
QueryLiteral(Operand sourceOperand) |
QueryLiteral(Operand sourceOperand,
Long longValue) |
QueryLiteral(Operand sourceOperand,
String stringValue) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
boolean |
equals(Object o) |
Long |
getLongValue() |
Operand |
getSourceOperand() |
String |
getStringValue() |
int |
hashCode() |
boolean |
isEmpty() |
String |
toString() |
public QueryLiteral()
public QueryLiteral(Operand sourceOperand)
Copyright © 2002-2015 Atlassian. All Rights Reserved.