Scala Compiler2.12.3-1 < Back
 

# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package interpreter

  The main REPL related classes and values are as follows.

  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 }

  Definition Classes
    nsc
-  package session

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

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

  Definition Classes
    interpreter
- AbstractFileClassLoader
- AbstractOrMissingHandler
- CommandLine
- Completion
- Delimited
- EchoReader
- ExprTyper
- ILoop
- IMain
- IMainOps
- ISettings
- Imports
- InteractiveReader
- Javap
- JavapClass
- Logger
- LoopCommands
- MemberHandlers
- NamedParam
- NamedParamClass
- NamedParamCreator
- Naming
- NoCompletion
- NoJavap
- Parsed
- Pasted
- Phased
- Power
- PresentationCompilation
- PresentationCompilerCompleter
- ProcessResult
- ReplConfig
- ReplDir
- ReplGlobal
- ReplOutput
- ReplProps
- ReplReporter
- ReplStrings
- ReplVals
- Results
- RichClass
- Scripted
- SimpleReader
- SplashLoop
- SplashReader
- StdReplTags
- StdReplVals
- Tabulator
- TapMaker
- VariColumnTabulator
- WriterOutputStream

c

scala.tools.nsc.interpreter

# Power 

###

#### class Power[ReplValsImpl <: ReplVals] extends AnyRef

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

Source
  Power.scala

Linear Supertypes
AnyRef, Any
Type Hierarchy
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Power
2. AnyRef
3. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new Power(intp: IMain, replVals: ReplValsImpl)(implicit arg0: reflect.api.JavaUniverse.TypeTag[ReplValsImpl], arg1: ClassTag[ReplValsImpl])

### Type Members

1.  trait Implicits1 extends AnyRef
2.  trait Implicits2 extends Implicits1
3.  class InternalInfo [T] extends AnyRef

   Todos...

   Todos... translate tag type arguments into applied types customizable symbol filter (had to hardcode no-spec to reduce noise)

4.  class InternalInfoWrapper [T] extends AnyRef
5.  trait LowPriorityInternalInfo extends AnyRef
6.  trait LowPriorityInternalInfoWrapper extends AnyRef

   Now dealing with the problem of accidentally calling a method on Type when you're holding a Symbol and seeing the Symbol converted to the type of Symbol rather than the type of the thing represented by the symbol, by only implicitly installing one method, "?", and the rest of the conveniences exist on that wrapper.

7.  trait LowPriorityPrettifier extends AnyRef
8.  class MultiPrettifierClass [T] extends PrettifierClass[T]
9.  class PackageSlurper extends SymSlurper
10.  trait Prettifier [T] extends AnyRef
11.  abstract class PrettifierClass [T] extends AnyRef
12.  trait ReplUtilities extends AnyRef
13.  class RichInputStream extends AnyRef
14.  class RichReplString extends AnyRef
15.  class RichReplURL extends AnyRef
16.  class SinglePrettifierClass [T] extends PrettifierClass[T]
17.  abstract class SymSlurper extends AnyRef

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from Power[ReplValsImpl] to any2stringadd[Power[ReplValsImpl]] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (Power[ReplValsImpl], B)
   Implicit
     This member is added by an implicit conversion from Power[ReplValsImpl] to ArrowAssoc[Power[ReplValsImpl]] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  def banner: String
8.  def classic: String
9.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... )
10.  def ensuring(cond: (Power[ReplValsImpl]) ⇒ Boolean, msg: ⇒ Any): Power[ReplValsImpl]
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to Ensuring[Power[ReplValsImpl]] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
11.  def ensuring(cond: (Power[ReplValsImpl]) ⇒ Boolean): Power[ReplValsImpl]
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to Ensuring[Power[ReplValsImpl]] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
12.  def ensuring(cond: Boolean, msg: ⇒ Any): Power[ReplValsImpl]
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to Ensuring[Power[ReplValsImpl]] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
13.  def ensuring(cond: Boolean): Power[ReplValsImpl]
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to Ensuring[Power[ReplValsImpl]] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
14.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
15.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
16.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
17.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to StringFormat[Power[ReplValsImpl]] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
18.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
19.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
20.  def init: String
21.  val intp: IMain
22.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
23.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
24.  final def notify(): Unit
    Definition Classes
      AnyRef
25.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
26.  lazy val phased: Phased
27.  lazy val rutil: ReplUtilities
28.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
29.  def toString(): String
    Definition Classes
      Power → AnyRef → Any
30.  def trees(code: String): List[Global.Tree]
31.  def unit(code: String): Global.CompilationUnit
32.  def unleash(): Unit

    Quietly starts up power mode and runs whatever is in init.

33.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
34.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
35.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
36.  def →[B](y: B): (Power[ReplValsImpl], B)
    Implicit
      This member is added by an implicit conversion from Power[ReplValsImpl] to ArrowAssoc[Power[ReplValsImpl]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc
37.  object InternalInfo extends LowPriorityInternalInfo
38.  object Prettifier extends LowPriorityPrettifier
39.  object StringPrettifier extends Prettifier[String]

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from Power[ReplValsImpl] to any2stringadd[Power[ReplValsImpl]]

### Inherited by implicit conversion StringFormat from Power[ReplValsImpl] to StringFormat[Power[ReplValsImpl]]

### Inherited by implicit conversion Ensuring from Power[ReplValsImpl] to Ensuring[Power[ReplValsImpl]]

### Inherited by implicit conversion ArrowAssoc from Power[ReplValsImpl] to ArrowAssoc[Power[ReplValsImpl]]

### Ungrouped