|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.parser.FunctionLookup
public class FunctionLookup
A lookup service used by the Jiffle compiler when parsing function calls in scripts.
| Constructor Summary | |
|---|---|
FunctionLookup()
|
|
| Method Summary | |
|---|---|
static FunctionInfo |
getInfo(String jiffleName,
List<String> argTypes)
Gets the info for a function. |
static String |
getReturnType(String jiffleName)
Searches for a function with a script name that matches jiffleName
and gets its return type. |
static String |
getRuntimeExpr(String jiffleName,
List<String> argTypes)
Gets the runtime source for the function. |
static boolean |
isDefined(String jiffleName,
List<String> argTypes)
Checks if a function is defined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionLookup()
| Method Detail |
|---|
public static boolean isDefined(String jiffleName,
List<String> argTypes)
jiffleName - the name of the function used in a Jiffle scriptargTypes - argument type names; null or empty for no-arg functions
true if defined; false otherwise
public static FunctionInfo getInfo(String jiffleName,
List<String> argTypes)
throws UndefinedFunctionException
jiffleName - the name of the function used in a Jiffle scriptargTypes - argument type names; null or empty for no-arg functions
UndefinedFunctionException - if jiffleName is not recognized
public static String getRuntimeExpr(String jiffleName,
List<String> 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 type names; null or empty for no-arg functions
UndefinedFunctionException - if jiffleName is not recognized
public static String 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 match
UndefinedFunctionException - if the name is not matched
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||