Top Description Fields Constructors Methods
com.thoughtworks.xstream.converters.reflection

public Class ReflectionProviderWrapper

extends Object
implements ReflectionProvider
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.converters.reflection.ReflectionProvider
Known Direct Subclasses
com.thoughtworks.xstream.converters.reflection.SerializableConverter.UnserializableParentsReflectionProvider, com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.CGLIBFilteringReflectionProvider
Imports
java.lang.reflect.Field

A wrapper implementation for the ReflectionProvider.
Author
Jörg Schaible
Since
1.2

Field Summary

Modifier and TypeField and Description
protected final ReflectionProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public Field
getField(Class<T>
class where the field was defined
definedIn
,
String
field name
fieldName
)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getField.

Returns a field defined in some class.
public Field
getFieldOrNull(Class<T>
class where the field was defined
definedIn
,
String
field name
fieldName
)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getFieldOrNull.

Returns a field defined in some class.
public Class<T>
public Object
newInstance(Class<T>
the type to instantiate
type
)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.newInstance.

Creates a new instance of the specified type.
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

wrappedback to summary
protected final ReflectionProvider wrapped

Constructor Detail

ReflectionProviderWrapperback to summary
public ReflectionProviderWrapper(ReflectionProvider wrapper)

Method Detail

fieldDefinedInClassback to summary
public boolean fieldDefinedInClass(String fieldName, Class<T> type)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.fieldDefinedInClass.

Deprecated

As of 1.4.5, use getFieldOrNull(Class, String) instead

getFieldback to summary
public Field getField(Class<T> definedIn, String fieldName)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getField.

Doc from com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getField.

Returns a field defined in some class.

Parameters
definedIn:Class<T>

class where the field was defined

fieldName:String

field name

Returns:Field

the field itself

getFieldOrNullback to summary
public Field getFieldOrNull(Class<T> definedIn, String fieldName)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getFieldOrNull.

Doc from com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getFieldOrNull.

Returns a field defined in some class.

Parameters
definedIn:Class<T>

class where the field was defined

fieldName:String

field name

Returns:Field

the field itself or null

getFieldTypeback to summary
public Class<T> getFieldType(Object object, String fieldName, Class<T> definedIn)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.getFieldType.

newInstanceback to summary
public Object newInstance(Class<T> type)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.newInstance.

Doc from com.thoughtworks.xstream.converters.reflection.ReflectionProvider.newInstance.

Creates a new instance of the specified type. It is in the responsibility of the implementation how such an instance is created.

Parameters
type:Class<T>

the type to instantiate

Returns:Object

a new instance of this type

visitSerializableFieldsback to summary
public void visitSerializableFields(Object object, ReflectionProvider.Visitor visitor)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.visitSerializableFields.

writeFieldback to summary
public void writeField(Object object, String fieldName, Object value, Class<T> definedIn)

Implements com.thoughtworks.xstream.converters.reflection.ReflectionProvider.writeField.