|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.serialization.ReflectionHelper
public final class ReflectionHelper
| Constructor Summary | |
|---|---|
ReflectionHelper()
|
|
| Method Summary | |
|---|---|
static Class<?> |
getNonArrayTypeFromSignature(String signature,
ClassLoader cl)
Lookup or load the non-array class based on the sepcified signature. |
static Field[] |
getNonTransientFields(Class<?> clazz)
Get all declared non-transient fields of the given class. |
static Method |
getReadObjectMethod(Class<?> clazz)
Determine whether the specified class has a writeObject() method with the signature specified in Serializable. |
static String |
getSignatureFromType(Class<?> clazz)
Get a unique string representation for the specified type. |
static Method |
getWriteObjectMethod(Class<?> clazz)
Determine whether the specified class has a writeObject() method with the signature specified in Serializable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionHelper()
| Method Detail |
|---|
public static Field[] getNonTransientFields(Class<?> clazz)
throws Exception
clazz - the class object from whch to extract the fields.
Field objects.
Exception - if any error occurs.
public static String getSignatureFromType(Class<?> clazz)
throws Exception
clazz - the type from which to get the signature.
Exception - if any error occurs.
public static Class<?> getNonArrayTypeFromSignature(String signature,
ClassLoader cl)
throws Exception
signature - the class signature.cl - the class laoder used to load the class.
Class object.
Exception - if any error occurs.
public static Method getWriteObjectMethod(Class<?> clazz)
throws Exception
Serializable.
clazz - the class to check.
Exception - if any error occurs.
public static Method getReadObjectMethod(Class<?> clazz)
throws Exception
Serializable.
clazz - the class to check.
Exception - if any error occurs.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||