FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jruby/core/src/main/java/org/jruby/util/DefinedMessage.java at master · jruby/jruby · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
jruby
/
jruby
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
946
Star
3.9k
Code
Issues
840
Pull requests
109
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
util
/
DefinedMessage.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (52 loc) · 1.39 KB
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
util
/
DefinedMessage.java
Copy path
File metadata and controls
60 lines (52 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
org
.
jruby
.
util
;
import
java
.
util
.
HashMap
;
import
java
.
util
.
Map
;
/**
* An enum for all "defined?" messages.
*/
public
enum
DefinedMessage
{
EXPRESSION
(
"expression"
),
ASSIGNMENT
(
"assignment"
),
GLOBAL_VARIABLE
(
"global-variable"
),
METHOD
(
"method"
),
CLASS_VARIABLE
(
"class variable"
),
CONSTANT
(
"constant"
),
LOCAL_VARIABLE
(
"local-variable"
),
LOCAL_VARIABLE_IN_BLOCK
(
"local-variable(in-block)"
),
FALSE
(
"false"
),
INSTANCE_VARIABLE
(
"instance-variable"
),
NIL
(
"nil"
),
SELF
(
"self"
),
SUPER
(
"super"
),
TRUE
(
"true"
),
YIELD
(
"yield"
),
BACKREF_AMPERSAND
(
"$&"
),
BACKREF_PLUS
(
"$+"
),
BACKREF_BACKTICK
(
"$`"
),
BACKREF_SQUOTE
(
"$'"
),
BACKREF_ONE
(
"$1"
),
BACKREF_TWO
(
"$2"
),
BACKREF_THREE
(
"$3"
),
BACKREF_FOUR
(
"$4"
),
BACKREF_FIVE
(
"$5"
),
BACKREF_SIX
(
"$6"
),
BACKREF_SEVEN
(
"$7"
),
BACKREF_EIGHT
(
"$8"
),
BACKREF_NINE
(
"$9"
);
private
static
final
Map
<
String
,
DefinedMessage
>
byText
=
new
HashMap
<
String
,
DefinedMessage
>();
static
{
for
(
DefinedMessage
definedMessage
:
values
()) {
byText
.
put
(
definedMessage
.
getText
(),
definedMessage
);
}
}
public
String
getText
() {
return
text
;
}
public
static
DefinedMessage
byText
(
String
text
) {
return
byText
.
get
(
text
);
}
private
DefinedMessage
(
String
text
) {
this
.
text
=
text
;
}
private
final
String
text
;
}
Back
|
FazBrowse Home
|
New Git URL