Top Description Constructors Methods
org.jruby.runtime

public abstract Class EventHook

extends Object
Class Inheritance
Known Direct Subclasses
org.jruby.runtime.TraceEventManager.CallTraceFuncHook
Imports
org.jruby.runtime.builtin.IRubyObject, java.util.Set

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.
Authors
headius, hooligan495

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
event(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type)

public abstract void
eventHandler(ThreadContext context, String eventName, String file, int line, String name, IRubyObject type)

public Set<RubyEvent>
public abstract boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EventHookback to summary
public EventHook()

Method Detail

eventback to summary
public void event(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type)
eventHandlerback to summary
public abstract void eventHandler(ThreadContext context, String eventName, String file, int line, String name, IRubyObject type)
eventSetback to summary
public Set<RubyEvent> eventSet()
isInterestedInEventback to summary
public abstract boolean isInterestedInEvent(RubyEvent event)
needsDebugback to summary
public boolean needsDebug()