Table of Contents

Class PropertyOrFieldReference

Namespace
Steeltoe.Common.Expression.Internal.Spring.Ast
Assembly
Steeltoe.Common.Expression.dll
public class PropertyOrFieldReference : SpelNode, ISpelNode
Inheritance
PropertyOrFieldReference
Implements
Inherited Members

Constructors

PropertyOrFieldReference(bool, string, int, int)

public PropertyOrFieldReference(bool nullSafe, string propertyOrFieldName, int startPos, int endPos)

Parameters

nullSafe bool
propertyOrFieldName string
startPos int
endPos int

Properties

IsNullSafe

public bool IsNullSafe { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Methods

ComputeExitDescriptor(object, Type)

protected TypeDescriptor ComputeExitDescriptor(object result, Type propertyReturnType)

Parameters

result object
propertyReturnType Type

Returns

TypeDescriptor

GenerateCode(ILGenerator, CodeFlow)

public override void GenerateCode(ILGenerator gen, CodeFlow cf)

Parameters

gen ILGenerator
cf CodeFlow

GetValueInternal(ExpressionState)

public override ITypedValue GetValueInternal(ExpressionState state)

Parameters

state ExpressionState

Returns

ITypedValue

GetValueRef(ExpressionState)

protected override IValueRef GetValueRef(ExpressionState state)

Parameters

state ExpressionState

Returns

IValueRef

IsCompilable()

public override bool IsCompilable()

Returns

bool

IsWritable(ExpressionState)

public override bool IsWritable(ExpressionState state)

Parameters

state ExpressionState

Returns

bool

IsWritableProperty(string, ITypedValue, IEvaluationContext)

public bool IsWritableProperty(string name, ITypedValue contextObject, IEvaluationContext evalContext)

Parameters

name string
contextObject ITypedValue
evalContext IEvaluationContext

Returns

bool

SetExitTypeDescriptor(TypeDescriptor)

protected void SetExitTypeDescriptor(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

SetValue(ExpressionState, object)

public override void SetValue(ExpressionState state, object newValue)

Parameters

state ExpressionState
newValue object

ToStringAST()

public override string ToStringAST()

Returns

string