Package org.zkoss.xel.util

Examples of org.zkoss.xel.util.MethodFunction


public class FuncMapper extends SimpleMapper {
  public Function resolveFunction(String prefix, String name)
  throws XelException {
    if ("quote".equals(name)) {
      try {
        return new MethodFunction(
          FuncMapper.class.getMethod("quote", new Class[] {String.class}));
      } catch (Exception ex) {
        throw XelException.Aide.wrap(ex);
      }
    }
View Full Code Here


      throw new UiException("Method not found: "+sig+" in "+clsnm+", "+pi.getLocator());
    }
    if ((mtd.getModifiers() & Modifier.STATIC) == 0)
      throw new UiException("Not a static method: "+mtd);

    pgdef.addXelMethod(prefix, nm, new MethodFunction(mtd));
  }
View Full Code Here

      }

      try {
        final Method mtd = Classes.getMethodBySignature(cls, sig, null);
        if ((mtd.getModifiers() & Modifier.STATIC) != 0)
          mtds.put(name, new MethodFunction(mtd));
        else
          log.error("Not a static method: "+mtd);
      } catch (ClassNotFoundException ex) {
        log.error("Relavant class not found when loading "+clsnm+", "+e.getLocator(), ex);
        excp = ex;
View Full Code Here

    } catch (Exception ex) {
      throw new ZestException("Method not found: "+sig+" in "+clsnm+", "+el.getLocator());
    }
    if ((mtd.getModifiers() & Modifier.STATIC) == 0)
      throw new ZestException("Not a static method: "+mtd+", "+el.getLocator());
    xelmtds.add(new Object[] {prefix, nm, new MethodFunction(mtd)});
  }
View Full Code Here

TOP

Related Classes of org.zkoss.xel.util.MethodFunction

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.