Package org.jruby.runtime
Class EventHook
java.lang.Object
org.jruby.runtime.EventHook
- Direct Known Subclasses:
TraceEventManager.CallTraceFuncHook
Changed event hook to an enum that manages a collection of event handlers.
There are now global event delgators for each event type. If a component
is interested in being notified of an event they should register a handler
with that event.
one of the motivations of implementing the EventHook in this way is that we
needed to handle modifying line numbers to be one based (and the RETURN type
ine number for ruby needs to be offset by 2). If these rules ever change we
can change them here.
- Author:
- headius, hooligan495
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
event
(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type) abstract void
eventHandler
(ThreadContext context, String eventName, String file, int line, String name, IRubyObject type) eventSet()
abstract boolean
isInterestedInEvent
(RubyEvent event) boolean
-
Constructor Details
-
EventHook
public EventHook()
-
-
Method Details
-
event
public void event(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type) -
eventHandler
public abstract void eventHandler(ThreadContext context, String eventName, String file, int line, String name, IRubyObject type) -
isInterestedInEvent
-
eventSet
-
needsDebug
public boolean needsDebug()
-