C# Class Boo.Lang.Runtime.RuntimeServices

Show file Open project: boo-lang/boo

Public Methods

Method Description
AddArrays ( Type resultingElementType, Array lhs, Array rhs ) : Array
CheckArrayUnpack ( Array array, int expected ) : void
CheckNumericPromotion ( IConvertible convertible ) : IConvertible
CheckNumericPromotion ( object value ) : IConvertible
Coerce ( object value, Type toType ) : object
EqualityOperator ( object lhs, object rhs ) : bool
GetEnumerable ( object enumerable ) : IEnumerable
GetMultiDimensionalRange1 ( Array source, int ranges, bool compute_end, bool collapse ) : Array
GetProperty ( object target, string name ) : object
GetRange1 ( Array source, int begin ) : Array
GetRange2 ( Array source, int begin, int end ) : Array
GetSlice ( object target, string name, object args ) : object
Invoke ( object target, string name, object args ) : object
InvokeBinaryOperator ( string operatorName, object lhs, object rhs ) : object
InvokeCallable ( object target, object args ) : object
InvokeUnaryOperator ( string operatorName, object operand ) : object
Len ( object obj ) : int
Mid ( string s, int begin, int end ) : string
MoveNext ( IEnumerator enumerator ) : object
NormalizeArrayIndex ( Array array, int index ) : int
NormalizeIndex ( int len, int index ) : int
NormalizeStringIndex ( string s, int index ) : int
PropagateValueTypeChanges ( ValueTypeChange changes ) : void
RegisterExtensions ( Type extensions ) : void
SetMultiDimensionalRange1 ( Array source, Array dest, int ranges, bool compute_end, bool collapse ) : void
SetProperty ( object target, string name, object value ) : object
SetSlice ( object target, string name, object args ) : object
ToBool ( decimal value ) : bool
ToBool ( double value ) : bool
ToBool ( float value ) : bool
ToBool ( object value ) : bool
UnRegisterExtensions ( Type extensions ) : void
UnboxBoolean ( object value ) : System.Boolean
UnboxByte ( object value ) : Byte
UnboxChar ( object value ) : char
UnboxDecimal ( object value ) : Decimal
UnboxDouble ( object value ) : Double
UnboxInt16 ( object value ) : Int16
UnboxInt32 ( object value ) : Int32
UnboxInt64 ( object value ) : System.Int64
UnboxSByte ( object value ) : SByte
UnboxSingle ( object value ) : System.Single
UnboxUInt16 ( object value ) : UInt16
UnboxUInt32 ( object value ) : UInt32
UnboxUInt64 ( object value ) : System.UInt64
WithExtensions ( Type extensions, CodeBlock block ) : void
op_Addition ( object lhs, string rhs ) : string
op_Addition ( string lhs, object rhs ) : string
op_Addition ( string lhs, string rhs ) : string
op_Equality ( Array lhs, Array rhs ) : bool
op_Match ( string input, System pattern ) : bool
op_Match ( string input, string pattern ) : bool
op_Member ( char lhs, string rhs ) : bool
op_Member ( object lhs, IDictionary rhs ) : bool
op_Member ( object lhs, IEnumerable rhs ) : bool
op_Member ( object lhs, IList rhs ) : bool
op_Member ( string lhs, string rhs ) : bool
op_Modulus ( string lhs, IEnumerable rhs ) : string
op_Modulus ( string lhs, object rhs ) : string
op_Multiply ( Array lhs, int count ) : Array
op_Multiply ( int count, Array rhs ) : Array
op_Multiply ( int count, string rhs ) : string
op_Multiply ( string lhs, int count ) : string
op_NotMatch ( string input, System pattern ) : bool
op_NotMatch ( string input, string pattern ) : bool
op_NotMember ( object lhs, IDictionary rhs ) : bool
op_NotMember ( object lhs, IEnumerable rhs ) : bool
op_NotMember ( object lhs, IList rhs ) : bool
op_NotMember ( string lhs, string rhs ) : bool

