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. class CommandLine extends CompilerCommand

    A command line for the interpreter.

  4. trait Completion extends AnyRef

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

  5. 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.

  6. 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.

  7. trait ConsoleReaderHelper extends ConsoleReader

  8. trait Delimited extends AnyRef

  9. trait ExprTyper extends AnyRef

  10. trait Formatting extends AnyRef

  11. class ILoop extends LoopCommands

    The Scala interactive shell.

  12. class IMain extends Imports

    An interpreter for Scala code.

  13. implicit class IMainOps extends AnyRef

    This class serves to trick the compiler into treating a var (intp, in ILoop) as a stable identifier.

  14. class ISettings extends AnyRef

    Settings for the interpreter

  15. trait Imports extends AnyRef

  16. type InputStream = java.io.InputStream

  17. trait InteractiveReader extends AnyRef

    Reads lines from an input stream

  18. type JClass = Class[_]

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

  20. type JFile = File

  21. class JLineCompletion extends Completion with CompletionOutput

  22. class JLineDelimiter extends ArgumentDelimiter

  23. class JLineReader extends InteractiveReader

    Reads from the console using JLine.

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

  25. type JPrintWriter = PrintWriter

  26. trait Logger extends AnyRef

  27. trait LoopCommands extends AnyRef

  28. trait MemberHandlers extends AnyRef

  29. trait NamedParam extends AnyRef

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

  31. trait NamedParamCreator extends AnyRef

  32. trait Naming extends AnyRef

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

  33. type OutputStream = java.io.OutputStream

  34. class Parsed extends Delimited

    One instance of a command buffer.

  35. 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.

  36. trait Phased extends AnyRef

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

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

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

  38. class ProcessResult extends AnyRef

  39. trait ReplConfig extends AnyRef

  40. trait ReplDir extends AbstractFile with Clearable

    Directory to save .

  41. trait ReplGlobal extends Global

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

  42. class ReplOutput extends AnyRef

  43. class ReplProps extends AnyRef

  44. class ReplReporter extends ConsoleReporter

    Like ReplGlobal, a layer for ensuring extra functionality.

  45. trait ReplStrings extends AnyRef

  46. abstract class ReplVals extends AnyRef

    A class which the repl utilizes to expose predefined objects.

  47. class RichClass[T] extends AnyRef

  48. class SimpleReader extends InteractiveReader

    Reads using standard JDK API

  49. class StdReplVals extends ReplVals

  50. trait StructuredTypeStrings extends DestructureTypes

    A more principled system for turning types into strings.

  51. class TapMaker[T] extends AnyRef

    Definition Classes
    ReplConfig
  52. trait TypeStrings extends AnyRef

    Logic for turning a type into a String.

Value Members

  1. object AbstractOrMissingHandler

  2. object ByteCode

  3. object Completion

  4. object ILoop

  5. object IMain

    Utility methods for the Interpreter.

  6. val IR: Results.type

  7. object InteractiveReader

  8. object NamedParam extends NamedParamCreator

  9. object NoCompletion extends Completion

  10. object Parsed

  11. object ReplVals

  12. object Results

  13. object SimpleReader

  14. object TypeStrings extends TypeStrings

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

    Definition Classes
    ReplStrings
  16. def isReplDebug: Boolean

    Definition Classes
    ReplConfig
  17. def isReplInfo: Boolean

    Definition Classes
    ReplConfig
  18. def isReplPower: Boolean

    Definition Classes
    ReplConfig
  19. def isReplTrace: Boolean

    Definition Classes
    ReplConfig
  20. implicit def postfixOps: postfixOps

  21. lazy val replProps: ReplProps

    Definition Classes
    ReplConfig
  22. package session

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

  23. def staticTypeTag[T](implicit arg0: ClassTag[T]): reflect.api.JavaUniverse.TypeTag[T]

  24. 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
  25. def string2codeQuoted(str: String): String

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

    Definition Classes
    ReplStrings

Inherited from ReplStrings

Inherited from ReplConfig

Inherited from AnyRef

Inherited from Any

Ungrouped