blob: 7862ab0d25d8455baab19a103afcb1ec87c1f054 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* NSC -- new Scala compiler
* Copyright 2005-2011 LAMP/EPFL
* @author Martin Odersky
*/
package scala.reflect
package api
trait Constants extends base.Constants {
self: Universe =>
override type Constant >: Null <: AnyRef with ConstantApi
abstract class ConstantApi {
val value: Any
def tpe: Type
def isNaN: Boolean
def booleanValue: Boolean
def byteValue: Byte
def shortValue: Short
def charValue: Char
def intValue: Int
def longValue: Long
def floatValue: Float
def doubleValue: Double
def stringValue: String
def typeValue: Type
def symbolValue: Symbol
def convertTo(pt: Type): Constant
}
}
|