| Modifier and Type | Field and Description |
|---|---|
| protected final DynamicMethod |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
Overrides org.
|
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding klazz, String The incoming name used to invoke this method name, IRubyObject[] The first argument to this invocation args)Overrides org. A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK. |
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding klazz, String The incoming name used to invoke this method name, IRubyObject[] The argument list to this invocation args, Block The block passed to this invocation block)Implements abstract org. The minimum 'call' method required for a dynamic method handle. |
| public abstract DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| public DynamicMethod | |
| public Object | getHandle()
Overrides org. Get the "handle" associated with this DynamicMethod. |
| public RubyModule | getImplementationClass()
Overrides org. Retrieve the class or module on which this method is implemented, used for 'super' logic among others. |
| public Collection | |
| public MethodData | getMethodData()
Overrides org. Additional metadata about this method. |
| public String | getName()
Overrides org. Get the base name this method was defined as. |
| protected RubyModule | getProtectedClass()
Overrides org. Retrieve the pre-calculated "protected class" used for access checks. |
| public DynamicMethod | getRealMethod()
Overrides org. Get the "real" method contained within this method. |
| public long | getSerialNumber()
Overrides org. Get the global serial number for this method object |
| public Signature | getSignature()
Overrides org. Retrieve the signature of this method. |
| public Visibility | getVisibility()
Overrides org. Get the visibility of this method. |
| public int | |
| public boolean | isBuiltin()
Overrides org. Whether this method is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process. |
| public boolean | isCallableFrom(IRubyObject
The calling object caller, CallType The type of call callType)Overrides org. Determine whether this method is callable from the given object using the given call type. |
| public boolean | |
| public boolean | isNative()
Overrides org. Returns true if this method is backed by native (i.e. Java) code. |
| public boolean | isNotImplemented()
Overrides org. Whether this method is "not implemented". |
| public boolean | |
| public void | setHandle(Object
the handle handle)Overrides org. Set the "handle" associated with this DynamicMethod. |
| public void | setImplementationClass(RubyModule
The class on which this method is implemented implClass)Overrides org. Set the class on which this method is implemented, used for 'super' logic, among others. |
| public void | setIsBuiltin(boolean
true if this is a core built-in method, false otherwise isBuiltin)Overrides org. Force this method to be treated as a core built-in method if true, or as a normal non-core method otherwise. |
| public void | setNotImplemented(boolean
is this not implement or not setNotImplemented)Overrides org. Set whether this method is "not implemented". |
| public void | setVisibility(Visibility
The visibility of this method visibility)Overrides org. Set the visibility of this method. |
| delegate | back to summary |
|---|---|
| protected final DynamicMethod delegate | |
| DelegatingDynamicMethod | back to summary |
|---|---|
| public DelegatingDynamicMethod(DynamicMethod delegate) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args) Overrides org. Doc from org. A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.
| |
| dup | back to summary |
|---|---|
| public abstract DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getArity | back to summary |
|---|---|
| public Arity getArity() Overrides org. Doc from org. Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
| |
| getDelegate | back to summary |
|---|---|
| public DynamicMethod getDelegate() | |
| getHandle | back to summary |
|---|---|
| public Object getHandle() Overrides org. Doc from org. Get the "handle" associated with this DynamicMethod. | |
| getImplementationClass | back to summary |
|---|---|
| public RubyModule getImplementationClass() Overrides org. Doc from org. Retrieve the class or module on which this method is implemented, used for 'super' logic among others.
| |
| getInstanceVariableNames | back to summary |
|---|---|
| public Collection Overrides org.
| |
| getMethodData | back to summary |
|---|---|
| public MethodData getMethodData() Overrides org. Doc from org. Additional metadata about this method.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Doc from org. Get the base name this method was defined as. | |
| getProtectedClass | back to summary |
|---|---|
| protected RubyModule getProtectedClass() Overrides org. Doc from org. Retrieve the pre-calculated "protected class" used for access checks.
| |
| getRealMethod | back to summary |
|---|---|
| public DynamicMethod getRealMethod() Overrides org. Doc from org. Get the "real" method contained within this method. This simply returns self except in cases where a method is wrapped to give it a new name or new implementation class (AliasMethod, PartialDelegatingMethod, ...).
| |
| getSerialNumber | back to summary |
|---|---|
| public long getSerialNumber() Overrides org. Doc from org. Get the global serial number for this method object
| |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() Overrides org. Doc from org. Retrieve the signature of this method. | |
| getVisibility | back to summary |
|---|---|
| public Visibility getVisibility() Overrides org. Doc from org. Get the visibility of this method.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isBuiltin | back to summary |
|---|---|
| public boolean isBuiltin() Overrides org. Doc from org. Whether this method is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process.
| |
| isCallableFrom | back to summary |
|---|---|
| public boolean isCallableFrom(IRubyObject caller, CallType callType) Overrides org. Doc from org. Determine whether this method is callable from the given object using the given call type.
| |
| isImplementedBy | back to summary |
|---|---|
| public boolean isImplementedBy(RubyModule other) Overrides org.
| |
| isNative | back to summary |
|---|---|
| public boolean isNative() Overrides org. Doc from org. Returns true if this method is backed by native (i.e. Java) code.
| |
| isNotImplemented | back to summary |
|---|---|
| public boolean isNotImplemented() Overrides org. Doc from org. Whether this method is "not implemented". This is primarily to support Ruby 1.9's behavior of respond_to? yielding false if the feature in question is unsupported (but still having the method defined).
| |
| isRefined | back to summary |
|---|---|
| public boolean isRefined() Overrides org.
| |
| setHandle | back to summary |
|---|---|
| public void setHandle(Object handle) Overrides org. Doc from org. Set the "handle" associated with this DynamicMethod. | |
| setImplementationClass | back to summary |
|---|---|
| public void setImplementationClass(RubyModule implClass) Overrides org. Doc from org. Set the class on which this method is implemented, used for 'super' logic, among others.
| |
| setIsBuiltin | back to summary |
|---|---|
| public void setIsBuiltin(boolean isBuiltin) Overrides org. Doc from org. Force this method to be treated as a core built-in method if true, or as a normal non-core method otherwise.
| |
| setNotImplemented | back to summary |
|---|---|
| public void setNotImplemented(boolean setNotImplemented) Overrides org. Doc from org. Set whether this method is "not implemented".
| |
| setVisibility | back to summary |
|---|---|
| public void setVisibility(Visibility visibility) Overrides org. Doc from org. Set the visibility of this method.
| |