C# 클래스 Boo.Lang.Compiler.TypeSystem.GenericMapping

Maps entities onto their constructed counterparts, substituting type arguments for generic parameters.
파일 보기 프로젝트 열기: boo/boo-lang 1 사용 예제들

공개 메소드들

메소드 설명
EntityNeedsMapping ( IEntity entity ) : bool
GenericMapping ( TypeSystemServices tss, IMethod constructedMethod, IType arguments ) : System

Constructs a new generic mapping between a generic method and one of its constructed methods.

GenericMapping ( TypeSystemServices tss, IType constructedType, IType arguments ) : System

Constructs a new generic mapping between a generic type and one of its constructed types.

Map ( IConstructor source ) : IConstructor

Maps a constructor on a generic type definition to its constructed counterpart.

Map ( IEntity source ) : IEntity

Maps a type member involving generic arguments to its constructed counterpart, after substituting concrete types for generic arguments.

Map ( IEvent source ) : IEvent

Maps an event on a generic type definition to its constructed counterpart.

Map ( IField source ) : IField

Maps a field on a generic type definition to its constructed counterpart.

Map ( IMethod source ) : IMethod

Maps a method on a generic type definition to its constructed counterpart.

Map ( IParameter source ) : IParameter

Maps a parameter in a generic, constructed or mapped method to its constructed counterpart.

Map ( IParameter sources ) : IParameter[]

Maps an array of parameters in a generic, constructed or mapped method to their constructed counterparts.

Map ( IProperty source ) : IProperty

Maps a property on a generic type definition to its constructed counterpart.

Map ( IType source ) : IType

Maps a type involving generic parameters to its constructed counterpart.

UnMap ( IMethod method ) : IMethod

Gets the method from which the specified method was mapped.

보호된 메소드들

메소드 설명
GenericMapping ( TypeSystemServices tss, IGenericParameter parameters, IType arguments ) : System

Constrcuts a new GenericMapping for a specific mapping of generic parameters to type arguments.

MapType ( IType sourceType ) : IType

Maps a type involving generic parameters to the corresponding type after substituting concrete arguments for generic parameters.

If the source type is a generic parameter, it is mapped to the corresponding argument. If the source type is an open generic type using any of the specified generic parameters, it is mapped to a closed constructed type based on the specified arguments.

비공개 메소드들

메소드 설명
MapAmbiguousEntity ( Ambiguous source ) : IEntity

메소드 상세

EntityNeedsMapping() 공개 메소드

public EntityNeedsMapping ( IEntity entity ) : bool
entity IEntity
리턴 bool

GenericMapping() 보호된 메소드

Constrcuts a new GenericMapping for a specific mapping of generic parameters to type arguments.
protected GenericMapping ( TypeSystemServices tss, IGenericParameter parameters, IType arguments ) : System
tss TypeSystemServices
parameters IGenericParameter The generic parameters that should be mapped.
arguments IType The type arguments to map generic parameters to.
리턴 System

GenericMapping() 공개 메소드

Constructs a new generic mapping between a generic method and one of its constructed methods.
public GenericMapping ( TypeSystemServices tss, IMethod constructedMethod, IType arguments ) : System
tss TypeSystemServices
constructedMethod IMethod
arguments IType
리턴 System

GenericMapping() 공개 메소드

Constructs a new generic mapping between a generic type and one of its constructed types.
public GenericMapping ( TypeSystemServices tss, IType constructedType, IType arguments ) : System
tss TypeSystemServices
constructedType IType
arguments IType
리턴 System

Map() 공개 메소드

Maps a constructor on a generic type definition to its constructed counterpart.
public Map ( IConstructor source ) : IConstructor
source IConstructor
리턴 IConstructor

Map() 공개 메소드

Maps a type member involving generic arguments to its constructed counterpart, after substituting concrete types for generic arguments.
public Map ( IEntity source ) : IEntity
source IEntity
리턴 IEntity

Map() 공개 메소드

Maps an event on a generic type definition to its constructed counterpart.
public Map ( IEvent source ) : IEvent
source IEvent
리턴 IEvent

Map() 공개 메소드

Maps a field on a generic type definition to its constructed counterpart.
public Map ( IField source ) : IField
source IField
리턴 IField

Map() 공개 메소드

Maps a method on a generic type definition to its constructed counterpart.
public Map ( IMethod source ) : IMethod
source IMethod
리턴 IMethod

Map() 공개 메소드

Maps a parameter in a generic, constructed or mapped method to its constructed counterpart.
public Map ( IParameter source ) : IParameter
source IParameter
리턴 IParameter

Map() 공개 메소드

Maps an array of parameters in a generic, constructed or mapped method to their constructed counterparts.
public Map ( IParameter sources ) : IParameter[]
sources IParameter
리턴 IParameter[]

Map() 공개 메소드

Maps a property on a generic type definition to its constructed counterpart.
public Map ( IProperty source ) : IProperty
source IProperty
리턴 IProperty

Map() 공개 메소드

Maps a type involving generic parameters to its constructed counterpart.
public Map ( IType source ) : IType
source IType
리턴 IType

MapType() 보호된 메소드

Maps a type involving generic parameters to the corresponding type after substituting concrete arguments for generic parameters.
If the source type is a generic parameter, it is mapped to the corresponding argument. If the source type is an open generic type using any of the specified generic parameters, it is mapped to a closed constructed type based on the specified arguments.
protected MapType ( IType sourceType ) : IType
sourceType IType
리턴 IType

UnMap() 공개 메소드

Gets the method from which the specified method was mapped.
public UnMap ( IMethod method ) : IMethod
method IMethod
리턴 IMethod