/// <inheritdoc/> public override PropertyConcern CanApplyTo(IProperty property) { if (property == null) { throw new ArgumentNullException("property"); } ReadOnly.Assert(true); var fullName = $"{property.ClassFullName}.{property.PropertyName}"; var joinPoints = Enum.GetValues(typeof(JoinPoint)).Cast <JoinPoint>().ToList(); var match = PatternMatch(fullName); var concern = PropertyConcern.None; if ((match == PatternMatchType.WildCard && ConcernPropertyGetter && PropertyGetterMatch(property)) || match == PatternMatchType.Exact) { concern = concern.ConcernGetter(); } if ((match == PatternMatchType.WildCard && ConcernPropertySetter && PropertySetterMatch(property)) || match == PatternMatchType.Exact) { concern = concern.ConcernSetter(); } return(concern); }
/// <inheritdoc/> public override bool CanApplyTo(IMethod method) { if (method == null) { throw new ArgumentNullException("method"); } ReadOnly.Assert(true); var fullName = $"{method.ClassFullName}.{method.MethodName}"; var joinPoints = Enum.GetValues(typeof(JoinPoint)).Cast <JoinPoint>().ToList(); var match = PatternMatch(fullName); return((match == PatternMatchType.WildCard && ConcernMethod && MethodMatch(method)) || match == PatternMatchType.Exact); }