C# Class Babel.Compiler.TypeManager

ファイルを表示 Open project: shugo/babel Class Usage Examples

Protected Properties

Property Type Description
ancestorsTable System.Collections.Hashtable
assemblies System.Collections.ArrayList
boolType TypeData
builtinMethodContainers System.Collections.Hashtable
builtinTypeNames System.Collections.Hashtable
builtinTypes System.Collections.Hashtable
charType TypeData
classes System.Collections.Hashtable
constructorsTable System.Collections.Hashtable
customAttributesTable System.Collections.Hashtable
exceptionType TypeData
fltType TypeData
intType TypeData
methodsTable System.Collections.Hashtable
modules System.Collections.ArrayList
obType TypeData
parametersTable System.Collections.Hashtable
parentsTable System.Collections.Hashtable
strType TypeData
typeDataTable System.Collections.Hashtable
voidType TypeData

Public Methods

Method Description
AddAssembly ( Assembly assembly ) : void
AddBabelName ( MethodBuilder methodBuilder, string babelName ) : void
AddClass ( ClassDefinition cls ) : void
AddConstructor ( Type type, ConstructorBuilder constructor ) : UserDefinedConstructorData
AddCustomAttribute ( ICustomAttributeProvider provider, Attribute attribute ) : void
AddIterCreator ( MethodBuilder methodBuilder ) : void
AddIterCreatorName ( MethodBuilder methodBuilder, string name ) : void
AddMethod ( Type type, MethodBuilder method ) : UserDefinedMethodData
AddModule ( Module module ) : void
AddParameters ( MethodBase method, ParameterInfo parameters ) : void
AddSupertypingAdapter ( TypeBuilder typeBuilder, TypeData adapteeType, Type adapterType ) : void
AddType ( TypeData type ) : void
ExtractAncestors ( Type parents ) : System.Type[]
GetAncestors ( Type type ) : System.Type[]
GetArgumentMode ( ICustomAttributeProvider provider ) : ArgumentMode
GetBabelName ( ICustomAttributeProvider provider ) : string
GetBuiltinMethodContainer ( TypeData typeData ) : TypeData
GetClass ( string name ) : ClassDefinition
GetConstructors ( Type type ) : System.Reflection.ConstructorInfo[]
GetCustomAttributes ( ICustomAttributeProvider provider, Type type ) : object[]
GetIterCreatorName ( ICustomAttributeProvider provider ) : string
GetMethodInfo ( MethodInfo method ) : string
GetMethodInfo ( TypeData receiverType, string name, TypedNodeList arguments, TypeData returnType ) : string
GetMethodName ( MethodInfo method ) : string
GetParameters ( MethodBase method ) : System.Reflection.ParameterInfo[]
GetParents ( Type type ) : System.Type[]
GetPredefinedType ( string name ) : TypeData
GetReturnType ( MethodInfo method ) : TypeData
GetSupertypingAdapter ( Type type, Type subtype ) : Type
GetType ( TypeSpecifier typeSpecifier, ArrayList namespaces ) : TypeData
GetType ( string name ) : TypeData
GetType ( string name, ArrayList namespaces ) : TypeData
GetTypeData ( Type type ) : TypeData
GetTypeFromModules ( string name ) : TypeData
GetTypeName ( Type type ) : string
IsIterCreator ( ICustomAttributeProvider provider ) : bool
IsSubtype ( Type type, Type supertype ) : bool
TypeManager ( ) : System

Protected Methods

Method Description
AddBuiltinType ( string name, Type type ) : BuiltinTypeData
AddBuiltinType ( string name, Type type, Type builtinMethodContainer ) : BuiltinTypeData
InitBuiltinTypes ( ) : void

Method Details

AddAssembly() public method

public AddAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly
return void

AddBabelName() public method

public AddBabelName ( MethodBuilder methodBuilder, string babelName ) : void
methodBuilder System.Reflection.Emit.MethodBuilder
babelName string
return void

