C# Class Fan.Sys.GenericType

GenericType is the base class for ListType, MapType, and MethodType which all support parameterization of the generic parameter types (such as A-H, V, K). Instances of GenericType are used to represent generic instances (for example an instance of ListType is used to represent string[]).
Inheritance: Type
Show file Open project: xored/f4

Public Methods

Method Description
@base ( ) : Type
@is ( Type type ) : bool
@params ( ) : Map
doc ( ) : string
dotnetRepr ( ) : bool
facet ( Type t, bool c ) : Facet
facets ( ) : List
fields ( ) : List
inheritance ( ) : List
isGenericInstance ( ) : bool
methods ( ) : List
mixins ( ) : List
name ( ) : string
pod ( ) : Pod
qname ( ) : string
signature ( ) : string
slot ( string name, bool check ) : Slot
slots ( ) : List

Protected Methods

Method Description
doParameterize ( Type t ) : Type

Parameterize t, where t is a generic parameter type such as V.

doReflect ( ) : void

Private Methods

Method Description
GenericType ( Type baseType ) : System.Collections
flags ( ) : int
makeParams ( ) : Map
parameterize ( Field f ) : Field

Parameterize the specified field (reuse if generic parameterization isn't necessary).

parameterize ( Method m ) : Method

Parameterize the specified method (reuse if generic parameterization isn't necessary).

parameterize ( Type t ) : Type

Parameterize t, where t is a generic parameter type such as V.

parameterizeFuncType ( FuncType t ) : FuncType

Recursively parameterize the pars of a method type.

parameterizeListType ( ListType t ) : Type

Recursively parameterize the a generic list type.

reflect ( ) : Type
toNullable ( ) : Type

Method Details

@base() public final method

public final @base ( ) : Type
return Type

@is() public method

public @is ( Type type ) : bool
type Type
return bool

@params() public method

public @params ( ) : Map
return Map

doParameterize() protected abstract method

Parameterize t, where t is a generic parameter type such as V.
protected abstract doParameterize ( Type t ) : Type
t Type
return Type

doReflect() protected method

protected doReflect ( ) : void
return void

doc() public method

public doc ( ) : string
return string

dotnetRepr() public final method

public final dotnetRepr ( ) : bool
return bool

facet() public method

public facet ( Type t, bool c ) : Facet
t Type
c bool
return Facet

facets() public method

public facets ( ) : List
return List

fields() public final method

public final fields ( ) : List
return List

inheritance() public final method

public final inheritance ( ) : List
return List

isGenericInstance() public method

public isGenericInstance ( ) : bool
return bool

methods() public final method

public final methods ( ) : List
return List

mixins() public final method

public final mixins ( ) : List
return List

name() public final method

public final name ( ) : string
return string

pod() public final method

public final pod ( ) : Pod
return Pod

qname() public final method

public final qname ( ) : string
return string

signature() public abstract method

public abstract signature ( ) : string
return string

slot() public final method

public final slot ( string name, bool check ) : Slot
name string
check bool
return Slot

slots() public final method

public final slots ( ) : List
return List