Package org.zkoss.xel

Examples of org.zkoss.xel.FunctionMapper.resolveFunction()


*/
        return resolveVariable(resolver, (String)_value, ctx);
      }
    } else if (_type == TokenType.FUNCTION) {
      final FunctionMapper mapper = ctx.getFunctionMapper();
      final Function fn = mapper.resolveFunction("", (String)_value);
      if (fn == null) { //cannot find the specified function
        throw new SSErrorXelException(SSError.NAME);
      }
      Object[] args = new Object[getOperands().size()];
      int j = 0;
View Full Code Here


      } else if (_subtype == TokenSubtype.VAR) { //refer to a variable
        sb.append(_value);
      }
    } else if (_type == TokenType.FUNCTION) {
      final FunctionMapper mapper = ctx.getFunctionMapper();
      final Function fn = mapper.resolveFunction("", (String)_value);
      if (fn == null) { //cannot find the specified function
        sb.append(SSError.NAME);
      } else {
        sb.append(_value).append("(");
        Collection opns = getOperands();
View Full Code Here

   */
  public Function resolveFunction(String arg0, String arg1)
      throws XelException {
    for(final Iterator it=_mappers.iterator(); it.hasNext();) {
      final FunctionMapper mapper = (FunctionMapper) it.next();
      final Function fun = mapper.resolveFunction(arg0, arg1);
      if (fun != null) return fun;
    }
    return null;
  }

View Full Code Here

        throws XelException {
      final Page page = getPage();
      if (page != null) {
        final FunctionMapper mapper = page.getFunctionMapper();
        if (mapper != null) {
          return mapper.resolveFunction(prefix, name);
        }
      }
      return null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.