/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | FatalError.java | 43 public FatalError(JCDiagnostic d) { 52 public FatalError(JCDiagnostic d, Throwable t) {
|
H A D | JCDiagnostic.java | 40 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticType.*; 49 public class JCDiagnostic implements Diagnostic<JavaFileObject> { class in inherits:Diagnostic 53 protected static final Context.Key<JCDiagnostic.Factory> diagnosticFactoryKey = 54 new Context.Key<JCDiagnostic.Factory>(); 64 DiagnosticFormatter<JCDiagnostic> formatter; 92 public JCDiagnostic error( 105 public JCDiagnostic mandatoryWarning( 119 public JCDiagnostic mandatoryWarning( 132 public JCDiagnostic warning( 144 public JCDiagnostic warnin 365 protected JCDiagnostic(DiagnosticFormatter<JCDiagnostic> formatter, method in class:JCDiagnostic [all...] |
H A D | AbstractDiagnosticFormatter.java | 48 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticType.*; 56 * Those implementations are specifically targeting JCDiagnostic objects. 58 * <li> Provides the formatting logic for rendering the arguments of a JCDiagnostic object. 66 public abstract class AbstractDiagnosticFormatter implements DiagnosticFormatter<JCDiagnostic> { 100 public String formatKind(JCDiagnostic d, Locale l) { 112 public String format(JCDiagnostic d, Locale locale) { 117 protected abstract String formatDiagnostic(JCDiagnostic d, Locale locale); 119 public String formatPosition(JCDiagnostic d, PositionKind pk,Locale l) { 124 private long getPosition(JCDiagnostic d, PositionKind pk) { 136 public String formatSource(JCDiagnostic [all...] |
H A D | RichDiagnosticFormatter.java | 68 ForwardingDiagnosticFormatter<JCDiagnostic, AbstractDiagnosticFormatter> { 72 final JCDiagnostic.Factory diags; 82 Map<WhereClauseKind, Map<Type, JCDiagnostic>> whereClauses; 96 this.diags = JCDiagnostic.Factory.instance(context); 99 whereClauses = new LinkedHashMap<WhereClauseKind, Map<Type, JCDiagnostic>>(); 102 whereClauses.put(kind, new LinkedHashMap<Type, JCDiagnostic>()); 106 public String format(JCDiagnostic diag, Locale l) { 114 List<JCDiagnostic> clauses = getWhereClauses(); 117 for (JCDiagnostic d : clauses) { 152 protected void preprocessDiagnostic(JCDiagnostic dia [all...] |
H A D | AbstractLog.java | 33 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag; 34 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; 35 import com.sun.tools.javac.util.JCDiagnostic.SimpleDiagnosticPosition; 48 AbstractLog(JCDiagnostic.Factory diags) { 105 JCDiagnostic d = diags.error(source, pos, key, args); 128 JCDiagnostic d = diags.error(source, wrap(pos), key, args); 243 protected abstract void report(JCDiagnostic diagnostic); 253 protected JCDiagnostic.Factory diags;
|
H A D | Log.java | 41 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; 42 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticType; 106 private DiagnosticFormatter<JCDiagnostic> diagFormatter; 122 public Queue<JCDiagnostic> deferredDiagnostics = new ListBuffer<JCDiagnostic>(); 128 super(JCDiagnostic.Factory.instance(context)); 241 public DiagnosticFormatter<JCDiagnostic> getDiagnosticFormatter() { 247 public void setDiagnosticFormatter(DiagnosticFormatter<JCDiagnostic> diagFormatter) { 364 reportDeferredDiagnostics(EnumSet.allOf(JCDiagnostic.Kind.class)); 368 public void reportDeferredDiagnostics(Set<JCDiagnostic [all...] |
H A D | RawDiagnosticFormatter.java | 64 public String formatDiagnostic(JCDiagnostic d, Locale l) { 95 public String formatMessage(JCDiagnostic d, Locale l) { 118 protected String formatArgument(JCDiagnostic diag, Object arg, Locale l) { 126 if (arg instanceof JCDiagnostic)
|
H A D | Warner.java | 29 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
|
H A D | BasicDiagnosticFormatter.java | 88 public String formatDiagnostic(JCDiagnostic d, Locale l) { 108 public String formatMessage(JCDiagnostic d, Locale l) { 133 protected String addSourceLineIfNeeded(JCDiagnostic d, String msg) { 148 protected String formatMeta(char c, JCDiagnostic d, Locale l) { 196 private String selectFormat(JCDiagnostic d) {
|
H A D | MandatoryWarningHandler.java | 33 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
|
/openjdk7/langtools/test/tools/javac/api/7086261/ |
H A D | T7086261.java | 33 import com.sun.tools.javac.util.JCDiagnostic; 59 JCDiagnostic jd = (JCDiagnostic)((DiagnosticSourceUnwrapper)message).d;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/util/ |
H A D | Bark.java | 29 import com.sun.tools.javac.util.JCDiagnostic; 30 import com.sun.tools.javac.util.JCDiagnostic.SimpleDiagnosticPosition; 79 private JCDiagnostic.Factory aptDiags; 92 aptDiags = new JCDiagnostic.Factory(aptMessages, "apt"); 114 public void report(JCDiagnostic diagnostic) {
|
/openjdk7/langtools/test/tools/javac/processing/errors/ |
H A D | TestSuppression.java | 40 import com.sun.tools.javac.util.JCDiagnostic; 42 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag.*; 182 private static boolean isResolveError(JCDiagnostic d) { 186 private JCDiagnostic unwrap(Diagnostic<? extends JavaFileObject> diagnostic) { 187 if (diagnostic instanceof JCDiagnostic) 188 return (JCDiagnostic) diagnostic;
|
/openjdk7/langtools/test/tools/javac/Diagnostics/6769027/ |
H A D | T6769027.java | 276 JCDiagnostic.DiagnosticPosition pos() { 277 return new JCDiagnostic.SimpleDiagnosticPosition(pos); 316 protected java.io.PrintWriter getWriterForDiagnosticType(JCDiagnostic.DiagnosticType dt) { 350 JCDiagnostic.Factory diags = JCDiagnostic.Factory.instance(ctx); 352 JCDiagnostic d = diags.error(log.currentSource(), 356 JCDiagnostic sub = diags.fragment(errorKind.key(), "Hello!"); 358 sub = new JCDiagnostic.MultilineDiagnostic(sub, List.of(sub)); 359 List<JCDiagnostic> subdiags = multiKind.isDouble() ? 362 d = new JCDiagnostic [all...] |
/openjdk7/langtools/test/tools/javac/diags/ |
H A D | ArgTypeCompilerFactory.java | 201 protected String formatDiagnostic(JCDiagnostic d, Locale locale) { 206 public String formatMessage(JCDiagnostic d, Locale l) { 212 private void formatMessage(JCDiagnostic d, StringBuilder buf) { 219 if (arg instanceof JCDiagnostic) { 221 formatMessage((JCDiagnostic) arg, buf); 348 if (o instanceof JCDiagnostic)
|
H A D | Example.java | 46 import com.sun.tools.javac.util.JCDiagnostic; 412 private static void scanForKeys(JCDiagnostic d, Set<String> keys) { 415 if (o instanceof JCDiagnostic) { 416 scanForKeys((JCDiagnostic) o, keys); 419 for (JCDiagnostic sd: d.getSubdiagnostics()) 423 private JCDiagnostic unwrap(Diagnostic<? extends JavaFileObject> diagnostic) { 424 if (diagnostic instanceof JCDiagnostic) 425 return (JCDiagnostic) diagnostic;
|
/openjdk7/langtools/test/tools/javac/TryWithResources/ |
H A D | UnusedResourcesTest.java | 33 import com.sun.tools.javac.util.JCDiagnostic; 251 private JCDiagnostic unwrap(Diagnostic<? extends JavaFileObject> diagnostic) { 252 if (diagnostic instanceof JCDiagnostic) 253 return (JCDiagnostic) diagnostic;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/comp/ |
H A D | Resolve.java | 29 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; 43 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag; 44 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticType; 72 JCDiagnostic.Factory diags; 109 diags = JCDiagnostic.Factory.instance(context); 485 JCDiagnostic diagnostic; 486 JCDiagnostic.Factory diags; 488 InapplicableMethodException(JCDiagnostic.Factory diags) { 504 InapplicableMethodException setMessage(JCDiagnostic diag) { 509 public JCDiagnostic getDiagnosti [all...] |
H A D | Infer.java | 37 import com.sun.tools.javac.util.JCDiagnostic; 59 JCDiagnostic.Factory diags; 74 diags = JCDiagnostic.Factory.instance(context); 87 InferenceException(JCDiagnostic.Factory diags) { 97 NoInstanceException(boolean isAmbiguous, JCDiagnostic.Factory diags) { 106 InvalidInstanceException(JCDiagnostic.Factory diags) {
|
/openjdk7/langtools/test/tools/javac/6304921/ |
H A D | TestLog.java | 42 import com.sun.tools.javac.util.JCDiagnostic; 106 JCDiagnostic.DiagnosticPosition nil = null;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/ |
H A D | DeferredLintHandler.java | 34 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/api/ |
H A D | ClientCodeWrapper.java | 55 import com.sun.tools.javac.util.JCDiagnostic; 165 if (diagnostic instanceof JCDiagnostic) { 166 JCDiagnostic d = (JCDiagnostic) diagnostic; 571 public final JCDiagnostic d; 573 DiagnosticSourceUnwrapper(JCDiagnostic d) {
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/ |
H A D | JavadocEnter.java | 29 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/processing/ |
H A D | JavacProcessingEnvironment.java | 75 import com.sun.tools.javac.util.JCDiagnostic; 84 import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag.*; 146 JCDiagnostic.Factory diags; 166 diags = JCDiagnostic.Factory.instance(context); 950 for (JCDiagnostic d: log.deferredDiagnostics) { 1040 Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class); 1043 kinds.remove(JCDiagnostic.Kind.ERROR); 1259 JCDiagnostic msg = diags.fragment("fatal.err.cant.close.loader");
|
H A D | JavacMessager.java | 96 JCDiagnostic.DiagnosticPosition pos = null;
|