package backend
Content Hierarchy
Type Members
- trait JavaPlatform extends Platform
-
trait
Platform
extends AnyRef
The platform dependent pieces of Global.
-
abstract
class
ScalaPrimitives
extends AnyRef
Scala primitive operations are represented as methods in
Any
andAnyVal
subclasses.Scala primitive operations are represented as methods in
Any
andAnyVal
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 fornull
, and if non-null, callsjava.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.
The Scala compiler API.
The following resources are useful for Scala plugin/compiler development: