jdave.support
Class Reflection

java.lang.Object
  extended by jdave.support.Reflection

public class Reflection
extends Object

Author:
Lasse Koskela

Constructor Summary
Reflection()
           
 
Method Summary
static Method getMethod(Class<?> specType, String name, Class<?>[] parameterTypes, int... modifiers)
           
static Method getMethod(Class<?> specType, String name, int... modifiers)
           
static boolean isPublic(Method method)
           
static boolean isStatic(Method method)
           
static boolean isVoid(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflection

public Reflection()
Method Detail

getMethod

public static Method getMethod(Class<?> specType,
                               String name,
                               int... modifiers)
                        throws NoSuchMethodException
Throws:
NoSuchMethodException

getMethod

public static Method getMethod(Class<?> specType,
                               String name,
                               Class<?>[] parameterTypes,
                               int... modifiers)
                        throws NoSuchMethodException
Throws:
NoSuchMethodException

isVoid

public static boolean isVoid(Method method)

isPublic

public static boolean isPublic(Method method)

isStatic

public static boolean isStatic(Method method)


Copyright © 2010. All Rights Reserved.