|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.query.operand.SingleValueOperand
public final class SingleValueOperand
Used to represent a single constant value as an Operand.
Field Summary | |
---|---|
static String |
OPERAND_NAME
|
Constructor Summary | |
---|---|
SingleValueOperand(Long longValue)
|
|
SingleValueOperand(QueryLiteral literal)
Note: cannot accept an empty QueryLiteral . |
|
SingleValueOperand(String stringValue)
|
Method Summary | ||
---|---|---|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OPERAND_NAME
Constructor Detail |
---|
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.Method Detail |
---|
public String getName()
Operand
getName
in interface Operand
public String getDisplayString()
Operand
getDisplayString
in interface Operand
public <R> R accept(OperandVisitor<R> visitor)
Operand
accept
in interface Operand
R
- the return type for the visitor.visitor
- the visitor to accept.
public Long getLongValue()
public String getStringValue()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |