public class Literal extends BaseSelectable implements Selectable
typed
literal 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 Literal whose 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 /
hashCode contract. |
void |
setDataType(DataType type) |
java.lang.String |
toString()
Returns a
String representation of me, suitable for debugging
output. |
getAlias, setAlias, setName, setVariableContext
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlias, setVariableContext
public 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 Literal
whose name
are equal to mine.equals
in class java.lang.Object
public java.lang.Object evaluate() throws AxionException
AxionException
public final java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface Selectable
row
- is ignored and may be null.AxionException
evaluate()
public DataType getDataType()
getDataType
in interface Selectable
public int hashCode()
equals
/
hashCode
contract.hashCode
in class java.lang.Object
public void setDataType(DataType type)
public java.lang.String getLabel()
getLabel
in interface Selectable
getLabel
in class BaseSelectable
public java.lang.String getName()
getName
in interface Selectable
getName
in class BaseSelectable
public java.lang.String toString()
String
representation of me, suitable for debugging
output.toString
in class java.lang.Object