Packages

class ReplReporterImpl extends FilteringReporter with ReplReporter

Source
Reporter.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplReporterImpl
  2. ReplReporter
  3. ReplStrings
  4. FilteringReporter
  5. Reporter
  6. Reporter
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ReplReporterImpl(settings: Settings)
  2. new ReplReporterImpl(settings: Settings, writer: PrintWriter)
  3. new ReplReporterImpl(config: ShellConfig, settings: Settings = new Settings, writer: PrintWriter = ReplReporterImpl.defaultOut)

Type Members

  1. final type Severity = reflect.internal.Reporter.Severity
    Definition Classes
    Reporter

Value Members

  1. final def ERROR: Severity
    Definition Classes
    Reporter
    Annotations
    @uncheckedStable()
  2. final def INFO: Severity
    Definition Classes
    Reporter
    Annotations
    @uncheckedStable()
  3. final def WARNING: Severity
    Definition Classes
    Reporter
    Annotations
    @uncheckedStable()
  4. def cancelled: Boolean
    Definition Classes
    Reporter
  5. def cancelled_=(b: Boolean): Unit
    Definition Classes
    Reporter
  6. def color(c: String, s: String): String
  7. def colorOk: Boolean
  8. def comment(pos: Position, msg: String): Unit
    Definition Classes
    Reporter
  9. val config: ShellConfig
  10. var currentRequest: ReplRequest

    Currently executing request (used to determine position of error in terms of user-submitted code)

    Currently executing request (used to determine position of error in terms of user-submitted code)

    TODO: should no longer be needed if we do wrapping after type checking

    Definition Classes
    ReplReporterImplReplReporter
  11. def debug(msg: => String): Unit
    Definition Classes
    ReplReporter
  12. def displayPrompt(): Unit
  13. def doReport(pos: Position, msg: String, severity: Severity): Unit
    Definition Classes
    ReplReporterImplFilteringReporter
  14. final def echo(pos: Position, msg: String): Unit
    Definition Classes
    Reporter
  15. final def echo(msg: String): Unit
    Definition Classes
    Reporter
  16. final def error(pos: Position, msg: String): Unit
    Definition Classes
    Reporter
  17. def errorCount: Int
    Definition Classes
    Reporter
  18. def filter(pos: Position, msg: String, severity: Severity): Int
    Definition Classes
    FilteringReporter → Reporter
  19. def finish(): Unit
    Definition Classes
    ReplReporterImpl → Reporter
  20. def flush(): Unit
    Definition Classes
    ReplReporterImpl → Reporter
  21. def hasErrors: Boolean
    Definition Classes
    Reporter → Reporter
  22. def hasWarnings: Boolean
    Definition Classes
    Reporter
  23. def increment(severity: Severity): Unit
    Definition Classes
    Reporter
  24. def indenting(n: Int)(body: => Unit): Unit

    Change indentation due to prompt.

    Change indentation due to prompt.

    Definition Classes
    ReplReporterImplReplReporter
  25. def isDebug: Boolean
    Definition Classes
    ReplReporterImplReplReporter
  26. def isTrace: Boolean
    Definition Classes
    ReplReporterImplReplReporter
  27. var maxPrintString: Int

    The maximum length of toString to use when printing the result of an evaluation.

    The maximum length of toString to use when printing the result of an evaluation. 0 means no maximum. If a printout requires more than this number of characters, then the printout is truncated.

  28. def nameToCode(s: String): String

    Prepare a val/def name string for outputting in code.

    Prepare a val/def name string for outputting in code.

    Definition Classes
    ReplReporterImplReplStrings
  29. val out: PrintWriter
    Definition Classes
    ReplReporterImplReplReporter
  30. def printMessage(msg: String): Unit

    Print message (info/warning/error).

    Print message (info/warning/error). By default, messages beyond a certain length are truncated (see withoutTruncating), and internal repl wrapping is removed (see withoutUnwrapping and unmangleInterpreterOutput). To suppress all output, use suppressOutput

    Definition Classes
    ReplReporterImplReplReporter
  31. def printMessage(posIn: Position, msg0: String): Unit
  32. def printResult(result: Either[String, String]): Unit

    Print result (Right --> success, Left --> error)

    Print result (Right --> success, Left --> error)

    Definition Classes
    ReplReporterImplReplReporter
  33. var printResults: Boolean

    Whether we're printing results (should only be used from the shell).

    Whether we're printing results (should only be used from the shell).

    Definition Classes
    ReplReporterImplReplReporter
  34. def rerunWithDetails(setting: Setting, name: String): String
    Definition Classes
    ReplReporterImpl → Reporter
  35. def reset(): Unit
    Definition Classes
    FilteringReporterReporter → Reporter
  36. val settings: Settings
    Definition Classes
    ReplReporterImplFilteringReporter
  37. def severityColor(severity: Severity): String
  38. def suppressOutput[T](operation: => T): T

    Don't print any errors/messages/echos during the execution of body.

    Don't print any errors/messages/echos during the execution of body.

    Definition Classes
    ReplReporterImplReplReporter
  39. def togglePrintResults(): Unit

    Toggle whether to print results (should only be used from the shell).

    Toggle whether to print results (should only be used from the shell).

    Definition Classes
    ReplReporterImplReplReporter
  40. var totalSilence: Boolean
  41. def trace(msg: => String): Unit
    Definition Classes
    ReplReporter
  42. def truncate(str: String): String
  43. var truncationOK: Boolean

    Whether very long lines can be truncated.

    Whether very long lines can be truncated. This exists so important debugging information (like printing the classpath) is not rendered invisible due to the max message length.

  44. def typeToCode(s: String): String

    Prepare a val/def type string for outputting in code.

    Prepare a val/def type string for outputting in code.

    Definition Classes
    ReplReporterImplReplStrings
  45. def unmangleInterpreterOutput(str: String): String
  46. def unwrap(str: String): String
  47. var unwrapStrings: Boolean

    String unwrapping can be disabled if it is causing issues.

    String unwrapping can be disabled if it is causing issues. Setting this to false means you will see Strings like "$iw.$iw.".

  48. final def warning(pos: Position, msg: String): Unit
    Definition Classes
    Reporter
  49. def warningCount: Int
    Definition Classes
    Reporter
  50. def withoutPrintingResults[T](body: => T): T

    Don't print result lines.

    Don't print result lines.

    Definition Classes
    ReplReporterImplReplReporter
  51. def withoutTruncating[T](body: => T): T

    Suppress truncation during the executing of body.

    Suppress truncation during the executing of body.

    Definition Classes
    ReplReporterImplReplReporter
  52. def withoutUnwrapping(op: => Unit): Unit

    Do not remove interpreter wrappers ($iw etc) from all output during the execution of body.

    Do not remove interpreter wrappers ($iw etc) from all output during the execution of body.

    Definition Classes
    ReplReporterImplReplReporter

Deprecated Value Members

  1. final def info(pos: Position, msg: String, force: Boolean): Unit
    Definition Classes
    Reporter
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use echo, as internal.Reporter does not support unforced info