org.axiondb.functions
Class FunctionIdentifier

java.lang.Object
  extended byorg.axiondb.BaseSelectable
      extended byorg.axiondb.functions.FunctionIdentifier
All Implemented Interfaces:
Function, Selectable, Serializable

public class FunctionIdentifier
extends BaseSelectable
implements Function

A Selectable representing an unresolved Function.

Version:
$Revision: 1.9 $ $Date: 2004/08/11 18:02:21 $
See Also:
Serialized Form

Constructor Summary
FunctionIdentifier(String name)
           
FunctionIdentifier(String name, List args)
           
 
Method Summary
 void addArgument(Selectable arg)
          Append the given Selectableto my argument list.
 Object evaluate(RowDecorator row)
           
 String getAlias()
          Returns the Alias name of this function.
 Selectable getArgument(int i)
          Returns the Selectableat the given index.
 int getArgumentCount()
          Returns the number of arguments in my argument list.
 DataType getDataType()
           
 String getName()
          Returns the cannonical name of this function.
 void setAlias(String alias)
          Set the Alias name of this function.
 void setArgument(int i, Selectable arg)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class org.axiondb.BaseSelectable
getLabel, setVariableContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.Selectable
getLabel, setVariableContext
 

Constructor Detail

FunctionIdentifier

public FunctionIdentifier(String name)

FunctionIdentifier

public FunctionIdentifier(String name,
                          List args)
Method Detail

addArgument

public void addArgument(Selectable arg)
Description copied from interface: Function
Append the given Selectableto my argument list.

Specified by:
addArgument in interface Function

getAlias

public String getAlias()
Description copied from interface: Function
Returns the Alias name of this function.

Specified by:
getAlias in interface Function

setAlias

public void setAlias(String alias)
Description copied from interface: Function
Set the Alias name of this function.

Specified by:
setAlias in interface Function

getName

public String getName()
Description copied from interface: Function
Returns the cannonical name of this function.

Specified by:
getName in interface Function

setName

public void setName(String name)

getArgumentCount

public int getArgumentCount()
Description copied from interface: Function
Returns the number of arguments in my argument list.

Specified by:
getArgumentCount in interface Function

getArgument

public Selectable getArgument(int i)
Description copied from interface: Function
Returns the Selectableat the given index.

Specified by:
getArgument in interface Function

setArgument

public void setArgument(int i,
                        Selectable arg)
Specified by:
setArgument in interface Function

evaluate

public Object evaluate(RowDecorator row)
Specified by:
evaluate in interface Selectable

getDataType

public DataType getDataType()
Specified by:
getDataType in interface Selectable

toString

public String toString()