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