Lines Matching refs:JCDiagnostic
73 ForwardingDiagnosticFormatter<JCDiagnostic, AbstractDiagnosticFormatter> {
77 final JCDiagnostic.Factory diags;
87 Map<WhereClauseKind, Map<Type, JCDiagnostic>> whereClauses;
101 this.diags = JCDiagnostic.Factory.instance(context);
107 whereClauses.put(kind, new LinkedHashMap<Type, JCDiagnostic>());
111 public String format(JCDiagnostic diag, Locale l) {
119 List<JCDiagnostic> clauses = getWhereClauses();
122 for (JCDiagnostic d : clauses) {
133 public String formatMessage(JCDiagnostic diag, Locale l) {
164 protected void preprocessDiagnostic(JCDiagnostic diag) {
171 for (JCDiagnostic d : diag.getSubdiagnostics())
189 else if (arg instanceof JCDiagnostic) {
190 preprocessDiagnostic((JCDiagnostic)arg);
205 protected List<JCDiagnostic> getWhereClauses() {
206 List<JCDiagnostic> clauses = List.nil();
208 List<JCDiagnostic> lines = List.nil();
209 for (Map.Entry<Type, JCDiagnostic> entry : whereClauses.get(kind).entrySet()) {
216 JCDiagnostic d = diags.fragment(key, whereClauses.get(kind).keySet());
217 d = new JCDiagnostic.MultilineDiagnostic(d, lines.reverse());
509 JCDiagnostic d = diags.fragment("where.captured"+ suffix, t, t.bound, t.lower, t.wildcard);
524 JCDiagnostic d = diags.fragment(Fragments.WhereIntersection(t, interfaces.prepend(supertype)));
570 JCDiagnostic d = diags.fragment("where.typevar" +
579 JCDiagnostic d = diags.fragment(Fragments.WhereFreshTypevar(t, bounds));