Top Fields Constructors Methods
org.jruby.ext.tracepoint

public Class TracePoint

extends RubyObject
Class Inheritance
Imports
java.util.ArrayList, .EnumSet, org.jruby.Ruby, .RubyBinding, .RubyClass, .RubyObject, .RubySymbol, org.jruby.anno.JRubyMethod, org.jruby.exceptions.RaiseException, org.jruby.runtime.Block, .EventHook, .JavaSites, .RubyEvent, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.TypeConverter

Field Summary

Modifier and TypeField and Description
private IRubyObject
private volatile boolean
private String
private IRubyObject
private String
private EventHook
private volatile boolean
private int
private String
private IRubyObject
private IRubyObject
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
TracePoint(Ruby runtime, RubyClass klass)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
private void
public static void
public IRubyObject
public IRubyObject
disable(ThreadContext context, Block block)

private synchronized IRubyObject
doToggle(ThreadContext context, Block block, boolean toggle)

public IRubyObject
enable(ThreadContext context, Block block)

public IRubyObject
public IRubyObject
public IRubyObject
initialize(ThreadContext context, IRubyObject[] _events, final Block block)

public IRubyObject
inspect(ThreadContext context)

Overrides org.jruby.RubyBasicObject.inspect.

Overrides default org.jruby.runtime.builtin.IRubyObject.inspect.

Returns a string containing a human-readable representation of obj.

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
private static JavaSites.TracePointSites
sites(ThreadContext context)

Hides org.jruby.RubyObject.sites.

Retrieve the call sites for this class.

public static IRubyObject
trace(ThreadContext context, IRubyObject self, IRubyObject[] events, Block block)

private void
update(String eventName, String file, int line, String name, IRubyObject type, IRubyObject exception, IRubyObject returnValue, IRubyObject binding)

public void
updateEnabled(ThreadContext context, boolean toggle)

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

bindingback to summary
private IRubyObject binding
enabledback to summary
private volatile boolean enabled
eventNameback to summary
private String eventName
exceptionback to summary
private IRubyObject exception
fileback to summary
private String file
hookback to summary
private EventHook hook
insideback to summary
private volatile boolean inside
lineback to summary
private int line
nameback to summary
private String name
returnValueback to summary
private IRubyObject returnValue
typeback to summary
private IRubyObject type

Constructor Detail

TracePointback to summary
public TracePoint(Ruby runtime, RubyClass klass)

Method Detail

bindingback to summary
public IRubyObject binding(ThreadContext context)
Annotations
@JRubyMethod
callee_idback to summary
public IRubyObject callee_id(ThreadContext context)
Annotations
@JRubyMethod
checkInsideback to summary
private void checkInside(ThreadContext context) throws RaiseException
createTracePointClassback to summary
public static void createTracePointClass(ThreadContext context, RubyClass Object)
defined_classback to summary
public IRubyObject defined_class(ThreadContext context)
Annotations
@JRubyMethod
disableback to summary
public IRubyObject disable(ThreadContext context, Block block)
Annotations
@JRubyMethod
doToggleback to summary
private synchronized IRubyObject doToggle(ThreadContext context, Block block, boolean toggle)
enableback to summary
public IRubyObject enable(ThreadContext context, Block block)
Annotations
@JRubyMethod
enabled_pback to summary
public IRubyObject enabled_p(ThreadContext context)
Annotations
@JRubyMethod
name:enabled?
eventback to summary
public IRubyObject event(ThreadContext context)
Annotations
@JRubyMethod
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] _events, final Block block)
Annotations
@JRubyMethod
rest:true
visibility:PRIVATE
inspectback to summary
public IRubyObject inspect(ThreadContext context)

Overrides org.jruby.RubyBasicObject.inspect.

Overrides default org.jruby.runtime.builtin.IRubyObject.inspect.

Doc from org.jruby.RubyBasicObject.inspect.

Returns a string containing a human-readable representation of obj. If not overridden, uses the to_s method to generate the string. [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"

Annotations
@JRubyMethod
linenoback to summary
public IRubyObject lineno(ThreadContext context)
Annotations
@JRubyMethod
method_idback to summary
public IRubyObject method_id(ThreadContext context)
Annotations
@JRubyMethod
pathback to summary
public IRubyObject path(ThreadContext context)
Annotations
@JRubyMethod
raised_exceptionback to summary
public IRubyObject raised_exception(ThreadContext context)
Annotations
@JRubyMethod
return_valueback to summary
public IRubyObject return_value(ThreadContext context)
Annotations
@JRubyMethod
selfback to summary
public IRubyObject self(ThreadContext context)
Annotations
@JRubyMethod
sitesback to summary
private static JavaSites.TracePointSites sites(ThreadContext context)

Hides org.jruby.RubyObject.sites.

Doc from org.jruby.RubyBasicObject.sites.

Retrieve the call sites for this class. It is expected that all Java-based core classes that do call site caching will have a similar method.

traceback to summary
public static IRubyObject trace(ThreadContext context, IRubyObject self, IRubyObject[] events, Block block)
Annotations
@JRubyMethod
rest:true
meta:true
updateback to summary
private void update(String eventName, String file, int line, String name, IRubyObject type, IRubyObject exception, IRubyObject returnValue, IRubyObject binding)
updateEnabledback to summary
public void updateEnabled(ThreadContext context, boolean toggle)