Example #1
0
 @Override
 boolean isNullable() {
   if (kind == GroupKind.CHOICE) {
     for (Tree t : children) {
       if (t.isNullable()) return true;
     }
     return false;
   } else {
     for (Tree t : children) {
       if (!t.isNullable()) return false;
     }
     return true;
   }
 }
Example #2
0
 @Override
 boolean isNullable() {
   return body.isNullable();
 }