private void checkForWidgetTypeMismatch(Rules rs, Type declType, Integer lineNumber) { for (Rule r : rs) { if (!(r.isCompatibleWithType(declType))) { this.messages.add(StyleError.widgetTypeMismatch(declType.getTitle(), lineNumber)); } } }
@Override public boolean isCompatibleWithType(Type t) { return t.isNumerical(); }