Private Methods

Method Description
ArrayEqualityImpl ( Array lhs, Array rhs ) : bool
CoercibleDispatcher ( object o, object args ) : object
CreateBoolConverter ( Type type ) : Dispatcher
CreateCoerceDispatcher ( object value, Type toType ) : Dispatcher
CreateGetSliceDispatcher ( object target, string name, object args ) : Dispatcher
CreateMethodDispatcher ( object target, string name, object args ) : Dispatcher
CreatePropGetDispatcher ( object target, string name ) : Dispatcher
CreatePropSetDispatcher ( object target, string name, object value ) : Dispatcher
CreateSetSliceDispatcher ( object target, string name, object args ) : Dispatcher
DoCreateMethodDispatcher ( object target, Type targetType, string name, object args ) : Dispatcher
DoCreatePropGetDispatcher ( object target, Type type, string name ) : Dispatcher
DoCreatePropSetDispatcher ( object target, Type type, string name, object value ) : Dispatcher
EmitImplicitConversionDispatcher ( MethodInfo method ) : Dispatcher
EmitPromotionDispatcher ( Type fromType, Type toType ) : Dispatcher
EqualityOperator ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : bool
Error ( string format ) : void
FindImplicitConversionMethod ( IEnumerable candidates, Type from, Type to ) : MethodInfo
FindImplicitConversionOperator ( Type from, Type to ) : MethodInfo
FormatOperatorName ( string operatorName ) : string
GetArraySlice ( object target, object args ) : object
GetConvertTypeCode ( TypeCode lhsTypeCode, TypeCode rhsTypeCode ) : TypeCode
GetDefaultMemberName ( Type type ) : String
GetDispatcher ( object target, object args, string cacheKeyName, DispatcherCache factory ) : Dispatcher
GetDispatcher ( object target, string cacheKeyName, Type cacheKeyTypes, DispatcherCache factory ) : Dispatcher
GetExtensionMethods ( ) : IEnumerable
IdentityDispatcher ( object o, object args ) : object
InvokeRuntimeServicesOperator ( string operatorName, object args ) : object
IsNumeric ( TypeCode code ) : bool
IsPromotableNumeric ( Type fromType ) : bool
IsPromotableNumeric ( TypeCode code ) : bool
MissingOperatorMessageFor ( string operatorName, Type lhsType, Type rhsType ) : string
SetArraySlice ( object target, object args ) : object
ToBoolTrue ( object value, object arguments ) : object
UnboxBooleanDispatcher ( object value, object arguments ) : object
op_Addition ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_BitwiseAnd ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_BitwiseOr ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_Division ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_ExclusiveOr ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_Exponentiation ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : double
op_GreaterThan ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : bool
op_GreaterThanOrEqual ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : bool
op_LessThan ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : bool
op_LessThanOrEqual ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : bool
op_Modulus ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_Multiply ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_ShiftLeft ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_ShiftRight ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_Subtraction ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
op_UnaryNegation ( object operand, TypeCode operandTypeCode ) : object

Method Details

AddArrays() public static method

public static AddArrays ( Type resultingElementType, Array lhs, Array rhs ) : Array
resultingElementType System.Type
lhs System.Array
rhs System.Array
return System.Array

CheckArrayUnpack() public static method

public static CheckArrayUnpack ( Array array, int expected ) : void
array System.Array
expected int
return void

CheckNumericPromotion() public static method

public static CheckNumericPromotion ( IConvertible convertible ) : IConvertible
convertible IConvertible
return IConvertible

CheckNumericPromotion() public static method

public static CheckNumericPromotion ( object value ) : IConvertible
value object
return IConvertible

Coerce() public static method

public static Coerce ( object value, Type toType ) : object
value object
toType System.Type
return object

EqualityOperator() public static method

