|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.NamedIdentifier
org.axiondb.Literal
public class Literal
A typed
literal value.
Constructor Summary | |
---|---|
protected |
Literal(DataType type)
|
|
Literal(Object value)
|
|
Literal(Object value,
DataType type)
|
|
Literal(Object value,
DataType type,
String aliasName)
|
Method Summary | |
---|---|
boolean |
equals(Object otherobject)
Returns true iff otherobject is a Literal whose name
are equal to mine. |
Object |
evaluate()
|
Object |
evaluate(RowDecorator row)
|
String |
getAlias()
Returns the alias name of Literal, if any. |
DataType |
getDataType()
|
String |
getLabel()
Returns my Literal name. |
String |
getName()
Returns the name of Literal, if any. |
protected Object |
getValue()
|
int |
hashCode()
Returns a hash code in keeping with the standard equals /
hashCode contract. |
void |
setAlias(String name)
Sets the name of this Literal. |
void |
setDataType(DataType type)
|
protected void |
setValue(Object value)
|
void |
setVariableContext(VariableContext context)
|
String |
toString()
Returns a String representation of me, suitable for debugging
output. |
Methods inherited from class org.axiondb.NamedIdentifier |
---|
toUpperOrNull |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Literal(Object value)
public Literal(Object value, DataType type)
public Literal(Object value, DataType type, String aliasName)
protected Literal(DataType type)
Method Detail |
---|
public boolean equals(Object otherobject)
true
iff otherobject is a Literal
whose name
are equal to mine.
equals
in class Object
public Object evaluate() throws AxionException
AxionException
public final Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface Selectable
row
- is ignored and may be null.
AxionException
evaluate()
public String getAlias()
getAlias
in interface Selectable
public DataType getDataType()
getDataType
in interface Selectable
public String getLabel()
getLabel
in interface Selectable
public String getName()
getName
in interface Selectable
public int hashCode()
equals
/
hashCode
contract.
hashCode
in class Object
public void setAlias(String name)
public void setDataType(DataType type)
public void setVariableContext(VariableContext context)
setVariableContext
in interface Selectable
public String toString()
String
representation of me, suitable for debugging
output.
toString
in class Object
protected Object getValue() throws AxionException
AxionException
protected void setValue(Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |