|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
Represents a function that is part of an expression to be evaluated. A function evaluates to a resultant Object. If the parameters of a function are not constant values, then the evaluation will require a lookup via a VariableResolver or GroupResolver. The GroupResolver helps evaluate an aggregate function.
Method Summary | |
---|---|
java.util.List |
allElements()
Returns the list of all element objects that this function uses as its parameters. |
java.util.List |
allVariables()
Returns the list of Variable objects that this function uses as its parameters. |
TObject |
evaluate(GroupResolver group,
VariableResolver resolver,
QueryContext context)
Evaluates the function and returns a TObject that represents the result of the function. |
java.lang.String |
getName()
Returns the name of the function. |
boolean |
isAggregate(QueryContext context)
Returns true if this function is an aggregate function. |
void |
prepareParameters(ExpressionPreparer preparer)
Prepares the exressions that are the parameters of this function. |
TType |
returnTType(VariableResolver resolver,
QueryContext context)
The type of object this function returns. |
Method Detail |
---|
java.lang.String getName()
java.util.List allVariables()
java.util.List allElements()
boolean isAggregate(QueryContext context)
void prepareParameters(ExpressionPreparer preparer) throws DatabaseException
DatabaseException
TObject evaluate(GroupResolver group, VariableResolver resolver, QueryContext context)
TType returnTType(VariableResolver resolver, QueryContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |