Java Code Examples for com.sun.tools.javac.util.JCDiagnostic#Kind

The following examples show how to use com.sun.tools.javac.util.JCDiagnostic#Kind . 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 TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 2
Source File: JavacProcessingEnvironment.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 3
Source File: JavacProcessingEnvironment.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    log.reportDeferredDiagnostics(kinds);
}
 
Example 4
Source File: JavacProcessingEnvironment.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 5
Source File: JavacProcessingEnvironment.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
    compiler.setDeferredDiagnosticHandler(null);
}
 
Example 6
Source File: JavacProcessingEnvironment.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 7
Source File: JavacProcessingEnvironment.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    log.reportDeferredDiagnostics(kinds);
}
 
Example 8
Source File: JavacProcessingEnvironment.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
    compiler.setDeferredDiagnosticHandler(null);
}
 
Example 9
Source File: JavacProcessingEnvironment.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 10
Source File: JavacProcessingEnvironment.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}
 
Example 11
Source File: JavacProcessingEnvironment.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
void showDiagnostics(boolean showAll) {
    Set<JCDiagnostic.Kind> kinds = EnumSet.allOf(JCDiagnostic.Kind.class);
    if (!showAll) {
        // suppress errors, which are all presumed to be transient resolve errors
        kinds.remove(JCDiagnostic.Kind.ERROR);
    }
    deferredDiagnosticHandler.reportDeferredDiagnostics(kinds);
    log.popDiagnosticHandler(deferredDiagnosticHandler);
}