/// <summary> /// Gets if a method has the same signature than another one. /// </summary> /// <param name="other">The other method</param> /// <returns><b>true</b> if both methods have the same scope and prototype. <b>false</b> otherwise</returns> public bool MatchesSignature(ClassMethod other) { return(Name == other.Name && Scope == other.Scope && Function.MatchesSignature(other.Function)); }
/// <summary> /// Initializes a new instance of ClassProperty. /// </summary> /// <param name="name">The property's name</param> /// <param name="scope">The property's scope; it may be <b>private</b>, <b>protected</b> or <b>public</b></param> /// <param name="modifier">property's modifier; it may be <b>static</b>, <b>final</b>, <b>abstract</b> or nothing</param> /// <param name="getter">The property's read accessor</param> /// <param name="setter">The property's write accessor</param> public ClassProperty(string name, Scope scope, Modifier modifier, ClassMethod getter, ClassMethod setter) : base(name, scope, modifier) { Reader = getter; Writer = setter; }