Class ReflectivePropertyAccessor
Inheritance
System.Object
ReflectivePropertyAccessor
Assembly: Steeltoe.Common.Expression.dll
Syntax
public class ReflectivePropertyAccessor : IPropertyAccessor
Constructors
|
Edit this page
View Source
ReflectivePropertyAccessor()
Declaration
public ReflectivePropertyAccessor()
|
Edit this page
View Source
ReflectivePropertyAccessor(Boolean)
Declaration
public ReflectivePropertyAccessor(bool allowWrite)
Parameters
Type |
Name |
Description |
System.Boolean |
allowWrite |
|
Methods
|
Edit this page
View Source
CanRead(IEvaluationContext, Object, String)
Declaration
public bool CanRead(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
CanWrite(IEvaluationContext, Object, String)
Declaration
public bool CanWrite(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
CreateOptimalAccessor(IEvaluationContext, Object, String)
Declaration
public IPropertyAccessor CreateOptimalAccessor(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
IPropertyAccessor |
|
|
Edit this page
View Source
FindField(String, Type, Boolean)
Declaration
protected virtual FieldInfo FindField(string name, Type clazz, bool mustBeStatic)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Type |
clazz |
|
System.Boolean |
mustBeStatic |
|
Returns
Type |
Description |
FieldInfo |
|
|
Edit this page
View Source
FindGetterForProperty(String, Type, Boolean)
Declaration
protected virtual MethodInfo FindGetterForProperty(string propertyName, Type clazz, bool mustBeStatic)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Type |
clazz |
|
System.Boolean |
mustBeStatic |
|
Returns
Type |
Description |
MethodInfo |
|
|
Edit this page
View Source
FindSetterForProperty(String, Type, Boolean)
Declaration
protected virtual MethodInfo FindSetterForProperty(string propertyName, Type clazz, bool mustBeStatic)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Type |
clazz |
|
System.Boolean |
mustBeStatic |
|
Returns
Type |
Description |
MethodInfo |
|
|
Edit this page
View Source
GetSpecificTargetClasses()
Declaration
public virtual IList<Type> GetSpecificTargetClasses()
Returns
Type |
Description |
IList<Type> |
|
|
Edit this page
View Source
IsCandidateForProperty(MethodInfo, Type)
Declaration
protected virtual bool IsCandidateForProperty(MethodInfo method, Type targetClass)
Parameters
Type |
Name |
Description |
MethodInfo |
method |
|
Type |
targetClass |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Read(IEvaluationContext, Object, String)
Declaration
public ITypedValue Read(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
ITypedValue |
|
|
Edit this page
View Source
Write(IEvaluationContext, Object, String, Object)
Declaration
public void Write(IEvaluationContext context, object target, string name, object newValue)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
System.Object |
newValue |
|