public static EqualityOperator ( object lhs, object rhs ) : bool
lhs object
rhs object
return bool

GetEnumerable() public static method

public static GetEnumerable ( object enumerable ) : IEnumerable
enumerable object
return IEnumerable

GetMultiDimensionalRange1() public static method

public static GetMultiDimensionalRange1 ( Array source, int ranges, bool compute_end, bool collapse ) : Array
source System.Array
ranges int
compute_end bool
collapse bool
return System.Array

GetProperty() public static method

public static GetProperty ( object target, string name ) : object
target object
name string
return object

GetRange1() public static method

public static GetRange1 ( Array source, int begin ) : Array
source System.Array
begin int
return System.Array

GetRange2() public static method

public static GetRange2 ( Array source, int begin, int end ) : Array
source System.Array
begin int
end int
return System.Array

GetSlice() public static method

public static GetSlice ( object target, string name, object args ) : object
target object
name string
args object
return object

Invoke() public static method

public static Invoke ( object target, string name, object args ) : object
target object
name string
args object
return object

InvokeBinaryOperator() public static method

public static InvokeBinaryOperator ( string operatorName, object lhs, object rhs ) : object
operatorName string
lhs object
rhs object
return object

InvokeCallable() public static method

public static InvokeCallable ( object target, object args ) : object
target object
args object
return object

InvokeUnaryOperator() public static method

public static InvokeUnaryOperator ( string operatorName, object operand ) : object
operatorName string
operand object
return object

Len() public static method

public static Len ( object obj ) : int
obj object
return int

Mid() public static method

public static Mid ( string s, int begin, int end ) : string
s string
begin int
end int
return string

MoveNext() public static method

public static MoveNext ( IEnumerator enumerator ) : object
enumerator IEnumerator
return object

NormalizeArrayIndex() public static method

public static NormalizeArrayIndex ( Array array, int index ) : int
array System.Array
index int
return int

NormalizeIndex() public static method

public static NormalizeIndex ( int len, int index ) : int
len int
index int
return int

NormalizeStringIndex() public static method

public static NormalizeStringIndex ( string s, int index ) : int
s string
index int
return int

PropagateValueTypeChanges() public static method

public static PropagateValueTypeChanges ( ValueTypeChange changes ) : void
changes ValueTypeChange
return void

RegisterExtensions() public static method

public static RegisterExtensions ( Type extensions ) : void
extensions System.Type
return void

SetMultiDimensionalRange1() public static method

public static SetMultiDimensionalRange1 ( Array source, Array dest, int ranges, bool compute_end, bool collapse ) : void
source System.Array
dest System.Array
ranges int
compute_end bool
collapse bool
return void

SetProperty() public static method

public static SetProperty ( object target, string name, object value ) : object
target object
name string
value object
return object

SetSlice() public static method

public static SetSlice ( object target, string name, object args ) : object
target object
name string
args object
return object

ToBool() public static method

public static ToBool ( decimal value ) : bool
value decimal
return bool

ToBool() public static method

public static ToBool ( double value ) : bool
value double
return bool

ToBool() public static method

public static ToBool ( float value ) : bool
value float
return bool

ToBool() public static method

public static ToBool ( object value ) : bool
value object
return bool

UnRegisterExtensions() public static method

public static UnRegisterExtensions ( Type extensions ) : void
extensions System.Type
return void

UnboxBoolean() public static method

public static UnboxBoolean ( object value ) : System.Boolean
value object
return System.Boolean

UnboxByte() public static method

public static UnboxByte ( object value ) : Byte
value object
return Byte

UnboxChar() public static method

public static UnboxChar ( object value ) : char
value object
return char

UnboxDecimal() public static method

public static UnboxDecimal ( object value ) : Decimal
value object
return Decimal

UnboxDouble() public static method

public static UnboxDouble ( object value ) : Double
value object
return Double

UnboxInt16() public static method

