public class FunctionLookup extends Object
Constructor and Description |
---|
FunctionLookup() |
Modifier and Type | Method and Description |
---|---|
static FunctionInfo |
getInfo(String jiffleName,
JiffleType... argTypes)
Gets the info for a function.
|
static JiffleType |
getReturnType(String jiffleName)
Searches for a function with a script name that matches
jiffleName
and gets its return type. |
static String |
getRuntimeExpr(String jiffleName,
JiffleType... argTypes)
Gets the runtime source for the function.
|
static boolean |
isDefined(String jiffleName)
Checks if a function of the given name is defined.
|
static boolean |
isDefined(String jiffleName,
JiffleType... argTypes)
Checks if a function is defined.
|
public static boolean isDefined(String jiffleName)
jiffleName
- the name of the function used in a Jiffle scripttrue
if definedpublic static boolean isDefined(String jiffleName, JiffleType... argTypes)
jiffleName
- the name of the function used in a Jiffle scriptargTypes
- argument types; null or empty for no-arg functionstrue
if definedpublic static FunctionInfo getInfo(String jiffleName, JiffleType... argTypes) throws UndefinedFunctionException
jiffleName
- the name of the function used in a Jiffle scriptargTypes
- argument types; null or empty for no-arg functionsUndefinedFunctionException
- if jiffleName
is not recognizedpublic static String getRuntimeExpr(String jiffleName, JiffleType... argTypes) throws UndefinedFunctionException
JiffleFunction
and java.lang.Math
methods, or runtime class field name in the
case of proxy (image info) functions.jiffleName
- the name of the function used in a Jiffle scriptargTypes
- argument types (if present)UndefinedFunctionException
- if jiffleName
is not recognizedpublic static JiffleType getReturnType(String jiffleName) throws UndefinedFunctionException
jiffleName
and gets its return type. This method relies on the fact that Jiffle
has the same return type for all functions with the same root name.jiffleName
- name to matchUndefinedFunctionException
- if the name is not matchedCopyright © 2006–2018 GeoSolutions. All rights reserved.