trait ReplReporter extends Reporter
- Alphabetic
- By Inheritance
- ReplReporter
- Reporter
- Reporter
- AnyRef
- Any
- by adapt reporter to legacy API
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def 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
- abstract def currentRequest_=(req: ReplRequest): Unit
Set currently executing request.
- abstract def indenting(n: Int)(body: => Unit): Unit
Change indentation due to prompt.
- abstract def info0(pos: Position, msg: String, severity: Severity, force: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Reporter
- abstract def isDebug: Boolean
- abstract def isTrace: Boolean
- abstract def out: PrintWriter
- abstract 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 (seewithoutUnwrapping
andunmangleInterpreterOutput
). To suppress all output, usesuppressOutput
- abstract def printResult(result: Either[String, String]): Unit
Print result (Right --> success, Left --> error)
- abstract def printResults: Boolean
Whether we're printing results (should only be used from the shell).
- abstract def suppressOutput[T](body: => T): T
Don't print any errors/messages/echos during the execution of
body
. - abstract def togglePrintResults(): Unit
Toggle whether to print results (should only be used from the shell).
- abstract def withoutPrintingResults[T](body: => T): T
Don't print result lines.
- abstract def withoutTruncating[T](body: => T): T
Suppress truncation during the executing of
body
. - abstract def withoutUnwrapping(body: => Unit): Unit
Do not remove interpreter wrappers ($iw etc) from all output during the execution of
body
.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ReplReporter toany2stringadd[ReplReporter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ReplReporter, B)
- Implicit
- This member is added by an implicit conversion from ReplReporter toArrowAssoc[ReplReporter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- var cancelled: Boolean
- Definition Classes
- Reporter
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def comment(pos: Position, msg: String): Unit
- Definition Classes
- Reporter
- def count(severity: Severity): Int
- Definition Classes
- Reporter
- def debug(msg: => String): Unit
- def echo(pos: Position, msg: String): Unit
- Definition Classes
- Reporter
- def echo(msg: String): Unit
- Definition Classes
- Reporter
- def ensuring(cond: (ReplReporter) => Boolean, msg: => Any): ReplReporter
- Implicit
- This member is added by an implicit conversion from ReplReporter toEnsuring[ReplReporter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ReplReporter) => Boolean): ReplReporter
- Implicit
- This member is added by an implicit conversion from ReplReporter toEnsuring[ReplReporter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ReplReporter
- Implicit
- This member is added by an implicit conversion from ReplReporter toEnsuring[ReplReporter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ReplReporter
- Implicit
- This member is added by an implicit conversion from ReplReporter toEnsuring[ReplReporter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(pos: Position, msg: String): Unit
- Definition Classes
- Reporter
- def errorCount: Int
- Definition Classes
- Reporter
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finish(): Unit
- Definition Classes
- Reporter
- def flush(): Unit
- Definition Classes
- Reporter
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ReplReporter toStringFormat[ReplReporter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasErrors: Boolean
- Definition Classes
- Reporter → Reporter
- def hasWarnings: Boolean
- Definition Classes
- Reporter
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rerunWithDetails(setting: Setting, name: String): String
- Definition Classes
- Reporter
- def reset(): Unit
- Definition Classes
- Reporter → Reporter
- def resetCount(severity: Severity): Unit
- Definition Classes
- Reporter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(msg: => String): Unit
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warning(pos: Position, msg: String): Unit
- Definition Classes
- Reporter
- def warningCount: Int
- Definition Classes
- Reporter
- object ERROR extends Severity
- Definition Classes
- Reporter
- object INFO extends Severity
- Definition Classes
- Reporter
- object WARNING extends Severity
- Definition Classes
- Reporter
Shadowed Implicit Value Members
- var cancelled: Boolean
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).cancelled
- Definition Classes
- Reporter
- def comment(pos: Position, msg: String): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).comment(pos, msg)
- Definition Classes
- Reporter
- def count: ((severity: _1.Severity)Int) forSome {val _1: Reporter}
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).count
- Definition Classes
- Reporter
- def echo(pos: Position, msg: String): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).echo(pos, msg)
- Definition Classes
- Reporter
- def echo(msg: String): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).echo(msg)
- Definition Classes
- Reporter
- def error(pos: Position, msg: String): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).error(pos, msg)
- Definition Classes
- Reporter
- def errorCount: Int
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).errorCount
- Definition Classes
- Reporter
- def finish(): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).finish()
- Definition Classes
- Reporter
- def flush(): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).flush()
- Definition Classes
- Reporter
- def hasErrors: Boolean
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).hasErrors
- Definition Classes
- Reporter → Reporter
- def hasWarnings: Boolean
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).hasWarnings
- Definition Classes
- Reporter
- def rerunWithDetails(setting: Setting, name: String): String
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).rerunWithDetails(setting, name)
- Definition Classes
- Reporter
- def reset(): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).reset()
- Definition Classes
- Reporter → Reporter
- def resetCount: ((severity: _1.Severity)Unit) forSome {val _1: Reporter}
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).resetCount
- Definition Classes
- Reporter
- def warning(pos: Position, msg: String): Unit
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).warning(pos, msg)
- Definition Classes
- Reporter
- def warningCount: Int
- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).warningCount
- Definition Classes
- Reporter
Deprecated Value Members
- final def info(pos: Position, msg: String, force: Boolean): Unit
Informational messages.
Informational messages. If
!force
, they may be suppressed.- Implicit
- This member is added by an implicit conversion from ReplReporter toReporter performed by method adapt reporter to legacy API in scala.tools.nsc.reporters.Reporter.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(replReporter: Reporter).info(pos, msg, force)
- Definition Classes
- Reporter
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use echo, as internal.Reporter does not support unforced info
- final def info(pos: Position, msg: String, force: Boolean): Unit
Informational messages.
Informational messages. If
!force
, they may be suppressed.- Definition Classes
- Reporter
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use echo, as internal.Reporter does not support unforced info
- def →[B](y: B): (ReplReporter, B)
- Implicit
- This member is added by an implicit conversion from ReplReporter toArrowAssoc[ReplReporter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.