public static UnboxInt16 ( object value ) : Int16
value object
return System.Int16

UnboxInt32() public static method

public static UnboxInt32 ( object value ) : Int32
value object
return System.Int32

UnboxInt64() public static method

public static UnboxInt64 ( object value ) : System.Int64
value object
return System.Int64

UnboxSByte() public static method

public static UnboxSByte ( object value ) : SByte
value object
return SByte

UnboxSingle() public static method

public static UnboxSingle ( object value ) : System.Single
value object
return System.Single

UnboxUInt16() public static method

public static UnboxUInt16 ( object value ) : UInt16
value object
return System.UInt16

UnboxUInt32() public static method

public static UnboxUInt32 ( object value ) : UInt32
value object
return System.UInt32

UnboxUInt64() public static method

public static UnboxUInt64 ( object value ) : System.UInt64
value object
return System.UInt64

WithExtensions() public static method

public static WithExtensions ( Type extensions, CodeBlock block ) : void
extensions System.Type
block CodeBlock
return void

op_Addition() public static method

public static op_Addition ( object lhs, string rhs ) : string
lhs object
rhs string
return string

op_Addition() public static method

public static op_Addition ( string lhs, object rhs ) : string
lhs string
rhs object
return string

op_Addition() public static method

public static op_Addition ( string lhs, string rhs ) : string
lhs string
rhs string
return string

op_Equality() public static method

public static op_Equality ( Array lhs, Array rhs ) : bool
lhs System.Array
rhs System.Array
return bool

op_Match() public static method

public static op_Match ( string input, System pattern ) : bool
input string
pattern System
return bool

op_Match() public static method

public static op_Match ( string input, string pattern ) : bool
input string
pattern string
return bool

op_Member() public static method

public static op_Member ( char lhs, string rhs ) : bool
lhs char
rhs string
return bool

op_Member() public static method

public static op_Member ( object lhs, IDictionary rhs ) : bool
lhs object
rhs IDictionary
return bool

op_Member() public static method

public static op_Member ( object lhs, IEnumerable rhs ) : bool
lhs object
rhs IEnumerable
return bool

op_Member() public static method

public static op_Member ( object lhs, IList rhs ) : bool
lhs object
rhs IList
return bool

op_Member() public static method

public static op_Member ( string lhs, string rhs ) : bool
lhs string
rhs string
return bool

op_Modulus() public static method

public static op_Modulus ( string lhs, IEnumerable rhs ) : string
lhs string
rhs IEnumerable
return string

op_Modulus() public static method

public static op_Modulus ( string lhs, object rhs ) : string
lhs string
rhs object
return string

op_Multiply() public static method

public static op_Multiply ( Array lhs, int count ) : Array
lhs System.Array
count int
return System.Array

op_Multiply() public static method

public static op_Multiply ( int count, Array rhs ) : Array
count int
rhs System.Array
return System.Array

op_Multiply() public static method

public static op_Multiply ( int count, string rhs ) : string
count int
rhs string
return string

op_Multiply() public static method

public static op_Multiply ( string lhs, int count ) : string
lhs string
count int
return string

op_NotMatch() public static method

public static op_NotMatch ( string input, System pattern ) : bool
input string
pattern System
return bool

op_NotMatch() public static method

public static op_NotMatch ( string input, string pattern ) : bool
input string
pattern string
return bool

op_NotMember() public static method

public static op_NotMember ( object lhs, IDictionary rhs ) : bool
lhs object
rhs IDictionary
return bool

op_NotMember() public static method

public static op_NotMember ( object lhs, IEnumerable rhs ) : bool
lhs object
rhs IEnumerable
return bool

op_NotMember() public static method

public static op_NotMember ( object lhs, IList rhs ) : bool
lhs object
rhs IList
return bool

op_NotMember() public static method

public static op_NotMember ( string lhs, string rhs ) : bool
lhs string
rhs string
return bool