Class TextUIBugReporter

    • Field Detail

      • reportStackTrace

        private boolean reportStackTrace
      • useLongBugCodes

        private boolean useLongBugCodes
      • showRank

        private boolean showRank
      • reportHistory

        private boolean reportHistory
      • applySuppressions

        private boolean applySuppressions
      • outputTarget

        private java.lang.String outputTarget
      • OTHER_CATEGORY_ABBREV

        static final java.lang.String OTHER_CATEGORY_ABBREV
        See Also:
        Constant Field Values
      • outputStream

        protected java.io.PrintWriter outputStream
      • analysisErrors

        private boolean analysisErrors
      • missingClasses

        private boolean missingClasses
    • Constructor Detail

      • TextUIBugReporter

        protected TextUIBugReporter()
    • Method Detail

      • setOutputStream

        public void setOutputStream​(java.io.PrintStream outputStream)
        Set the PrintStream to write bug output to.
        Specified by:
        setOutputStream in interface ConfigurableBugReporter
        Parameters:
        outputStream - the PrintStream to write bug output to
      • setWriter

        public void setWriter​(java.io.PrintWriter writer)
      • setReportStackTrace

        public void setReportStackTrace​(boolean reportStackTrace)
        Set whether or not stack traces should be reported in error output.
        Parameters:
        reportStackTrace - true if stack traces should be reported, false if not
      • printBug

        protected void printBug​(BugInstance bugInstance)
        Print bug in one-line format.
        Parameters:
        bugInstance - the bug to print
      • emitLine

        protected void emitLine​(java.lang.String line)
        Emit one line of the error message report. By default, error messages are printed to System.err. Subclasses may override.
        Parameters:
        line - one line of the error report
      • getUseLongBugCodes

        public boolean getUseLongBugCodes()
      • setReportHistory

        public void setReportHistory​(boolean reportHistory)
      • setShowRank

        public void setShowRank​(boolean showRank)
      • setApplySuppressions

        public void setApplySuppressions​(boolean applySuppressions)
      • getRealBugReporter

        public BugReporter getRealBugReporter()
      • checkBugInstance

        protected void checkBugInstance​(BugInstance bugInstance)
        For debugging: check a BugInstance to make sure it is valid.
        Parameters:
        bugInstance - the BugInstance to check
      • getOutputTarget

        public java.lang.String getOutputTarget()
      • setOutputTarget

        public void setOutputTarget​(java.lang.String key)
      • isApplySuppressions

        public boolean isApplySuppressions()