Java Code Examples for com.sun.tools.javac.util.JCDiagnostic#isFlagSet()
The following examples show how to use
com.sun.tools.javac.util.JCDiagnostic#isFlagSet() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavacProcessingEnvironment.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 2
Source File: JavacProcessingEnvironment.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 3
Source File: JavacProcessingEnvironment.java From hottub with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 4
Source File: JavacProcessingEnvironment.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 5
Source File: JavacProcessingEnvironment.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 6
Source File: JavacProcessingEnvironment.java From javaide with GNU General Public License v3.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: log.deferredDiagnostics) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 7
Source File: JavacProcessingEnvironment.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 8
Source File: JavacProcessingEnvironment.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** Return whether or not an unrecoverable error has occurred. */ boolean unrecoverableError() { if (messager.errorRaised()) return true; for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { switch (d.getKind()) { case WARNING: if (werror) return true; break; case ERROR: if (fatalErrors || !d.isFlagSet(RECOVERABLE)) return true; break; } } return false; }
Example 9
Source File: Hacks.java From netbeans with Apache License 2.0 | 5 votes |
public static boolean isSyntaxError(Diagnostic<?> d) { JCDiagnostic jcd = getJCDiagnostic(d); if (jcd == null) { return false; } return jcd.isFlagSet(DiagnosticFlag.SYNTAX); }
Example 10
Source File: JavaCompiler.java From javaide with GNU General Public License v3.0 | 5 votes |
private boolean unrecoverableError() { for (JCDiagnostic d : log.deferredDiagnostics) { if (d.getKind() == JCDiagnostic.Kind.ERROR && !d.isFlagSet(RECOVERABLE)) return true; } return false; }
Example 11
Source File: JavaCompiler.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
private boolean unrecoverableError() { if (deferredDiagnosticHandler != null) { for (JCDiagnostic d: deferredDiagnosticHandler.getDiagnostics()) { if (d.getKind() == JCDiagnostic.Kind.ERROR && !d.isFlagSet(RECOVERABLE)) return true; } } return false; }
Example 12
Source File: JavaCompiler.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
private boolean unrecoverableError() { for (JCDiagnostic d : log.deferredDiagnostics) { if (d.getKind() == JCDiagnostic.Kind.ERROR && !d.isFlagSet(RECOVERABLE)) return true; } return false; }
Example 13
Source File: TestSuppression.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 14
Source File: TestSuppression.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 15
Source File: TestSuppression.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 16
Source File: TestSuppression.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 17
Source File: TestSuppression.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 18
Source File: TestSuppression.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 19
Source File: TestSuppression.java From hottub with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }
Example 20
Source File: TestSuppression.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static boolean isResolveError(JCDiagnostic d) { return d.isFlagSet(RESOLVE_ERROR); }