Scala 2.8.0.Beta1-RC2 API

This document is the API specification for Scala Library

Class Summary
final class elidable (val final level : Int) extends StaticAnnotation
An annotation for methods for which invocations might be removed in the generated code. Behavior is influenced by passing -Xelide-level to scalac. Methods marked elidable will be omitted from generated code if the priority given the annotation is lower than to the command line argument. Examples: import annotation.elidable._ @elidable(WARNING) def foo = log("foo") @elidable(FINE) def bar = log("bar") scalac -Xelide-methods-below=1000
final class switch extends StaticAnnotation
final class tailrec extends StaticAnnotation
Object Summary
object elidable extends AnyRef
This useless appearing code was necessary to allow people to use named constants for the elidable annotation. This is what it takes to convince the compiler to fold the constants: otherwise when it's time to check an elision level it's staring at a tree like (Select(Level, Select(FINEST, Apply(intValue, Nil)))) instead of the number 300.