1152 JCTree elem;
1153 while (true) {
1154 elem = tree.elemtype;
1155 print("[]");
1156 if (elem.getTag() != JCTree.TYPEARRAY) break;
1157 tree = (JCArrayTypeTree) elem;
1158 }
1159 }
1160
1161 public void visitTypeApply(JCTypeApply tree) {
1162 try {
1163 printExpr(tree.clazz);
1164 print("<");
1165 printExprs(tree.arguments);
1166 print(">");
1167 } catch (IOException e) {
1168 throw new UncheckedIOException(e);
1169 }
1170 }
1171
1172 public void visitTypeDisjunction(JCTypeDisjunction tree) {
1173 try {
1174 printExprs(tree.alternatives, " | ");
1175 } catch (IOException e) {
1176 throw new UncheckedIOException(e);
1177 }
1178 }
1179
1180 public void visitTypeParameter(JCTypeParameter tree) {
1181 try {
1182 print(tree.name);
1183 if (tree.bounds.nonEmpty()) {
1184 print(" extends ");
1185 printExprs(tree.bounds, " & ");
1186 }
1187 } catch (IOException e) {
1188 throw new UncheckedIOException(e);
1189 }
1190 }
1191
1192 @Override
|
1152 JCTree elem;
1153 while (true) {
1154 elem = tree.elemtype;
1155 print("[]");
1156 if (elem.getTag() != JCTree.TYPEARRAY) break;
1157 tree = (JCArrayTypeTree) elem;
1158 }
1159 }
1160
1161 public void visitTypeApply(JCTypeApply tree) {
1162 try {
1163 printExpr(tree.clazz);
1164 print("<");
1165 printExprs(tree.arguments);
1166 print(">");
1167 } catch (IOException e) {
1168 throw new UncheckedIOException(e);
1169 }
1170 }
1171
1172 public void visitTypeUnion(JCTypeUnion tree) {
1173 try {
1174 printExprs(tree.alternatives, " | ");
1175 } catch (IOException e) {
1176 throw new UncheckedIOException(e);
1177 }
1178 }
1179
1180 public void visitTypeParameter(JCTypeParameter tree) {
1181 try {
1182 print(tree.name);
1183 if (tree.bounds.nonEmpty()) {
1184 print(" extends ");
1185 printExprs(tree.bounds, " & ");
1186 }
1187 } catch (IOException e) {
1188 throw new UncheckedIOException(e);
1189 }
1190 }
1191
1192 @Override
|