114 */ |
114 */ |
115 public static boolean hasConstructors(List<JCTree> trees) { |
115 public static boolean hasConstructors(List<JCTree> trees) { |
116 for (List<JCTree> l = trees; l.nonEmpty(); l = l.tail) |
116 for (List<JCTree> l = trees; l.nonEmpty(); l = l.tail) |
117 if (isConstructor(l.head)) return true; |
117 if (isConstructor(l.head)) return true; |
118 return false; |
118 return false; |
|
119 } |
|
120 |
|
121 public static boolean isMultiCatch(JCCatch catchClause) { |
|
122 return catchClause.param.vartype.getTag() == JCTree.TYPEDISJOINT; |
119 } |
123 } |
120 |
124 |
121 /** Is statement an initializer for a synthetic field? |
125 /** Is statement an initializer for a synthetic field? |
122 */ |
126 */ |
123 public static boolean isSyntheticInit(JCTree stat) { |
127 public static boolean isSyntheticInit(JCTree stat) { |