18 using System.Diagnostics;
19 using System.Collections.Generic;
23 using TypeSystem.Operations;
73 private List<Modifier> modifierList;
96 System.Diagnostics.Debug.Assert(type==null || type is
IMemberType,
"The type must be a TypeExpression");
101 System.Diagnostics.Debug.Assert(value is
IMemberType,
"The type must implement IMemberType");
102 type = (IMemberType)value;
111 get {
return this.classType; }
112 set { this.classType = value; }
120 get {
return this.id; }
128 get {
return this.modifierList; }
136 get {
return this.modifierMask; }
152 for (
int i = 0; i < mods.Count; i++)
154 this.modifierMask |= mods[i];
157 if (!interfaceMember)
159 if ((this.modifierMask &
Modifier.AccessLevel) == 0)
161 mods.Add(Modifier.Private);
162 this.modifierMask |= Modifier.Private;
166 this.modifierList = mods;
167 this.type = memberType;
176 #region hasModifier()
184 if ((this.modifierMask & mod) != 0)
187 for (
int i = 0; i < this.modifierList.Count; i++)
188 if ((this.modifierList[i] & mod) != 0)
197 return this.MemberwiseClone();
Modifier ModifierMask
Gets the modifier information
string MemberIdentifier
Gets the attribute name
AccessModifier(List< Modifier > mods, string idMember, IMemberType memberType, bool interfaceMember)
Constructor of AccessModifier
bool hasModifier(Modifier mod)
To know if a modifier is supported
Abstract class that represents all different types.
Modifier
Indicates differents modifiers to use in class (only public, internal or static), fields or methods...
UserType Class
Gets or sets the class type reference
List< Modifier > Modifiers
Gets the modifiers of the element
Association Class between ClassType and MethodType (or Fields). Represents the access modifier inform...
TypeExpression Type
Gets or sets the attribute type expression
Represents a class or interface type.
Representa a class attribute (fields or methods).