AddBuiltinType() protected method

protected AddBuiltinType ( string name, Type type ) : BuiltinTypeData
name string
type System.Type
return BuiltinTypeData

AddBuiltinType() protected method

protected AddBuiltinType ( string name, Type type, Type builtinMethodContainer ) : BuiltinTypeData
name string
type System.Type
builtinMethodContainer System.Type
return BuiltinTypeData

AddClass() public method

public AddClass ( ClassDefinition cls ) : void
cls ClassDefinition
return void

AddConstructor() public method

public AddConstructor ( Type type, ConstructorBuilder constructor ) : UserDefinedConstructorData
type System.Type
constructor System.Reflection.Emit.ConstructorBuilder
return UserDefinedConstructorData

AddCustomAttribute() public method

public AddCustomAttribute ( ICustomAttributeProvider provider, Attribute attribute ) : void
provider ICustomAttributeProvider
attribute System.Attribute
return void

AddIterCreator() public method

public AddIterCreator ( MethodBuilder methodBuilder ) : void
methodBuilder System.Reflection.Emit.MethodBuilder
return void

AddIterCreatorName() public method

public AddIterCreatorName ( MethodBuilder methodBuilder, string name ) : void
methodBuilder System.Reflection.Emit.MethodBuilder
name string
return void

AddMethod() public method

public AddMethod ( Type type, MethodBuilder method ) : UserDefinedMethodData
type System.Type
method System.Reflection.Emit.MethodBuilder
return UserDefinedMethodData

AddModule() public method

public AddModule ( Module module ) : void
module System.Reflection.Module
return void

AddParameters() public method

public AddParameters ( MethodBase method, ParameterInfo parameters ) : void
method System.Reflection.MethodBase
parameters System.Reflection.ParameterInfo
return void

AddSupertypingAdapter() public method

public AddSupertypingAdapter ( TypeBuilder typeBuilder, TypeData adapteeType, Type adapterType ) : void
typeBuilder System.Reflection.Emit.TypeBuilder
adapteeType TypeData
adapterType System.Type
return void

AddType() public method

public AddType ( TypeData type ) : void
type TypeData
return void

ExtractAncestors() public method

public ExtractAncestors ( Type parents ) : System.Type[]
parents System.Type
return System.Type[]

GetAncestors() public method

public GetAncestors ( Type type ) : System.Type[]
type System.Type
return System.Type[]

GetArgumentMode() public method

public GetArgumentMode ( ICustomAttributeProvider provider ) : ArgumentMode
provider ICustomAttributeProvider
return ArgumentMode

GetBabelName() public method

public GetBabelName ( ICustomAttributeProvider provider ) : string
provider ICustomAttributeProvider
return string

GetBuiltinMethodContainer() public method

public GetBuiltinMethodContainer ( TypeData typeData ) : TypeData
typeData TypeData
return TypeData

GetClass() public method

public GetClass ( string name ) : ClassDefinition
name string
return ClassDefinition

GetConstructors() public method

public GetConstructors ( Type type ) : System.Reflection.ConstructorInfo[]
type System.Type
return System.Reflection.ConstructorInfo[]

GetCustomAttributes() public method

public GetCustomAttributes ( ICustomAttributeProvider provider, Type type ) : object[]
provider ICustomAttributeProvider
type System.Type
return object[]

GetIterCreatorName() public method

public GetIterCreatorName ( ICustomAttributeProvider provider ) : string
provider ICustomAttributeProvider
return string

GetMethodInfo() public method

public GetMethodInfo ( MethodInfo method ) : string
method System.Reflection.MethodInfo
return string

GetMethodInfo() public method

public GetMethodInfo ( TypeData receiverType, string name, TypedNodeList arguments, TypeData returnType ) : string
receiverType TypeData
name string
arguments TypedNodeList
returnType TypeData
return string

GetMethodName() public method

public GetMethodName ( MethodInfo method ) : string
method System.Reflection.MethodInfo
return string

