public class ReflectionProviderWrapper extends java.lang.Object implements ReflectionProvider
ReflectionProvider.Visitor
Modifier and Type | Field and Description |
---|---|
protected ReflectionProvider |
wrapped |
Constructor and Description |
---|
ReflectionProviderWrapper(ReflectionProvider wrapper) |
Modifier and Type | Method and Description |
---|---|
boolean |
fieldDefinedInClass(java.lang.String fieldName,
java.lang.Class type)
Deprecated.
As of 1.4.5, use
getFieldOrNull(Class, String) instead |
java.lang.reflect.Field |
getField(java.lang.Class definedIn,
java.lang.String fieldName)
Returns a field defined in some class.
|
java.lang.reflect.Field |
getFieldOrNull(java.lang.Class definedIn,
java.lang.String fieldName)
Returns a field defined in some class.
|
java.lang.Class |
getFieldType(java.lang.Object object,
java.lang.String fieldName,
java.lang.Class definedIn) |
java.lang.Object |
newInstance(java.lang.Class type)
Creates a new instance of the specified type.
|
void |
visitSerializableFields(java.lang.Object object,
ReflectionProvider.Visitor visitor) |
void |
writeField(java.lang.Object object,
java.lang.String fieldName,
java.lang.Object value,
java.lang.Class definedIn) |
protected final ReflectionProvider wrapped
public ReflectionProviderWrapper(ReflectionProvider wrapper)
public boolean fieldDefinedInClass(java.lang.String fieldName, java.lang.Class type)
getFieldOrNull(Class, String)
insteadfieldDefinedInClass
in interface ReflectionProvider
public java.lang.reflect.Field getField(java.lang.Class definedIn, java.lang.String fieldName)
ReflectionProvider
getField
in interface ReflectionProvider
definedIn
- class where the field was definedfieldName
- field namepublic java.lang.reflect.Field getFieldOrNull(java.lang.Class definedIn, java.lang.String fieldName)
ReflectionProvider
getFieldOrNull
in interface ReflectionProvider
definedIn
- class where the field was definedfieldName
- field namepublic java.lang.Class getFieldType(java.lang.Object object, java.lang.String fieldName, java.lang.Class definedIn)
getFieldType
in interface ReflectionProvider
public java.lang.Object newInstance(java.lang.Class type)
ReflectionProvider
newInstance
in interface ReflectionProvider
type
- the type to instantiatepublic void visitSerializableFields(java.lang.Object object, ReflectionProvider.Visitor visitor)
visitSerializableFields
in interface ReflectionProvider
public void writeField(java.lang.Object object, java.lang.String fieldName, java.lang.Object value, java.lang.Class definedIn)
writeField
in interface ReflectionProvider
Copyright © 2004–2024 XStream. All rights reserved.