C# Class Pchp.Core.Dynamic.OverloadResolver

Methods for selecting best method overload from possible candidates.
ファイルを表示 Open project: iolevel/peachpie

Public Methods

Method Description
IsVisible ( this m, Type classCtx ) : bool

Selects only candidates visible from the current class context.

SelectByName ( this candidates, string name ) : IEnumerable

Selects only candidates of given name.

SelectCandidates ( this type ) : IEnumerable

Selects all method candidates.

SelectStatic ( this candidates ) : IEnumerable

Selects only static methods.

SelectVisible ( this candidates, Type classCtx ) : IEnumerable
SelectVisible ( this methods, Type classCtx ) : System.Reflection.MethodInfo[]

Private Methods

Method Description
IsLocalsParameter ( ParameterInfo p ) : bool

Gets value indicating the parameter is a special local parameters parameter.

IsStaticBoundParameter ( ParameterInfo p ) : bool

Gets value indicating the parameter is a special late static bound parameter.

Method Details

IsVisible() public static method

Selects only candidates visible from the current class context.
public static IsVisible ( this m, Type classCtx ) : bool
m this
classCtx System.Type
return bool

SelectByName() public static method

Selects only candidates of given name.
public static SelectByName ( this candidates, string name ) : IEnumerable
candidates this
name string
return IEnumerable

SelectCandidates() public static method

Selects all method candidates.
public static SelectCandidates ( this type ) : IEnumerable
type this
return IEnumerable

SelectStatic() public static method

Selects only static methods.
public static SelectStatic ( this candidates ) : IEnumerable
candidates this
return IEnumerable

SelectVisible() public static method

public static SelectVisible ( this candidates, Type classCtx ) : IEnumerable
candidates this
classCtx System.Type
return IEnumerable

SelectVisible() public static method

public static SelectVisible ( this methods, Type classCtx ) : System.Reflection.MethodInfo[]
methods this
classCtx System.Type
return System.Reflection.MethodInfo[]