GetParameters() public method

public GetParameters ( MethodBase method ) : System.Reflection.ParameterInfo[]
method System.Reflection.MethodBase
return System.Reflection.ParameterInfo[]

GetParents() public method

public GetParents ( Type type ) : System.Type[]
type System.Type
return System.Type[]

GetPredefinedType() public method

public GetPredefinedType ( string name ) : TypeData
name string
return TypeData

GetReturnType() public method

public GetReturnType ( MethodInfo method ) : TypeData
method System.Reflection.MethodInfo
return TypeData

GetSupertypingAdapter() public method

public GetSupertypingAdapter ( Type type, Type subtype ) : Type
type System.Type
subtype System.Type
return System.Type

GetType() public method

public GetType ( TypeSpecifier typeSpecifier, ArrayList namespaces ) : TypeData
typeSpecifier TypeSpecifier
namespaces System.Collections.ArrayList
return TypeData

GetType() public method

public GetType ( string name ) : TypeData
name string
return TypeData

GetType() public method

public GetType ( string name, ArrayList namespaces ) : TypeData
name string
namespaces System.Collections.ArrayList
return TypeData

GetTypeData() public method

public GetTypeData ( Type type ) : TypeData
type System.Type
return TypeData

GetTypeFromModules() public method

public GetTypeFromModules ( string name ) : TypeData
name string
return TypeData

GetTypeName() public method

public GetTypeName ( Type type ) : string
type System.Type
return string

InitBuiltinTypes() protected method

protected InitBuiltinTypes ( ) : void
return void

IsIterCreator() public method

public IsIterCreator ( ICustomAttributeProvider provider ) : bool
provider ICustomAttributeProvider
return bool

IsSubtype() public method

public IsSubtype ( Type type, Type supertype ) : bool
type System.Type
supertype System.Type
return bool

TypeManager() public method

public TypeManager ( ) : System
return System

Property Details

ancestorsTable protected_oe property

protected Hashtable,System.Collections ancestorsTable
return System.Collections.Hashtable

assemblies protected_oe property

protected ArrayList,System.Collections assemblies
return System.Collections.ArrayList

boolType protected_oe property

protected TypeData boolType
return TypeData

builtinMethodContainers protected_oe property

protected Hashtable,System.Collections builtinMethodContainers
return System.Collections.Hashtable

builtinTypeNames protected_oe property

protected Hashtable,System.Collections builtinTypeNames
return System.Collections.Hashtable

builtinTypes protected_oe property

protected Hashtable,System.Collections builtinTypes
return System.Collections.Hashtable

charType protected_oe property

protected TypeData charType
return TypeData

classes protected_oe property

protected Hashtable,System.Collections classes
return System.Collections.Hashtable

constructorsTable protected_oe property

protected Hashtable,System.Collections constructorsTable
return System.Collections.Hashtable

customAttributesTable protected_oe property

protected Hashtable,System.Collections customAttributesTable
return System.Collections.Hashtable

exceptionType protected_oe property

protected TypeData exceptionType
return TypeData

fltType protected_oe property

protected TypeData fltType
return TypeData

intType protected_oe property

protected TypeData intType
return TypeData

methodsTable protected_oe property

protected Hashtable,System.Collections methodsTable
return System.Collections.Hashtable

modules protected_oe property

protected ArrayList,System.Collections modules
return System.Collections.ArrayList

obType protected_oe property

protected TypeData obType
return TypeData

parametersTable protected_oe property

protected Hashtable,System.Collections parametersTable
return System.Collections.Hashtable

parentsTable protected_oe property

protected Hashtable,System.Collections parentsTable
return System.Collections.Hashtable

strType protected_oe property

protected TypeData strType
return TypeData

typeDataTable protected_oe property

protected Hashtable,System.Collections typeDataTable
return System.Collections.Hashtable

voidType protected_oe property

protected TypeData voidType
return TypeData