public abstract class BaseFunction extends BaseSelectable implements ConcreteFunction
ConcreteFunction
implementation._hash
Constructor and Description |
---|
BaseFunction(java.lang.String name) |
BaseFunction(java.lang.String name,
java.util.List args) |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(Selectable arg)
Append the given
Selectable to my argument list. |
Selectable |
getArgument(int i)
Returns the
Selectable at the given index. |
int |
getArgumentCount()
Returns the number of arguments in my argument list.
|
abstract DataType |
getDataType() |
abstract boolean |
isValid() |
void |
setArgument(int i,
Selectable arg) |
void |
setVariableContext(VariableContext context) |
java.lang.String |
toString() |
getAlias, getLabel, getName, setAlias, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluate, getLabel
public BaseFunction(java.lang.String name)
public BaseFunction(java.lang.String name, java.util.List args)
public void addArgument(Selectable arg)
Function
Selectable
to my argument list.addArgument
in interface Function
public Selectable getArgument(int i)
Function
Selectable
at the given index.getArgument
in interface Function
public int getArgumentCount()
Function
getArgumentCount
in interface Function
public abstract DataType getDataType()
getDataType
in interface Selectable
public abstract boolean isValid()
isValid
in interface ConcreteFunction
public void setArgument(int i, Selectable arg)
setArgument
in interface Function
public void setVariableContext(VariableContext context)
setVariableContext
in interface Selectable
setVariableContext
in class BaseSelectable
public java.lang.String toString()
toString
in class java.lang.Object