The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
TypeSystem.Introspection Class Reference

Represents a type obtained using introspection. More...

Public Member Functions

 Introspection (IBCLUserType userType, Type type)
 Constructor of Introspection. More...
 
TypeExpression FindMember (string memberName, Location location)
 Finds a attribute of a BCL user type, using introspection. Inheritance is not taken into account. In the attribute is not found, an error is generated. More...
 
TypeExpression FindMember (string memberName)
 Finds a attribute of a BCL user type, using introspection. Inheritance is not taken into account. In the attribute is not found, an error not is generated. More...
 
TypeExpression FindConstructor (Location location)
 Finds and adds the list of constructor to a BCL type More...
 
void createBaseClassAndInterfacesTree ()
 Creates, based on introspection, the base class of the user type and the list of interfaces implemented More...
 

Static Public Member Functions

static TypeExpression createBCLUserType (string name, System.Type type, Location location)
 Method that encapsulates the creation of a BCL class or interface More...
 
static List< ModifiergetMethodModifierList (MethodBase method)
 Gets the modifier list from a method info More...
 
static List< ModifiergetMethodModifierList (MemberInfo member)
 

Properties

Type TypeInfo [get]
 Gets the type More...
 

Detailed Description

Represents a type obtained using introspection.

Inheritance: TypeExpression. Implements Composite pattern [Composite].

Definition at line 33 of file Instrospection.cs.

Constructor & Destructor Documentation

TypeSystem.Introspection.Introspection ( IBCLUserType  userType,
Type  type 
)

Constructor of Introspection.

Parameters
userTypeThe user type of the type system
typeWriteType name to introspection.

Definition at line 66 of file Instrospection.cs.

Member Function Documentation

void TypeSystem.Introspection.createBaseClassAndInterfacesTree ( )

Creates, based on introspection, the base class of the user type and the list of interfaces implemented

Definition at line 373 of file Instrospection.cs.

static TypeExpression TypeSystem.Introspection.createBCLUserType ( string  name,
System.Type  type,
Location  location 
)
static

Method that encapsulates the creation of a BCL class or interface

Parameters
nameThe name of the user type (class or interface)
type
Returns

Definition at line 80 of file Instrospection.cs.

TypeExpression TypeSystem.Introspection.FindConstructor ( Location  location)

Finds and adds the list of constructor to a BCL type

Parameters
fileNameFile name.
lineLine number.
columnColumn number.
Returns
WriteType obtained

Definition at line 260 of file Instrospection.cs.

TypeExpression TypeSystem.Introspection.FindMember ( string  memberName,
Location  location 
)

Finds a attribute of a BCL user type, using introspection. Inheritance is not taken into account. In the attribute is not found, an error is generated.

Parameters
memberNameThe name of the attribute.
fileNameFile name.
lineLine number.
columnColumn number.
Returns
WriteType obtained with the operation.

Definition at line 206 of file Instrospection.cs.

TypeExpression TypeSystem.Introspection.FindMember ( string  memberName)

Finds a attribute of a BCL user type, using introspection. Inheritance is not taken into account. In the attribute is not found, an error not is generated.

Parameters
memberNameThe name of the attribute.
Returns
WriteType obtained with the operation.

Definition at line 219 of file Instrospection.cs.

static List<Modifier> TypeSystem.Introspection.getMethodModifierList ( MethodBase  method)
static

Gets the modifier list from a method info

Parameters
methodThe method info
Returns
The modifiers list

Definition at line 303 of file Instrospection.cs.

static List<Modifier> TypeSystem.Introspection.getMethodModifierList ( MemberInfo  member)
static

Definition at line 319 of file Instrospection.cs.

Property Documentation

Type TypeSystem.Introspection.TypeInfo
get

Gets the type

Definition at line 53 of file Instrospection.cs.


The documentation for this class was generated from the following file: