org.melati.poem.util
Class ClassUtils

Package class diagram package ClassUtils
java.lang.Object
  extended by org.melati.poem.util.ClassUtils

public final class ClassUtils
extends Object

Since:
15 Jun 2007
Author:
timp

Method Summary
static Method getNoArgMethod(Class<?> clazz, String methodName)
           
static Method[] getOneArgumentMethods(Class<?> clazz, String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOneArgumentMethods

public static Method[] getOneArgumentMethods(Class<?> clazz,
                                             String methodName)
Parameters:
clazz - The class to introspect
methodName - The name of one argument methods to find
Returns:
An array of methods with the given name and one argument

getNoArgMethod

public static Method getNoArgMethod(Class<?> clazz,
                                    String methodName)
Parameters:
clazz - The class to introspect
methodName - The name of the no argument public method to return
Returns:
An accessible Method with the given name and no arguments or null


Copyright © 2000-2010 PanEris. All Rights Reserved.