Class SerializationMembers

java.lang.Object
com.thoughtworks.xstream.core.util.SerializationMembers
All Implemented Interfaces:
Caching

public class SerializationMembers extends Object implements Caching
Convenience wrapper to invoke special serialization methods on objects (and perform reflection caching).
  • Field Details

    • NO_METHOD

      private static final Method NO_METHOD
    • EMPTY_ARGS

      private static final Object[] EMPTY_ARGS
    • EMPTY_CLASSES

      private static final Class[] EMPTY_CLASSES
    • NO_FIELDS

      private static final Map NO_FIELDS
    • PERSISTENT_FIELDS_MODIFIER

      private static final int PERSISTENT_FIELDS_MODIFIER
      See Also:
    • OBJECT_TYPE_FIELDS

      private static final FastField[] OBJECT_TYPE_FIELDS
    • declaredCache

      private Map declaredCache
    • resRepCache

      private Map resRepCache
    • fieldCache

      private final Map fieldCache
  • Constructor Details

    • SerializationMembers

      public SerializationMembers()
  • Method Details

    • callReadResolve

      public Object callReadResolve(Object result)
      Resolves an object as native serialization does by calling readResolve(), if available.
    • callWriteReplace

      public Object callWriteReplace(Object object)
    • supportsReadObject

      public boolean supportsReadObject(Class type, boolean includeBaseClasses)
    • callReadObject

      public void callReadObject(Class type, Object object, ObjectInputStream stream)
    • supportsWriteObject

      public boolean supportsWriteObject(Class type, boolean includeBaseClasses)
    • callWriteObject

      public void callWriteObject(Class type, Object instance, ObjectOutputStream stream)
    • getMethod

      private Method getMethod(Class type, String name, Class[] parameterTypes, boolean includeBaseclasses)
    • getMethod

      private Method getMethod(Class type, String name, Class[] parameterTypes)
    • getRRMethod

      private Method getRRMethod(Class type, String name)
    • getSerializablePersistentFields

      public Map getSerializablePersistentFields(Class type)
    • flushCache

      public void flushCache()
      Specified by:
      flushCache in interface Caching