Exemple #1
0
 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));
     }
   }
 }
Exemple #2
0
 @Override
 public boolean isCompatibleWithType(Type t) {
   return t.isNumerical();
 }