@Test public void proxyFunctions() throws Exception { System.out.println(" proxy functions"); String[] names = { "x", "y", "width", "height", "size" }; for (String name : names) { FunctionInfo info = FunctionLookup.getInfo(name, null); assertNotNull(info); assertTrue(info.isProxy()); } }
public static FunctionInfo getInfo(String jiffleName, List<String> argTypes) throws UndefinedFunctionException { for (FunctionInfo info : lookup) { if (info.matches(jiffleName, argTypes)) { return info; } } throw new UndefinedFunctionException("Unrecognized function: " + jiffleName); }
FunctionLookup { public static FunctionInfo getInfo(String jiffleName, List<String> argTypes) throws UndefinedFunctionException { for (FunctionInfo info : lookup) { if (info.matches(jiffleName, argTypes)) { return info; } } throw new UndefinedFunctionException("Unrecognized function: " + jiffleName); } }
FunctionLookup { public static FunctionInfo getInfo(String jiffleName, List<String> argTypes) throws UndefinedFunctionException { for (FunctionInfo info : lookup) { if (info.matches(jiffleName, argTypes)) { return info; } } throw new UndefinedFunctionException("Unrecognized function: " + jiffleName); }  }
FunctionLookup { public static FunctionInfo getInfo(String jiffleName, List<String> argTypes) throws UndefinedFunctionException { for (FunctionInfo info : lookup) { if (info.matches(jiffleName, argTypes)) { return info; } } throw new UndefinedFunctionException("Unrecognized function: " + jiffleName); }  static boolean isDefined(String jiffleName, List<String> argTypes); static FunctionInfo getInfo(String jiffleName, List<String> argTypes); static String getRuntimeExpr(String jiffleName, List<String> argTypes); static String getReturnType(String jiffleName); }
FunctionLookup { public static FunctionInfo getInfo(String jiffleName, List<String> argTypes) throws UndefinedFunctionException { for (FunctionInfo info : lookup) { if (info.matches(jiffleName, argTypes)) { return info; } } throw new UndefinedFunctionException("Unrecognized function: " + jiffleName); }  static boolean isDefined(String jiffleName, List<String> argTypes); static FunctionInfo getInfo(String jiffleName, List<String> argTypes); static String getRuntimeExpr(String jiffleName, List<String> argTypes); static String getReturnType(String jiffleName);  }