C# Class IronPython.Runtime.Types.TypeInfo.MemberBinder

Base class used for resolving a name into a member on the type.
Mostra file Open project: jschementi/iron

Public Methods

Method Description
GetBaseInstanceMethod ( Type type ) : MemberGroup

Gets an instance op method for the given type and name. Instance ops methods appaer on the base most class that's required to expose it. So if we have: Array[int], Array, object we'd only add an instance op method to Array and Array[int] inherits it. It's obviously not on object because if it was there we'd just put the method in ObjectOps. Therefore the different binders expose this at the appropriate times.

GetContributingTypes ( Type t ) : IList
GetInterfaces ( Type t ) : IList
GetMember ( Type type, string name ) : MemberGroup
MemberBinder ( PythonBinder binder ) : System

Protected Methods

Method Description
GetMember ( Type type, string name, BindingFlags flags ) : MemberGroup

Method Details

GetBaseInstanceMethod() public abstract method

Gets an instance op method for the given type and name. Instance ops methods appaer on the base most class that's required to expose it. So if we have: Array[int], Array, object we'd only add an instance op method to Array and Array[int] inherits it. It's obviously not on object because if it was there we'd just put the method in ObjectOps. Therefore the different binders expose this at the appropriate times.
public abstract GetBaseInstanceMethod ( Type type ) : MemberGroup
type System.Type
return MemberGroup

GetContributingTypes() public abstract method

public abstract GetContributingTypes ( Type t ) : IList
t System.Type
return IList

GetInterfaces() public abstract method

public abstract GetInterfaces ( Type t ) : IList
t System.Type
return IList

GetMember() public abstract method

public abstract GetMember ( Type type, string name ) : MemberGroup
type System.Type
name string
return MemberGroup

GetMember() protected method

protected GetMember ( Type type, string name, BindingFlags flags ) : MemberGroup
type System.Type
name string
flags BindingFlags
return MemberGroup

MemberBinder() public method

public MemberBinder ( PythonBinder binder ) : System
binder IronPython.Runtime.Binding.PythonBinder
return System