Top Description Fields Constructors Methods
org.jruby

public abstract Class AbstractRubyMethod

extends RubyObject
implements DataType
Class Inheritance
All Implemented Interfaces
org.jruby.runtime.marshal.DataType
Known Direct Subclasses
org.jruby.RubyMethod, org.jruby.RubyUnboundMethod
Annotations
@JRubyClass
name:Method, UnboundMethod
overrides:RubyMethod, RubyUnboundMethod
Imports
org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.internal.runtime.methods.AliasMethod, .DelegatingDynamicMethod, .DynamicMethod, .PartialDelegatingMethod, .UndefinedMethod, org.jruby.runtime.ArgumentDescriptor, .Helpers, .PositionAware, .ThreadContext, org.jruby.runtime.backtrace.TraceType, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.callsite.CacheEntry, org.jruby.runtime.marshal.DataType

Base type for the two Ruby Method types.
See Also
RubyMethod, RubyUnboundMethod

Field Summary

Modifier and TypeField and Description
protected CacheEntry
protected RubyModule
protected DynamicMethod
protected String
protected RubyModule
protected String
protected RubyModule
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
protected
AbstractRubyMethod(Ruby runtime, RubyClass rubyClass)

Method Summary

Modifier and TypeMethod and Description
public RubyFixnum

Returns:

the number of arguments of a method.
arity
(ThreadContext context)

Returns the number of arguments a method accepted.

public RubyFixnum
arity()
Deprecated

public boolean
equals(Object
object to compare
other
)

Overrides org.jruby.RubyObject.equals.

This override does not do a "checked" dispatch.

public String
public int
public DynamicMethod
public String
public IRubyObject
inspect(IRubyObject receiver)

public IRubyObject
public IRubyObject
public final IRubyObject
op_eql19(ThreadContext context, IRubyObject other)
Deprecated since 9.4-.

public IRubyObject
public IRubyObject
public IRubyObject
public RubyBoolean
private_p(ThreadContext context)
Deprecated since 10.0.

public RubyBoolean
protected_p(ThreadContext context)
Deprecated since 10.0.

public RubyBoolean
public_p(ThreadContext context)
Deprecated since 10.0.

public abstract AbstractRubyMethod
public IRubyObject
protected IRubyObject
super_method(ThreadContext context, IRubyObject receiver, RubyModule superClass)

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

entryback to summary
protected CacheEntry entry
implementationModuleback to summary
protected RubyModule implementationModule
methodback to summary
protected DynamicMethod method
methodNameback to summary
protected String methodName
originModuleback to summary
protected RubyModule originModule
originNameback to summary
protected String originName
sourceModuleback to summary
protected RubyModule sourceModule

Constructor Detail

AbstractRubyMethodback to summary
protected AbstractRubyMethod(Ruby runtime, RubyClass rubyClass)

Method Detail

arityback to summary
public RubyFixnum arity(ThreadContext context)

Returns the number of arguments a method accepted.

Returns:RubyFixnum

the number of arguments of a method.

Annotations
@JRubyMethod
name:arity
arityback to summary
public RubyFixnum arity()

Deprecated

Annotations
@Deprecated
equalsback to summary
public boolean equals(Object other)

Overrides org.jruby.RubyObject.equals.

Doc from org.jruby.RubyObject.equals.

This override does not do a "checked" dispatch.

Parameters
other:Object

Doc from org.jruby.RubyBasicObject.equals.

object to compare

Returns:boolean

Doc from org.jruby.RubyBasicObject.equals.

true if equals

Annotations
@Override
getFilenameback to summary
public String getFilename()
getLineback to summary
public int getLine()
getMethodback to summary
public DynamicMethod getMethod()
getMethodNameback to summary
public String getMethodName()
inspectback to summary
public IRubyObject inspect(IRubyObject receiver)
nameback to summary
public IRubyObject name(ThreadContext context)
Annotations
@JRubyMethod
name:name
op_eqlback to summary
public IRubyObject op_eql(ThreadContext context, IRubyObject other)
Annotations
@JRubyMethod
name:eql?
op_eql19back to summary
public final IRubyObject op_eql19(ThreadContext context, IRubyObject other)

Deprecated

since 9.4-.

Annotations
@Deprecated
since:9.4-
original_nameback to summary
public IRubyObject original_name(ThreadContext context)
Annotations
@JRubyMethod
ownerback to summary
public IRubyObject owner(ThreadContext context)
Annotations
@JRubyMethod
name:owner
parametersback to summary
public IRubyObject parameters(ThreadContext context)
Annotations
@JRubyMethod
name:parameters
private_pback to summary
public RubyBoolean private_p(ThreadContext context)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
protected_pback to summary
public RubyBoolean protected_p(ThreadContext context)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
public_pback to summary
public RubyBoolean public_p(ThreadContext context)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
rbCloneback to summary
public abstract AbstractRubyMethod rbClone()

Redeclares org.jruby.runtime.builtin.IRubyObject.rbClone.

Overrides org.jruby.RubyBasicObject.rbClone.

Doc from org.jruby.runtime.builtin.IRubyObject.rbClone.

RubyMethod clone.

Returns:AbstractRubyMethod

a cloned object

source_locationback to summary
public IRubyObject source_location(ThreadContext context)
Annotations
@JRubyMethod
name:source_location
super_methodback to summary
protected IRubyObject super_method(ThreadContext context, IRubyObject receiver, RubyModule superClass)