Package com.odiago.flumebase.lang

Examples of com.odiago.flumebase.lang.Function


  /**
   * Load instances of the built-in functions into the BuiltInSymbolTable.
   */
  private static void loadBuiltinFunction(Class<? extends Function> cls) {
    try {
      Function fn = (Function) cls.newInstance();
      Type retType = fn.getReturnType();
      List<Type> argTypes = fn.getArgumentTypes();
      List<Type> varArgTypes = fn.getVarArgTypes();
      String fnName = cls.getSimpleName();
      LOG.debug("Loaded built-in function: " + fnName);
      Symbol fnSymbol = new FnSymbol(fnName, fn, retType, argTypes, varArgTypes);
      BUILTINS.put(fnName, fnSymbol);
    } catch (InstantiationException ie) {
View Full Code Here

TOP

Related Classes of com.odiago.flumebase.lang.Function

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.