net.sf.jasperreports.functions

## Class FunctionsUtil

- java.lang.Object
- - net.sf.jasperreports.functions.FunctionsUtil

-     public class FunctionsUtil
      extends java.lang.Object

  Version:
    $Id: CastorUtil.java 5880 2013-01-07 20:40:06Z teodord $
  Author:
    Teodor Danciu (teodord@users.sourceforge.net)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<FunctionsBundle>` | `getAllFunctionBundles()`
    `static FunctionsUtil` | `getInstance(JasperReportsContext jasperReportsContext)`
    `java.lang.reflect.Method` | `getMethod4Function(java.lang.String functionName)` public Class

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static FunctionsUtil getInstance(JasperReportsContext jasperReportsContext)

    - #### getAllFunctionBundles

          public java.util.List<FunctionsBundle> getAllFunctionBundles()

    - #### getMethod4Function

          public java.lang.reflect.Method getMethod4Function(java.lang.String functionName)

      public Class getClass4Function(String functionName) { List bundles = jasperReportsContext.getExtensions(FunctionsBundle.class); for (FunctionsBundle bundle : bundles) { List> classes = bundle.getFunctionClasses(); for (Class clazz : classes) { Method[] methods = clazz.getMethods(); for (Method method : methods) { if (functionName.equals(method.getName())) { return clazz; } } } } return null; } /**

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com