|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFunctionFinder
public class FunctionFinder
Isolate function lookup code from Factory implementation(s).
This is done to look for two things:
modules/library/main (gt-main.jar)
Constructor Summary | |
---|---|
FunctionFinder(Hints hints)
|
Method Summary | |
---|---|
Function |
findFunction(String name)
|
Function |
findFunction(String name,
List parameters)
Look up a function for the provided name. |
Function |
findFunction(String name,
List parameters,
Literal fallback)
Look up a function for the provided name, may return a FallbackFunction if an implementation could not be found. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionFinder(Hints hints)
Method Detail |
---|
public Function findFunction(String name)
public Function findFunction(String name, List parameters)
name
- Function name; this will need to be an exact matchparameters
- Set of parameters required
a
- RuntimeException if an implementation for name could not be foundpublic Function findFunction(String name, List parameters, Literal fallback)
You can create a function to represent an SQL function or a function hosted on an external service; the fallback value will be used if you evulate by a Java implementation on the classpath.
name
- Function name; this will need to be an exact matchparameters
- Set of Expressions to use as function parametersfallbackValue
- Literal to use if an implementation could not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |