-
-
Notifications
You must be signed in to change notification settings - Fork 938
Expand file tree
/
Copy pathObjectFlags.java
More file actions
57 lines (51 loc) · 2.4 KB
/
ObjectFlags.java
File metadata and controls
57 lines (51 loc) · 2.4 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
package org.jruby;
/**
* Flags used by RubyBasicObject descendants.
*/
public interface ObjectFlags {
FlagRegistry registry = new FlagRegistry();
// These flags must be registered from top of hierarchy down to maintain order.
// TODO: Replace these during the build with their calculated values.
@Deprecated(since = "10.0.3.0")
int FALSE_F = registry.newFlag(RubyBasicObject.class);
@Deprecated(since = "10.0.3.0")
int NIL_F = registry.newFlag(RubyBasicObject.class);
@Deprecated(since = "10.0.3.0")
int FROZEN_F = registry.newFlag(RubyBasicObject.class);
@Deprecated(since = "10.0.3.0")
int CACHEPROXY_F = registry.newFlag(RubyModule.class);
@Deprecated(since = "10.0.3.0")
int NEEDSIMPL_F = registry.newFlag(RubyModule.class);
@Deprecated(since = "10.0.3.0")
int REFINED_MODULE_F = registry.newFlag(RubyModule.class);
@Deprecated(since = "10.0.3.0")
int IS_OVERLAID_F = registry.newFlag(RubyModule.class);
int OMOD_SHARED = registry.newFlag(RubyModule.class);
@Deprecated(since = "10.0.3.0")
int INCLUDED_INTO_REFINEMENT = registry.newFlag(RubyModule.class);
@Deprecated(since = "10.0.3.0")
int TEMPORARY_NAME = registry.newFlag(RubyModule.class);
// order is important here; CR_7BIT_f needs to be 16 and CR_VALID_F needs to be 32 to match values in Prism parser
@Deprecated(since = "10.0.3.0")
int FSTRING = registry.newFlag(RubyString.class);
@Deprecated(since = "10.0.3.0")
int CR_7BIT_F = registry.newFlag(RubyString.class);
@Deprecated(since = "10.0.3.0")
int CR_VALID_F = registry.newFlag(RubyString.class);
@Deprecated(since = "10.0.3.0")
int CHILLED_LITERAL_F = registry.newFlag(RubyString.class);
@Deprecated(since = "10.0.3.0")
int CHILLED_SYMBOL_TO_S_F = registry.newFlag(RubyString.class);
@Deprecated(since = "10.0.3.0")
int MATCH_BUSY = registry.newFlag(RubyMatchData.class);
@Deprecated(since = "10.0.3.0")
int COMPARE_BY_IDENTITY_F = registry.newFlag(RubyHash.class);
@Deprecated(since = "10.0.3.0")
int KEYWORD_REST_ARGUMENTS_F = registry.newFlag(RubyHash.class);
@Deprecated(since = "10.0.3.0")
int PROCDEFAULT_HASH_F = registry.newFlag(RubyHash.class);
@Deprecated(since = "10.0.3.0")
int KEYWORD_ARGUMENTS_F = registry.newFlag(RubyHash.class);
@Deprecated(since = "10.0.3.0")
int RUBY2_KEYWORD_F = registry.newFlag(RubyHash.class);
}