scala.tools.nsc

interpreter

package interpreter

The main REPL related classes and values are as follows. In addition to standard compiler classes Global and Settings, there are:

History: an interface for session history. Completion: an interface for tab completion. ILoop (formerly InterpreterLoop): The umbrella class for a session. IMain (formerly Interpreter): Handles the evolving state of the session and handles submitting code to the compiler and handling the output. InteractiveReader: how ILoop obtains input. History: an interface for session history. Completion: an interface for tab completion. Power: a repository for more advanced/experimental features.

ILoop contains { in: InteractiveReader, intp: IMain, settings: Settings, power: Power } InteractiveReader contains { history: History, completion: Completion } IMain contains { global: Global }

Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. interpreter
  2. ReplStrings
  3. ReplConfig
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AbstractFileClassLoader extends ClassLoader with ScalaClassLoader

    A class loader that loads files from a scala.tools.nsc.io.AbstractFile.

  2. class AbstractOrMissingHandler[T] extends PartialFunction[Throwable, T]

  3. trait CodeHandlers[T] extends AnyRef

    The start of a simpler interface for utilizing the compiler with piecemeal code strings.

  4. class CommandLine extends CompilerCommand

    A command line for the interpreter.

  5. trait Completion extends AnyRef

    An implementation-agnostic completion interface which makes no reference to the jline classes.

  6. trait CompletionAware extends AnyRef

    An interface for objects which are aware of tab completion and will supply their own candidates and resolve their own paths.

  7. trait CompletionOutput extends AnyRef

    This has a lot of duplication with other methods in Symbols and Types, but repl completion utility is very sensitive to precise output.

  8. trait ConsoleReaderHelper extends ConsoleReader

  9. trait Delimited extends AnyRef

  10. trait ExprTyper extends AnyRef

  11. trait Formatting extends AnyRef

  12. class ILoop extends LoopCommands with ILoopInit

    The Scala interactive shell.

  13. trait ILoopInit extends AnyRef

    Machinery for the asynchronous initialization of the repl.

  14. class IMain extends Imports

    An interpreter for Scala code.

  15. class ISettings extends AnyRef

    Settings for the interpreter

  16. trait Imports extends AnyRef

  17. type InputStream = java.io.InputStream

  18. trait InteractiveReader extends AnyRef

    Reads lines from an input stream

  19. type JClass = Class[_]

  20. type JCollection[T] = Collection[T]

  21. type JFile = File

  22. class JLineCompletion extends Completion with CompletionOutput

  23. class JLineDelimiter extends ArgumentDelimiter

  24. class JLineReader extends InteractiveReader

    Reads from the console using JLine.

  25. type JList[T] = java.util.List[T]

  26. type JPrintWriter = PrintWriter

  27. trait Logger extends AnyRef

  28. trait LoopCommands extends AnyRef

  29. trait MemberHandlers extends AnyRef

  30. trait NamedParam extends AnyRef

  31. case class NamedParamClass(name: String, tpe: String, value: Any) extends NamedParam with Product with Serializable

  32. trait NamedParamCreator extends AnyRef

  33. trait Naming extends AnyRef

    This is for name logic which is independent of the compiler (notice there's no Global.

  34. type OutputStream = java.io.OutputStream

  35. class Parsed extends Delimited

    One instance of a command buffer.

  36. abstract class Pasted extends AnyRef

    If it looks like they're pasting in a scala interpreter transcript, remove all the formatting we inserted so we can make some sense of it.

  37. trait Phased extends AnyRef

    Mix this into an object and use it as a phasing swiss army knife.

  38. class Power[ReplValsImpl <: ReplVals] extends AnyRef

    A class for methods to be injected into the intp in power mode.

  39. class ProcessResult extends AnyRef

  40. trait ReplConfig extends AnyRef

  41. trait ReplGlobal extends Global

    A layer on top of Global so I can guarantee some extra functionality for the repl.

  42. class ReplProps extends AnyRef

  43. class ReplReporter extends ConsoleReporter

    Like ReplGlobal, a layer for ensuring extra functionality.

  44. trait ReplStrings extends AnyRef

  45. abstract class ReplVals extends AnyRef

    A class which the repl utilizes to expose predefined objects.

  46. class RichClass[T] extends AnyRef

  47. class SimpleReader extends InteractiveReader

    Reads using standard JDK API

  48. class StdReplVals extends ReplVals

  49. trait StructuredTypeStrings extends DestructureTypes

    A more principled system for turning types into strings.

  50. class TapMaker[T] extends AnyRef

    Definition Classes
    ReplConfig
  51. trait TypeStrings extends AnyRef

    Logic for turning a type into a String.

Value Members

  1. object AbstractOrMissingHandler

  2. object ByteCode

  3. object CodeHandlers

  4. object Completion

  5. object CompletionAware

  6. object ILoop

  7. object IMain

    Utility methods for the Interpreter.

  8. val IR: Results.type

  9. object InteractiveReader

  10. object NamedParam extends NamedParamCreator

  11. object NoCompletion extends Completion

  12. object Parsed

  13. object ProcessResult

  14. object ReplVals

  15. object Results

  16. object SimpleReader

  17. object TypeStrings extends TypeStrings

  18. def any2stringOf(x: Any, maxlen: Int): String

    Definition Classes
    ReplStrings
  19. def isQuoted(s: String): Boolean

    Definition Classes
    ReplStrings
  20. def isReplDebug: Boolean

    Definition Classes
    ReplConfig
  21. def isReplInfo: Boolean

    Definition Classes
    ReplConfig
  22. def isReplPower: Boolean

    Definition Classes
    ReplConfig
  23. def isReplTrace: Boolean

    Definition Classes
    ReplConfig
  24. implicit def postfixOps: postfixOps

  25. lazy val replProps: ReplProps

    Definition Classes
    ReplConfig
  26. package session

    Files having to do with the state of a repl session: lines of text entered, types and terms defined, etc.

  27. def string2code(str: String): String

    Convert a string into code that can recreate the string.

    Convert a string into code that can recreate the string. This requires replacing all special characters by escape codes. It does not add the surrounding " marks.

    Definition Classes
    ReplStrings
  28. def string2codeQuoted(str: String): String

    Definition Classes
    ReplStrings
  29. def words(s: String): List[String]

    Definition Classes
    ReplStrings

Inherited from ReplStrings

Inherited from ReplConfig

Inherited from AnyRef

Inherited from Any

Ungrouped