| Modifier and Type | Field and Description |
|---|---|
| private static List | |
| private final String | |
| private final CacheEntry | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | AliasMethod(RubyModule implementationClass, CacheEntry entry, String newName, String oldName)
For some java native methods it is convenient to pass in a String instead of a ByteList. |
| Modifier and Type | Method and Description |
|---|---|
| private RubyModule | |
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, 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 unused, 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 unused, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, 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 unused, 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. |
| private static Visibility | |
| public DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| public Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| public String | |
| 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 boolean | isNative()
Overrides org. Returns true if this method is backed by native (i.e. Java) code. |
| public void | setRuby2Keywords()
Overrides org. Indicates the method will behave like a ruby2 keywords accepting method. |
| ALWAYS_PRIVATE_NAMES | back to summary |
|---|---|
| private static List<String> ALWAYS_PRIVATE_NAMES | |
| compoundName | back to summary |
|---|---|
| private final String compoundName | |
| entry | back to summary |
|---|---|
| private final CacheEntry entry | |
| findImplementer | back to summary |
|---|---|
| private final boolean findImplementer | |
| newName | back to summary |
|---|---|
| private final String newName | |
| AliasMethod | back to summary |
|---|---|
| public AliasMethod(RubyModule implementationClass, CacheEntry entry, String newName, String oldName) For some java native methods it is convenient to pass in a String instead of a ByteList. | |
| calculateSourceModule | back to summary |
|---|---|
| private RubyModule calculateSourceModule(IRubyObject self, RubyModule incomingSourceModule) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, 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 unused, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, 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.
| |
| determineVisibility | back to summary |
|---|---|
| private static Visibility determineVisibility(String newName, Visibility visibility) | |
| dup | back to summary |
|---|---|
| public 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.
| |
| 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.
| |
| getOldName | back to summary |
|---|---|
| public String getOldName() | |
| 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. | |
| 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.
| |
| setRuby2Keywords | back to summary |
|---|---|
| public void setRuby2Keywords() Overrides org. Doc from org. Indicates the method will behave like a ruby2 keywords accepting method. This must be a Ruby implementation to work. See Module#ruby2_keywords for information on the semantics of a method which is marked this way.
| |