|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.transform.ReflectHelper
Helper class with utility methods for working with the java.lang.reflect.* package.
Constructor Summary | |
ReflectHelper()
|
Method Summary | |
static int |
calculateHash(Class klass)
Calculate the hash for a class. |
static int |
calculateHash(Constructor constructor)
Calculate the hash for a constructor. |
static int |
calculateHash(Field field)
Calculate the hash for a field. |
static int |
calculateHash(Method method)
Calculate the hash for a method. |
static List |
createCompleteSortedMethodList(Class klass)
Creates a sorted method list of all the methods in the class and super classes, including package private ones. |
static List |
createInterfaceDefinedSortedMethodList(Class klass,
List interfaceDeclaredMethods)
Creates a sorted method list of all the methods in the class and super classes, if and only if those are part of the given list of interfaces declared method |
static int |
getModifiersAsInt(String[] modifiers)
Converts modifiers represented in a string array to an int. |
static Class |
getPrimitiveClass(String className)
Checks if the class is a of a primitive type, if so create and return the class for the type else return null. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectHelper()
Method Detail |
public static List createCompleteSortedMethodList(Class klass)
klass
- the class with the methods
public static List createInterfaceDefinedSortedMethodList(Class klass, List interfaceDeclaredMethods)
klass
- the class with the methodsinterfaceDeclaredMethods
- the list of interface declared methods
public static int getModifiersAsInt(String[] modifiers)
modifiers
- the modifiers as strings
public static int calculateHash(Class klass)
klass
- the class
public static int calculateHash(Method method)
method
- the method
public static int calculateHash(Constructor constructor)
constructor
- the constructor
public static int calculateHash(Field field)
field
- the field
public static Class getPrimitiveClass(String className)
className
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |