|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.reflect.ReflectHelper
public class 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 String |
getClassSignature(Class cl)
Returns JVM type signature for given class. |
static String |
getConstructorSignature(Constructor constructor)
Returns JVM type signature for a constructor. |
static String |
getFieldSignature(Field field)
Returns JVM type signature for a field. |
static String |
getMethodSignature(Method method)
Returns JVM type signature for a 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 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 -
public static String getClassSignature(Class cl)
cl -
public static String getConstructorSignature(Constructor constructor)
constructor -
public static String getFieldSignature(Field field)
field -
public static String getMethodSignature(Method method)
method -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||