Note
This was renamed from Method.java
| Modifier and Type | Field and Description |
|---|---|
| protected IRubyObject |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public RubyFixnum | Returns: the number of arguments of a method.Overrides org. Returns the number of arguments a method accepted. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyMethod | 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 IRubyObject | |
| 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. |
| private long | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private boolean | |
| private boolean | |
| public static RubyMethod | newMethod(RubyModule implementationModule, String methodName, RubyModule originModule, String originName, CacheEntry entry, IRubyObject receiver)
|
| public IRubyObject | |
| public IRubyObject | op_eqq(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_equal The Ruby "===" method is used by default in case/when statements. |
| 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 IRubyObject | |
| public IRubyObject | |
| public RubyMethod | rbClone()
Implements abstract org. Implements org. RubyMethod clone. |
| public IRubyObject | |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyUnboundMethod |
| receiver | back to summary |
|---|---|
| protected IRubyObject receiver | |
| RubyMethod | back to summary |
|---|---|
| protected RubyMethod(Ruby runtime, RubyClass rubyClass) | |
| arity | back to summary |
|---|---|
| public RubyFixnum arity(ThreadContext context) Overrides org. Returns the number of arguments a method accepted.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block) Call the method.
| |
| call | back to summary |
|---|---|
public IRubyObject call(ThreadContext context, IRubyObject arg, Block block)
| |
| call | back to summary |
|---|---|
public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
| |
| call | back to summary |
|---|---|
public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
| |
| call | back to summary |
|---|---|
public IRubyObject call(ThreadContext context, IRubyObject[] args, Block block)
| |
| createMethodClass | back to summary |
|---|---|
| public static RubyClass createMethodClass(ThreadContext context, RubyClass Object) | |
| curry | back to summary |
|---|---|
public IRubyObject curry(ThreadContext context)
| |
| curry | back to summary |
|---|---|
public IRubyObject curry(ThreadContext context, IRubyObject arg0)
| |
| curry | back to summary |
|---|---|
| public IRubyObject curry(ThreadContext context, IRubyObject[] args)
Deprecated
| |
| dup | back to summary |
|---|---|
| public RubyMethod 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.
| |
| getReceiver | back to summary |
|---|---|
| public IRubyObject getReceiver() | |
| 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.
| |
| hashCodeImpl | back to summary |
|---|---|
| private long hashCodeImpl() | |
| 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
| |
| isMethodMissingMatch | back to summary |
|---|---|
| private boolean isMethodMissingMatch(DynamicMethod other) | |
| isSerialMatch | back to summary |
|---|---|
| private boolean isSerialMatch(DynamicMethod otherMethod) | |
| newMethod | back to summary |
|---|---|
| public static RubyMethod newMethod(RubyModule implementationModule, String methodName, RubyModule originModule, String originName, CacheEntry entry, IRubyObject receiver) | |
| op_eql | back to summary |
|---|---|
| public IRubyObject op_eql(ThreadContext context, IRubyObject other) Overrides org.
| |
| op_eqq | back to summary |
|---|---|
| public IRubyObject op_eqq(ThreadContext context, IRubyObject other) Overrides org. Implements org. Doc from org. rb_equal The Ruby "===" method is used by default in case/when statements. The Object implementation first checks Java identity equality and then calls the "==" method too.
| |
| 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
| |
| original_name | back to summary |
|---|---|
| public IRubyObject original_name(ThreadContext context) Overrides org.
| |
| parameters | back to summary |
|---|---|
| public IRubyObject parameters(ThreadContext context) Overrides org.
| |
| rbClone | back to summary |
|---|---|
| public RubyMethod rbClone() Implements abstract org. Implements org. Doc from org. RubyMethod clone.
| |
| receiver | back to summary |
|---|---|
public IRubyObject receiver(ThreadContext context)
| |
| sites | back to summary |
|---|---|
| private static JavaSites. Hides org. Doc from org. 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. | |
| source_location | back to summary |
|---|---|
| public IRubyObject source_location(ThreadContext context) Overrides org.
| |
| super_method | back to summary |
|---|---|
public IRubyObject super_method(ThreadContext context)
| |
| to_proc | back to summary |
|---|---|
| public IRubyObject to_proc(ThreadContext context) Create a Proc object.
| |
| unbind | back to summary |
|---|---|
public RubyUnboundMethod unbind()
| |