com.thoughtworks.xstream.converters.reflection.ReflectionProvider |
Known Indirect Subclasses
HarmonyReflectionProvider |
Instantiates a new object on the Harmony JVM by bypassing the constructor (meaning code in
the constructor will never be executed and parameters do not have to be known). |
PureJavaReflectionProvider |
Pure Java ObjectFactory that instantiates objects using standard Java reflection, however the types of objects
that can be constructed are limited. |
ReflectionProviderWrapper |
A wrapper implementation for the ReflectionProvider. |
Sun14ReflectionProvider |
Instantiates a new object on the Sun JVM by bypassing the constructor (meaning code in the constructor
will never be executed and parameters do not have to be known). |
|
Class Overview
Provides core reflection services.
Summary
Nested Classes |
interface |
ReflectionProvider.Visitor |
A visitor interface for serializable fields defined in a class. |
Public Methods
public
abstract
boolean
fieldDefinedInClass
(String fieldName, Class type)
public
abstract
Field
getField
(Class definedIn, String fieldName)
Returns a field defined in some class.
Parameters
definedIn
| class where the field was defined |
fieldName
| field name |
public
abstract
Object
newInstance
(Class type)
Creates a new instance of the specified type. It is in the responsibility
of the implementation how such an instance is created.
Parameters
type
| the type to instantiate |
Returns
- a new instance of this type