public class ClassDescriptor
extends java.lang.Object
| Constructor and Description |
|---|
ClassDescriptor(Reflection reflection,
java.lang.Class<?> cls) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getCls() |
protected static java.lang.reflect.Method |
getInheritedMethod(java.lang.Class<?> cls,
java.lang.String name,
java.lang.Class<?>[] params,
java.lang.Class<?> ret) |
java.util.List<Property> |
getInheritedSerializableProperties() |
ClassDescriptor |
getParent() |
protected static java.lang.reflect.Method |
getPrivateMethod(java.lang.Class<?> cls,
java.lang.String name,
java.lang.Class<?>[] params,
java.lang.Class<?> ret) |
java.util.List<Property> |
getSerializableProperties() |
protected static java.util.List<Property> |
getSerializableProperties(Reflection reflection,
java.lang.Class<?> cls) |
boolean |
hasReadObjectMethod() |
boolean |
hasReadResolveMethod() |
boolean |
hasWriteObjectMethod() |
boolean |
hasWriteReplaceMethod() |
void |
invokeReadObjectMethod(java.io.ObjectInputStream ois,
java.lang.Object v) |
java.lang.Object |
invokeReadResolveMethod(java.lang.Object v) |
void |
invokeWriteObjectMethod(java.io.ObjectOutputStream oos,
java.lang.Object v) |
java.lang.Object |
invokeWriteReplaceMethod(java.lang.Object v) |
java.lang.Object |
newInstance() |
public ClassDescriptor(Reflection reflection, java.lang.Class<?> cls)
public java.lang.Class<?> getCls()
public java.lang.Object newInstance()
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic java.util.List<Property> getSerializableProperties()
public java.util.List<Property> getInheritedSerializableProperties()
public boolean hasWriteObjectMethod()
public void invokeWriteObjectMethod(java.io.ObjectOutputStream oos,
java.lang.Object v)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasReadObjectMethod()
public void invokeReadObjectMethod(java.io.ObjectInputStream ois,
java.lang.Object v)
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundExceptionjava.io.IOExceptionpublic boolean hasWriteReplaceMethod()
public java.lang.Object invokeWriteReplaceMethod(java.lang.Object v)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasReadResolveMethod()
public java.lang.Object invokeReadResolveMethod(java.lang.Object v)
throws java.io.IOException
java.io.IOExceptionpublic ClassDescriptor getParent()
protected static java.lang.reflect.Method getInheritedMethod(java.lang.Class<?> cls,
java.lang.String name,
java.lang.Class<?>[] params,
java.lang.Class<?> ret)
protected static java.lang.reflect.Method getPrivateMethod(java.lang.Class<?> cls,
java.lang.String name,
java.lang.Class<?>[] params,
java.lang.Class<?> ret)
protected static java.util.List<Property> getSerializableProperties(Reflection reflection, java.lang.Class<?> cls)