-
-
Notifications
You must be signed in to change notification settings - Fork 938
Expand file tree
/
Copy pathCommonByteLists.java
More file actions
58 lines (55 loc) · 4.2 KB
/
CommonByteLists.java
File metadata and controls
58 lines (55 loc) · 4.2 KB
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
package org.jruby.util;
import org.jcodings.specific.USASCIIEncoding;
/**
* Values which are referenced in multiple places. A ByteList warehouse!
*/
public class CommonByteLists {
public static final ByteList EMPTY = new ByteList(new byte[] {});
public static final ByteList AMPERSAND = new ByteList(new byte[] {'&'});
public static final ByteList AMPERSAND_AMPERSAND = new ByteList(new byte[] {'&', '&'});
public static final ByteList AREF_METHOD = new ByteList(new byte[] {'[', ']'});
public static final ByteList ASET_METHOD = new ByteList(new byte[] {'[', ']', '='});
public static final ByteList BACKTRACE_IN = new ByteList(new byte[] {':', 'i', 'n', ' ', '\''});
public static final ByteList CARET = new ByteList(new byte[] {'^'});
public static final ByteList COLON = new ByteList(new byte[] {':'});
public static final ByteList COLON_COLON = new ByteList(new byte[] {':', ':'});
public static final ByteList CONSTANTS = new ByteList(new byte[] {'c', 'o', 'n', 's', 't', 'a', 'n', 't', 's'});
public static final ByteList DASH = new ByteList(new byte[] {'-'});
public static final ByteList DOT = new ByteList(new byte[] {'.'});
public static final ByteList DEFINE_METHOD_METHOD = new ByteList(new byte[] {'d', 'e', 'f', 'i', 'n', 'e', '_', 'm', 'e', 't', 'h', 'o', 'd'});
public static final ByteList DOLLAR_SLASH = new ByteList(new byte[] {'$', '/'});
public static final ByteList DOLLAR_BACKSLASH = new ByteList(new byte[] {'$', '\\'});
public static final ByteList DOLLAR_BACKTICK = new ByteList(new byte[] {'$', '`'});
public static final ByteList DOLLAR_SINGLEQUOTE = new ByteList(new byte[] {'$', '\''});
public static final ByteList EACH = new ByteList(new byte[] {'e', 'a', 'c', 'h'});
public static final ByteList EXCEPTION = new ByteList(new byte[] {'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n'});
public static final ByteList _END_ = new ByteList(new byte[] {'_', 'E', 'N', 'D', '_'});
public static final ByteList EQUAL_TILDE = new ByteList(new byte[] {'=', '~'});
public static final ByteList METHODS = new ByteList(new byte[] {'m', 'e', 't', 'h', 'o', 'd', 's'});
public static final ByteList MINUS = new ByteList(new byte[] {'-'});
public static final ByteList FREEZE_METHOD = new ByteList(new byte[] {'f', 'r', 'e', 'e', 'z', 'e'});
public static final ByteList NEW = new ByteList(new byte[] {'n', 'e', 'w'});
public static final ByteList NEWLINE = new ByteList(new byte[] {'\n'});
public static final ByteList NEW_METHOD = NEW;
public static final ByteList NOT_IMPLEMENTED_ERROR = new ByteList(new byte[] {'N', 'o', 't', 'I', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd', 'E', 'r', 'r', 'o', 'r'});
public static final ByteList OR_OR = new ByteList(new byte[] {'|', '|'});
public static final ByteList PERCENT_PLUS = new ByteList(new byte[] {'%', '+'});
public static final ByteList PERCENT_Q = new ByteList(new byte[] {'%', 'Q'});
public static final ByteList SINGLE_QUOTE = new ByteList(new byte[] {'\''});
public static final ByteList SLASH = new ByteList(new byte[] {'/'});
public static final ByteList STAR = new ByteList(new byte[] {'*'});
public static final ByteList STAR_STAR = new ByteList(new byte[] {'*', '*'});
public static final ByteList FWD_REST = STAR;
public static final ByteList FWD_KWREST = STAR_STAR;
public static final ByteList FWD_BLOCK = AMPERSAND;
public static final ByteList FWD_ALL = new ByteList(new byte[] {'.', '.', '.'});
// Needs to be different than FWD_BLOCK for object identity comparisons.
public static final ByteList ANON_BLOCK = new ByteList(new byte[] {'&'}, USASCIIEncoding.INSTANCE);
public static final ByteList TAB = new ByteList(new byte[] {'\t'});
public static final ByteList UNDERSCORE = new ByteList(new byte[] {'_'});
public static final ByteList USING_METHOD = new ByteList(new byte[] {'u', 's', 'i', 'n', 'g'});
public static final ByteList REFINE_METHOD = new ByteList(new byte[] {'r', 'e', 'f', 'i', 'n', 'e'});
public static final ByteList ZERO = new ByteList(new byte[] {'0'});
public static final ByteList SEND = new ByteList("send".getBytes());
public static final ByteList NIL = new ByteList("nil".getBytes());
}