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
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException -
Field Summary
FieldsFields inherited from class AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker -
Constructor Summary
ConstructorsConstructorDescriptionReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider) ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, Class type) Construct a ReflectionConverter for an explicit type. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) Determines whether the converter can marshall a particular type.Methods inherited from class AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
-
Field Details
-
type
-
-
Constructor Details
-
ReflectionConverter
-
ReflectionConverter
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 Details
-
canConvert
Description copied from interface:ConverterMatcherDetermines whether the converter can marshall a particular type.- Parameters:
type- the Class representing the object type to be converted
-