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
  • Field Details

    • type

      private Class type
  • Constructor Details

    • ReflectionConverter

      public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)
    • ReflectionConverter

      public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, Class type)
      Construct a ReflectionConverter for an explicit type.
      Parameters:
      mapper - the mapper in use
      reflectionProvider - the reflection provider in use
      type - the explicit type to handle
      Since:
      1.4.7
  • Method Details

    • canConvert

      public boolean canConvert(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