Note
This was renamed from UnboundMethod.java
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public RubyMethod | |
| public IRubyObject | |
| private CacheEntry | |
| public static RubyClass | |
| public RubyUnboundMethod | dup(ThreadContext
the thread context context)Overrides default org. RubyMethod dup. |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public static RubyUnboundMethod | newUnboundMethod(RubyModule implementationModule, String methodName, RubyModule originModule, String originName, CacheEntry entry)
|
| public RubyBoolean | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public RubyUnboundMethod | rbClone()
Implements abstract org. Implements org. RubyMethod clone. |
| public IRubyObject |
| RubyUnboundMethod | back to summary |
|---|---|
| protected RubyUnboundMethod(Ruby runtime) | |
| bind | back to summary |
|---|---|
public RubyMethod bind(ThreadContext context, IRubyObject aReceiver)
| |
| bind_call | back to summary |
|---|---|
public IRubyObject bind_call(ThreadContext context, IRubyObject[] args, Block block)
| |
| convertUnboundMethodToCallableEntry | back to summary |
|---|---|
| private CacheEntry convertUnboundMethodToCallableEntry(ThreadContext context, RubyClass receiverClass) | |
| defineUnboundMethodClass | back to summary |
|---|---|
| public static RubyClass defineUnboundMethodClass(ThreadContext context, RubyClass Object) | |
| dup | back to summary |
|---|---|
| public RubyUnboundMethod dup(ThreadContext context) Overrides default org. Doc from org. RubyMethod dup.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from org. This override does not do a "checked" dispatch.
| |
| hash | back to summary |
|---|---|
| public RubyFixnum hash(ThreadContext context) Overrides org. Doc from org. Will return the hash code of this object. In comparison to MRI, this method will use the Java identity hash code instead of using rb_obj_id, since the usage of id in JRuby will incur the cost of some. ObjectSpace maintenance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. This override does not do "checked" dispatch since Object usually has #hash defined.
| |
| inspect | back to summary |
|---|---|
| public IRubyObject inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| newUnboundMethod | back to summary |
|---|---|
| public static RubyUnboundMethod newUnboundMethod(RubyModule implementationModule, String methodName, RubyModule originModule, String originName, CacheEntry entry) | |
| op_equal | back to summary |
|---|---|
| public RubyBoolean op_equal(ThreadContext context, IRubyObject other) Overrides org. Implements org. Doc from org. rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems
| |
| rbClone | back to summary |
|---|---|
| public RubyUnboundMethod rbClone() Implements abstract org. Implements org. Doc from org. RubyMethod clone.
| |
| super_method | back to summary |
|---|---|
public IRubyObject super_method(ThreadContext context)
| |