public class Literal extends BaseSelectable implements Selectable
typedliteral value.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
_value |
_hash| Modifier | Constructor and Description |
|---|---|
protected |
Literal(DataType type) |
|
Literal(java.lang.Object value) |
|
Literal(java.lang.Object value,
DataType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherobject)
Returns
true iff otherobject is a Literalwhose name
are equal to mine. |
java.lang.Object |
evaluate() |
java.lang.Object |
evaluate(RowDecorator row) |
DataType |
getDataType() |
java.lang.String |
getLabel()
Returns my Literal name.
|
java.lang.String |
getName()
Returns the name of Literal, if any.
|
int |
hashCode()
Returns a hash code in keeping with the standard
equals/
hashCodecontract. |
void |
setDataType(DataType type) |
java.lang.String |
toString()
Returns a
String representation of me, suitable for debugging
output. |
getAlias, setAlias, setName, setVariableContextclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlias, setVariableContextpublic Literal(java.lang.Object value)
public Literal(java.lang.Object value,
DataType type)
protected Literal(DataType type)
public boolean equals(java.lang.Object otherobject)
true iff otherobject is a Literalwhose name
are equal to mine.equals in class java.lang.Objectpublic java.lang.Object evaluate()
throws AxionException
AxionExceptionpublic final java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate in interface Selectablerow - is ignored and may be null.AxionExceptionevaluate()public DataType getDataType()
getDataType in interface Selectablepublic int hashCode()
equals/
hashCodecontract.hashCode in class java.lang.Objectpublic void setDataType(DataType type)
public java.lang.String getLabel()
getLabel in interface SelectablegetLabel in class BaseSelectablepublic java.lang.String getName()
getName in interface SelectablegetName in class BaseSelectablepublic java.lang.String toString()
String representation of me, suitable for debugging
output.toString in class java.lang.Object