Table of Contents

Class CodeFlow

Namespace
Steeltoe.Common.Expression.Internal.Spring
Assembly
Steeltoe.Common.Expression.dll
public class CodeFlow
Inheritance
CodeFlow
Inherited Members

Constructors

CodeFlow(CompiledExpression)

public CodeFlow(CompiledExpression compiledExpression)

Parameters

compiledExpression CompiledExpression

Methods

AreBoxingCompatible(TypeDescriptor, TypeDescriptor)

public static bool AreBoxingCompatible(TypeDescriptor desc1, TypeDescriptor desc2)

Parameters

desc1 TypeDescriptor
desc2 TypeDescriptor

Returns

bool

EnterCompilationScope()

public void EnterCompilationScope()

ExitCompilationScope()

public void ExitCompilationScope()

Finish(int)

public DynamicMethod Finish(int compilationId)

Parameters

compilationId int

Returns

DynamicMethod

InsertAnyNecessaryTypeConversionBytecodes(ILGenerator, TypeDescriptor, TypeDescriptor)

public static void InsertAnyNecessaryTypeConversionBytecodes(ILGenerator gen, TypeDescriptor targetDescriptor, TypeDescriptor stackDescriptor)

Parameters

gen ILGenerator
targetDescriptor TypeDescriptor
stackDescriptor TypeDescriptor

InsertBoxIfNecessary(ILGenerator, TypeDescriptor)

public static void InsertBoxIfNecessary(ILGenerator gen, TypeDescriptor descriptor)

Parameters

gen ILGenerator
descriptor TypeDescriptor

InsertCastClass(ILGenerator, TypeDescriptor)

public static void InsertCastClass(ILGenerator gen, TypeDescriptor descriptor)

Parameters

gen ILGenerator
descriptor TypeDescriptor

InsertNumericUnboxOrPrimitiveTypeCoercion(ILGenerator, TypeDescriptor, TypeDescriptor)

public static void InsertNumericUnboxOrPrimitiveTypeCoercion(ILGenerator gen, TypeDescriptor stackDescriptor, TypeDescriptor targetDescriptor)

Parameters

gen ILGenerator
stackDescriptor TypeDescriptor
targetDescriptor TypeDescriptor

IsBooleanCompatible(TypeDescriptor)

public static bool IsBooleanCompatible(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

bool

IsIntegerForNumericOp(object)

public static bool IsIntegerForNumericOp(object value)

Parameters

value object

Returns

bool

IsPrimitive(Type)

public static bool IsPrimitive(Type type)

Parameters

type Type

Returns

bool

IsPrimitiveOrUnboxableSupportedNumber(TypeDescriptor)

public static bool IsPrimitiveOrUnboxableSupportedNumber(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

bool

IsPrimitiveOrUnboxableSupportedNumberOrBoolean(TypeDescriptor)

public static bool IsPrimitiveOrUnboxableSupportedNumberOrBoolean(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

bool

IsValueType(TypeDescriptor)

public static bool IsValueType(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

bool

LastDescriptor()

public TypeDescriptor LastDescriptor()

Returns

TypeDescriptor

LoadEvaluationContext(ILGenerator)

public static void LoadEvaluationContext(ILGenerator gen)

Parameters

gen ILGenerator

LoadTarget(ILGenerator)

public static void LoadTarget(ILGenerator gen)

Parameters

gen ILGenerator

NextFieldId()

public int NextFieldId()

Returns

int

PushDescriptor(TypeDescriptor)

public void PushDescriptor(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

RegisterNewField(string, object)

public void RegisterNewField(string constantFieldName, object fieldValue)

Parameters

constantFieldName string
fieldValue object

RegisterNewInitGenerator(Action<ILGenerator, CodeFlow>)

public void RegisterNewInitGenerator(Action<ILGenerator, CodeFlow> generator)

Parameters

generator Action<ILGenerator, CodeFlow>

ToBoxedDescriptor(TypeDescriptor)

public static TypeDescriptor ToBoxedDescriptor(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

TypeDescriptor

ToDescriptor(Type)

public static TypeDescriptor ToDescriptor(Type type)

Parameters

type Type

Returns

TypeDescriptor

ToDescriptorFromObject(object)

public static TypeDescriptor ToDescriptorFromObject(object value)

Parameters

value object

Returns

TypeDescriptor

ToDescriptors(Type[])

public static TypeDescriptor[] ToDescriptors(Type[] types)

Parameters

types Type[]

Returns

TypeDescriptor[]

ToPrimitiveTargetDescriptor(TypeDescriptor)

public static TypeDescriptor ToPrimitiveTargetDescriptor(TypeDescriptor descriptor)

Parameters

descriptor TypeDescriptor

Returns

TypeDescriptor

UnboxBooleanIfNecessary(ILGenerator)

public void UnboxBooleanIfNecessary(ILGenerator gen)

Parameters

gen ILGenerator