src/share/classes/com/sun/tools/javac/tree/TreeInfo.java

changeset 550
a6f2911a7c55
parent 537
9d9d08922405
child 554
9d9f26857129
equal deleted inserted replaced
549:c399da99fa16 550:a6f2911a7c55
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) {

mercurial