Modifier and Type | Field and Description |
---|---|
static String |
OPERAND_NAME |
Constructor and Description |
---|
SingleValueOperand(Long longValue) |
SingleValueOperand(QueryLiteral literal)
Note: cannot accept an empty
QueryLiteral . |
SingleValueOperand(String stringValue) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(OperandVisitor<R> visitor)
Allows us to perform operations over the operand based on the passed in visitor.
|
boolean |
equals(Object o) |
String |
getDisplayString()
Produces the unexpanded representation of the Operand.
|
Long |
getLongValue() |
String |
getName()
The name that represents this Operand.
|
String |
getStringValue() |
int |
hashCode() |
String |
toString() |
public static final String OPERAND_NAME
public SingleValueOperand(String stringValue)
public SingleValueOperand(Long longValue)
public SingleValueOperand(QueryLiteral literal)
QueryLiteral
.
Use EmptyOperand
instead.literal
- the query literal to convert to an operand; must not be null or empty.public String getName()
Operand
public String getDisplayString()
Operand
getDisplayString
in interface Operand
public <R> R accept(OperandVisitor<R> visitor)
Operand
public Long getLongValue()
public String getStringValue()
Copyright © 2002-2021 Atlassian. All Rights Reserved.