org.jruby.internal.runtime.methods
Class WrapperMethod
java.lang.Object
org.jruby.internal.runtime.methods.DynamicMethod
org.jruby.internal.runtime.methods.WrapperMethod
public class WrapperMethod
- extends DynamicMethod
- Author:
- jpetersen
Method Summary |
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
Call the method |
DynamicMethod |
dup()
|
IRubyObject |
internalCall(ThreadContext context,
RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
|
void |
postMethod(ThreadContext context)
|
void |
preMethod(ThreadContext context,
RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrapperMethod
public WrapperMethod(RubyModule implementationClass,
DynamicMethod method,
Visibility visibility)
- Constructor for WrapperCallable.
- Parameters:
visibility
-
preMethod
public void preMethod(ThreadContext context,
RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
- Specified by:
preMethod
in class DynamicMethod
postMethod
public void postMethod(ThreadContext context)
- Specified by:
postMethod
in class DynamicMethod
call
public IRubyObject call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
- Description copied from class:
DynamicMethod
- Call the method
- Overrides:
call
in class DynamicMethod
- Parameters:
context
- is the thread-specific information that this method is being invoked on
internalCall
public IRubyObject internalCall(ThreadContext context,
RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
boolean noSuper,
Block block)
- Specified by:
internalCall
in class DynamicMethod
- See Also:
org.jruby.runtime.ICallable#call(Ruby, IRubyObject, String, IRubyObject[], boolean)
dup
public DynamicMethod dup()
- Specified by:
dup
in class DynamicMethod
Copyright © 2002-2007 JRuby Team. All Rights Reserved.