C# Class Boo.Lang.Runtime.MethodResolver

Exibir arquivo Open project: boo/boo-lang Class Usage Examples

Public Methods

Method Description
GetArgumentTypes ( object arguments ) : System.Type[]
MethodResolver ( ) : System
ResolveMethod ( IEnumerable candidates ) : CandidateMethod

Private Methods

Method Description
BestMethod ( List applicable ) : CandidateMethod
BetterCandidate ( CandidateMethod c1, CandidateMethod c2 ) : int
CalculateCandidateArgumentScore ( CandidateMethod candidateMethod, int argumentIndex, Type paramType ) : bool
CalculateCandidateScore ( CandidateMethod candidateMethod ) : bool
DoesNotRequireConversions ( CandidateMethod candidate ) : bool
FindApplicableMethods ( IEnumerable candidates ) : List
GetClassDepth ( Type type ) : int
GetInterfaceDepth ( Type type ) : int
GetLogicalTypeDepth ( Type type ) : int
GetObjectTypeOrNull ( object arg ) : Type
GetTypeDepth ( Type type ) : int
GetTypeGenerity ( Type type ) : int
HasParamArrayAttribute ( ParameterInfo info ) : bool
IsApplicableMethod ( MethodInfo method ) : CandidateMethod
IsVarArgs ( ParameterInfo parameters ) : bool
MoreSpecificType ( Type t1, Type t2 ) : int
TotalScore ( CandidateMethod c1 ) : int
ValidArgumentCount ( ParameterInfo parameters, bool varargs ) : bool

Method Details

GetArgumentTypes() public static method

public static GetArgumentTypes ( object arguments ) : System.Type[]
arguments object
return System.Type[]

MethodResolver() public method

public MethodResolver ( ) : System
return System

ResolveMethod() public method

public ResolveMethod ( IEnumerable candidates ) : CandidateMethod
candidates IEnumerable
return CandidateMethod