org.jruby.internal.runtime.methods
Class ReflectedCompiledMethod

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.JavaMethod
          extended by org.jruby.internal.runtime.methods.CompiledMethod
              extended by org.jruby.internal.runtime.methods.ReflectedCompiledMethod
All Implemented Interfaces:
java.lang.Cloneable, JumpTarget

public class ReflectedCompiledMethod
extends CompiledMethod


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.internal.runtime.methods.JavaMethod
JavaMethod.JavaMethodNoBlock, JavaMethod.JavaMethodOne, JavaMethod.JavaMethodOneBlock, JavaMethod.JavaMethodOneOrTwo, JavaMethod.JavaMethodOneOrTwoBlock, JavaMethod.JavaMethodOneOrTwoOrThree, JavaMethod.JavaMethodThree, JavaMethod.JavaMethodThreeBlock, JavaMethod.JavaMethodTwo, JavaMethod.JavaMethodTwoBlock, JavaMethod.JavaMethodTwoOrThree, JavaMethod.JavaMethodZero, JavaMethod.JavaMethodZeroBlock, JavaMethod.JavaMethodZeroOrOne, JavaMethod.JavaMethodZeroOrOneOrTwo
 
Field Summary
 
Fields inherited from class org.jruby.internal.runtime.methods.CompiledMethod
$scriptObject
 
Fields inherited from class org.jruby.internal.runtime.methods.JavaMethod
arity, arityValue, methodIndex, staticScope
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
callConfig, implementationClass, visibility
 
Constructor Summary
ReflectedCompiledMethod(RubyModule implementationClass, Arity arity, Visibility visibility, StaticScope staticScope, java.lang.Object scriptObject, java.lang.reflect.Method method, CallConfiguration callConfig)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args, Block block)
          Call the method
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject[] args, boolean noSuper, Block block)
           
 
Methods inherited from class org.jruby.internal.runtime.methods.CompiledMethod
dup, getArity, isNative
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod
getArgumentTypes, getJavaName, handleReturnJump, isSingleton, post, pre, setArgumentTypes, setArity, setJavaName, setSingleton
 
Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod
call, call, call, call, call, call, call, call, call, getCallConfig, getImplementationClass, getRealMethod, getVisibility, isCallableFrom, isUndefined, setCallConfig, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectedCompiledMethod

public ReflectedCompiledMethod(RubyModule implementationClass,
                               Arity arity,
                               Visibility visibility,
                               StaticScope staticScope,
                               java.lang.Object scriptObject,
                               java.lang.reflect.Method method,
                               CallConfiguration callConfig)
Method Detail

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule klazz,
                        java.lang.String name,
                        IRubyObject[] args,
                        boolean noSuper,
                        Block block)
Specified by:
call in class CompiledMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject[] args,
                        Block block)
Description copied from class: DynamicMethod
Call the method

Specified by:
call in class JavaMethod
Parameters:
context - is the thread-specific information that this method is being invoked on


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