Class ReflectionConverter
- java.lang.Object
-
- com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
-
- com.thoughtworks.xstream.converters.reflection.ReflectionConverter
-
- All Implemented Interfaces:
Converter
,ConverterMatcher
,Caching
- Direct Known Subclasses:
AnnotationReflectionConverter
,LookAndFeelConverter
public class ReflectionConverter extends AbstractReflectionConverter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class
type
-
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
-
-
Constructor Summary
Constructors Constructor Description ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)
ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, java.lang.Class type)
Construct a ReflectionConverter for an explicit type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.-
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
-
-
-
-
Constructor Detail
-
ReflectionConverter
public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)
-
ReflectionConverter
public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, java.lang.Class type)
Construct a ReflectionConverter for an explicit type.- Parameters:
mapper
- the mapper in usereflectionProvider
- the reflection provider in usetype
- the explicit type to handle- Since:
- 1.4.7
-
-
Method Detail
-
canConvert
public boolean canConvert(java.lang.Class type)
Description copied from interface:ConverterMatcher
Determines whether the converter can marshall a particular type.- Parameters:
type
- the Class representing the object type to be converted
-
-