org.jruby.internal.runtime.methods
Class SimpleInvocationMethod

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.SimpleInvocationMethod
All Implemented Interfaces:
java.lang.Cloneable

public abstract class SimpleInvocationMethod
extends DynamicMethod
implements java.lang.Cloneable

Author:
Ola Bini

Field Summary
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
implementationClass, visibility
 
Constructor Summary
SimpleInvocationMethod(RubyModule implementationClass, Arity arity, Visibility visibility)
           
 
Method Summary
abstract  IRubyObject call(IRubyObject self, IRubyObject[] args)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject[] args, boolean noSuper, Block block)
          Call the method
 DynamicMethod dup()
           
 Arity getArity()
           
 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 org.jruby.internal.runtime.methods.DynamicMethod
getImplementationClass, getVisibility, isCallableFrom, isUndefined, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInvocationMethod

public SimpleInvocationMethod(RubyModule implementationClass,
                              Arity arity,
                              Visibility visibility)
Method Detail

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

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

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

call

public abstract IRubyObject call(IRubyObject self,
                                 IRubyObject[] args)

dup

public DynamicMethod dup()
Specified by:
dup in class DynamicMethod

getArity

public Arity getArity()
Overrides:
getArity in class DynamicMethod


Copyright © 2002-2007 JRuby Team. All Rights Reserved.