/// <summary> /// Creates a field from a parent type, a name, a staticness and /// a type of value to store. /// </summary> /// <param name="parentType">The field's parent type.</param> /// <param name="name">The field's name.</param> /// <param name="isStatic">Tells if the field is static.</param> /// <param name="fieldType">The type of value stored in the field.</param> public DescribedField( IType parentType, UnqualifiedName name, bool isStatic, IType fieldType) : base(name.Qualify(parentType.FullName)) { this.ParentType = parentType; this.IsStatic = isStatic; this.FieldType = fieldType; }
/// <summary> /// Creates a method from a parent type, a name, a staticness /// and a return type. /// </summary> /// <param name="parentType">The method's parent type.</param> /// <param name="name">The method's name.</param> /// <param name="isStatic"> /// Tells if the method should be a static method /// or an instance method. /// </param> /// <param name="returnType">The type of value returned by the method.</param> public DescribedMethod( IType parentType, UnqualifiedName name, bool isStatic, IType returnType) : base(name.Qualify(parentType.FullName)) { this.ParentType = parentType; this.IsStatic = isStatic; this.ReturnParameter = new Parameter(returnType); this.paramList = new List <Parameter>(); this.baseMethodList = new List <IMethod>(); }
/// <summary> /// Creates a type from a name and a parent type. /// </summary> /// <param name="name">The type's unqualified name.</param> /// <param name="parentType"> /// The type's parent type, i.e., the type that defines it. /// </param> public DescribedType(UnqualifiedName name, IType parentType) : base(name.Qualify(parentType.FullName)) { this.Parent = new TypeParent(parentType); Initialize(); }