Scala Compiler2.12.21 < 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 ast
  Definition Classes
    nsc
-  package backend
  Definition Classes
    nsc
-  package jvm
- JavaPlatform
- Platform
- ScalaPrimitives
-  package classpath
  Definition Classes
    nsc
-  package doc
  Definition Classes
    nsc
-  package interactive
  Definition Classes
    nsc
-  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 io
  Definition Classes
    nsc
-  package javac
  Definition Classes
    nsc
-  package plugins
  Definition Classes
    nsc
-  package profile
  Definition Classes
    nsc
-  package reporters
  Definition Classes
    nsc
-  package settings
  Definition Classes
    nsc
-  package symtab
  Definition Classes
    nsc
-  package transform
  Definition Classes
    nsc
-  package typechecker
  Definition Classes
    nsc
-  package util
  Definition Classes
    nsc

p

scala.tools.nsc

# backend 

#### package backend

### Type Members

1.  trait JavaPlatform extends Platform
2.  trait Platform extends AnyRef

   The platform dependent pieces of Global.

3.  abstract class ScalaPrimitives extends AnyRef

   Scala primitive operations are represented as methods in `Any` and `AnyVal` subclasses.

   Scala primitive operations are represented as methods in `Any` and `AnyVal` subclasses. Here we demultiplex them by providing a mapping from their symbols to integers. Different methods exist for different value types, but with the same meaning (like plus, minus, etc.). They will all be mapped to the same int.

   Note: The three equal methods have the following semantics:

   - `"=="` checks for `null`, and if non-null, calls `java.lang.Object.equals` `(class: Any; modifier: final)`. Primitive: `EQ`
   - `"eq"` usual reference comparison `(class: AnyRef; modifier: final)`. Primitive: `ID`
   - `"equals"` user-defined equality (Java semantics) `(class: Object; modifier: none)`. Primitive: `EQUALS`

   Inspired from the `scalac` compiler.

### Ungrouped