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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
/* ____ ____ ____ ____ ______ *\
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
**
** $Id$
\* */
package scalac.util;
public class Names {
public static final Name ERROR = Name.ERROR;
public static final Name EMPTY = Name.EMPTY;
public static final Name WILDCARD = Name.fromString("_");
public static final Name COMPOUND_NAME = Name.fromString("<ct>");
public static final Name ANON_CLASS_NAME = Name.fromString("$anon");
public static final Name OUTER_PREFIX = Name.fromString("outer");
public static final Name _EQ = encode("_=");
public static final Name MINUS = encode("-");
public static final Name PLUS = encode("+");
public static final Name BANG = encode("!");
public static final Name TILDE = encode("~");
public static final Name EQEQ = encode("==");
public static final Name BANGEQ = encode("!=");
public static final Name BARBAR = encode("||");
public static final Name AMPAMP = encode("&&");
public static final Name COLONCOLON = encode("::");
public static final Name Any = Name.fromString("Any");
public static final Name AnyVal = Name.fromString("AnyVal");
public static final Name AnyRef = Name.fromString("AnyRef");
public static final Name Array = Name.fromString("Array");
public static final Name Byte = Name.fromString("Byte");
public static final Name Char = Name.fromString("Char");
public static final Name Boolean = Name.fromString("Boolean");
public static final Name Double = Name.fromString("Double");
public static final Name False = Name.fromString("False");
public static final Name Float = Name.fromString("Float");
public static final Name Function = Name.fromString("Function");
public static final Name Int = Name.fromString("Int");
public static final Name Labelled = Name.fromString("Labelled");
public static final Name List = Name.fromString("List");
public static final Name Long = Name.fromString("Long");
public static final Name Nil = Name.fromString("Nil");
public static final Name Object = Name.fromString("Object");
public static final Name PartialFunction = Name.fromString("PartialFunction");
public static final Name Predef = Name.fromString("Predef");
public static final Name Seq = Name.fromString("Seq");
public static final Name Short = Name.fromString("Short");
public static final Name String = Name.fromString("String");
public static final Name Symbol = Name.fromString("Symbol");
public static final Name Throwable = Name.fromString("Throwable");
public static final Name True = Name.fromString("True");
public static final Name Tuple = Name.fromString("Tuple");
public static final Name Unit = Name.fromString("Unit");
public static final Name apply = Name.fromString("apply");
public static final Name as = Name.fromString("as");
public static final Name elem = Name.fromString("elem");
public static final Name filter = Name.fromString("filter");
public static final Name flatmap = Name.fromString("flatMap");
public static final Name foreach = Name.fromString("foreach");
public static final Name hashCode = Name.fromString("hashCode");
public static final Name is = Name.fromString("is");
public static final Name isDefinedAt = Name.fromString("isDefinedAt");
public static final Name java = Name.fromString("java");
public static final Name java_lang = Name.fromString("java.lang");
public static final Name java_lang_Object = Name.fromString("java.lang.Object");
public static final Name java_lang_String = Name.fromString("java.lang.String");
public static final Name java_lang_Throwable = Name.fromString("java.lang.Throwable");
public static final Name lang = Name.fromString("lang");
public static final Name match = Name.fromString("match");
public static final Name map = Name.fromString("map");
public static final Name null_ = Name.fromString("null");
public static final Name predef = Name.fromString("predef");
public static final Name runtime = Name.fromString("runtime");
public static final Name scala = Name.fromString("scala");
public static final Name scala_Algebraic = Name.fromString("scala.Algebraic");
public static final Name scala_Any = Name.fromString("scala.Any");
public static final Name scala_AnyRef = Name.fromString("scala.AnyRef");
public static final Name scala_AnyVal = Name.fromString("scala.AnyVal");
public static final Name scala_Array = Name.fromString("scala.Array");
public static final Name scala_Boolean = Name.fromString("scala.Boolean");
public static final Name scala_Byte = Name.fromString("scala.Byte");
public static final Name scala_Case = Name.fromString("scala.Case");
public static final Name scala_Char = Name.fromString("scala.Char");
public static final Name scala_Double = Name.fromString("scala.Double");
public static final Name scala_Float = Name.fromString("scala.Float");
public static final Name scala_Function = Name.fromString("scala.Function");
public static final Name scala_Int = Name.fromString("scala.Int");
public static final Name scala_Long = Name.fromString("scala.Long");
public static final Name scala_Nil = Name.fromString("scala.Nil");
public static final Name scala_Object = Name.fromString("scala.Object");
public static final Name scala_PartialFunction = Name.fromString("scala.PartialFunction");
public static final Name scala_Predef = Name.fromString("scala.Predef");
public static final Name scala_Ref = Name.fromString("scala.Ref");
public static final Name scala_Seq = Name.fromString("scala.Seq");
public static final Name scala_Short = Name.fromString("scala.Short");
public static final Name scala_Symbol = Name.fromString("scala.Symbol");
public static final Name scala_Tuple = Name.fromString("scala.Tuple");
public static final Name scala_Unit = Name.fromString("scala.Unit");
public static final Name scala_runtime = Name.fromString("scala.runtime");
public static final Name scala_runtime_RunTime = Name.fromString("scala.runtime.RunTime");
public static final Name equals = Name.fromString("equals");
public static final Name toString = Name.fromString("toString");
public static final Name this_ = Name.fromString("this");
public static final Name throw_ = Name.fromString("throw");
public static final Name update = Name.fromString("update");
public static final Name length = Name.fromString("length");
public static final Name
ZNOT = encode("!"),
ZAND = encode("&&"),
ZOR = encode("||"),
NOT = encode("~"),
ADD = encode("+"),
SUB = encode("-"),
MUL = encode("*"),
DIV = encode("/"),
MOD = encode("%"),
EQ = encode("=="),
NE = encode("!="),
LT = encode("<"),
LE = encode("<="),
GT = encode(">"),
GE = encode(">="),
OR = encode("|"),
XOR = encode("^"),
AND = encode("&"),
LSL = encode("<<"),
LSR = encode(">>>"),
ASR = encode(">>");
private static Name encode(String string) {
return NameTransformer.encode(Name.fromString(string));
}
}
|