|
||||||||||
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 java.lang.String |
OPERAND_NAME
|
Constructor Summary | |
---|---|
SingleValueOperand(java.lang.Long longValue)
|
|
SingleValueOperand(QueryLiteral literal)
Note: cannot accept an empty QueryLiteral . |
|
SingleValueOperand(java.lang.String stringValue)
|
Method Summary | ||
---|---|---|
|
accept(OperandVisitor<R> visitor)
Allows us to perform operations over the operand based on the passed in visitor. |
|
boolean |
equals(java.lang.Object o)
|
|
java.lang.String |
getDisplayString()
Produces the unexpanded representation of the Operand. |
|
java.lang.Long |
getLongValue()
|
|
java.lang.String |
getName()
The name that represents this Operand. |
|
java.lang.String |
getStringValue()
|
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPERAND_NAME
Constructor Detail |
---|
public SingleValueOperand(java.lang.String stringValue)
public SingleValueOperand(java.lang.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 java.lang.String getName()
Operand
getName
in interface Operand
public java.lang.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 java.lang.Long getLongValue()
public java.lang.String getStringValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |