forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRubyEvent.java
More file actions
40 lines (34 loc) · 878 Bytes
/
Copy pathRubyEvent.java
File metadata and controls
40 lines (34 loc) · 878 Bytes
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
/*
* RubyEvent.java
*
* Created on August 8, 2008
*
*/
package org.jruby.runtime;
public enum RubyEvent {
LINE ("line", 1),
CLASS ("class", 1),
END ("end", 1),
CALL ("call", 1),
RETURN ("return", 1),
C_CALL ("c-call", 1),
C_RETURN ("c-return", 1),
B_CALL ("b-call", 1),
B_RETURN ("b-return", 1),
THREAD_BEGIN ("thread-begin", 1),
THREAD_END ("thread-end", 1),
RAISE ("raise", 1),
COVERAGE ("coverage", 1);
private final String event_name;
private final int line_number_offset;
RubyEvent(String event_name, int line_number_offset){
this.event_name = event_name;
this.line_number_offset = line_number_offset;
}
public int getLineNumberOffset(){
return line_number_offset;
}
public String getName(){
return event_name;
}
}