org.jruby.java.invokers
Class RubyToJavaInvoker

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.JavaMethod
          extended by org.jruby.java.invokers.RubyToJavaInvoker
All Implemented Interfaces:
java.lang.Cloneable, JumpTarget
Direct Known Subclasses:
ConstructorInvoker, MethodInvoker

public abstract class RubyToJavaInvoker
extends JavaMethod


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.internal.runtime.methods.JavaMethod
JavaMethod.JavaMethodN, JavaMethod.JavaMethodNBlock, JavaMethod.JavaMethodOne, JavaMethod.JavaMethodOneBlock, JavaMethod.JavaMethodOneOrN, JavaMethod.JavaMethodOneOrNBlock, JavaMethod.JavaMethodOneOrTwo, JavaMethod.JavaMethodOneOrTwoBlock, JavaMethod.JavaMethodOneOrTwoOrN, JavaMethod.JavaMethodOneOrTwoOrNBlock, JavaMethod.JavaMethodOneOrTwoOrThree, JavaMethod.JavaMethodOneOrTwoOrThreeBlock, JavaMethod.JavaMethodOneOrTwoOrThreeOrN, JavaMethod.JavaMethodOneOrTwoOrThreeOrNBlock, JavaMethod.JavaMethodThree, JavaMethod.JavaMethodThreeBlock, JavaMethod.JavaMethodThreeOrN, JavaMethod.JavaMethodThreeOrNBlock, JavaMethod.JavaMethodTwo, JavaMethod.JavaMethodTwoBlock, JavaMethod.JavaMethodTwoOrN, JavaMethod.JavaMethodTwoOrNBlock, JavaMethod.JavaMethodTwoOrThree, JavaMethod.JavaMethodTwoOrThreeBlock, JavaMethod.JavaMethodTwoOrThreeOrN, JavaMethod.JavaMethodTwoOrThreeOrNBlock, JavaMethod.JavaMethodZero, JavaMethod.JavaMethodZeroBlock, JavaMethod.JavaMethodZeroOrN, JavaMethod.JavaMethodZeroOrNBlock, JavaMethod.JavaMethodZeroOrOne, JavaMethod.JavaMethodZeroOrOneBlock, JavaMethod.JavaMethodZeroOrOneOrN, JavaMethod.JavaMethodZeroOrOneOrNBlock, JavaMethod.JavaMethodZeroOrOneOrTwo, JavaMethod.JavaMethodZeroOrOneOrTwoBlock, JavaMethod.JavaMethodZeroOrOneOrTwoOrN, JavaMethod.JavaMethodZeroOrOneOrTwoOrNBlock, JavaMethod.JavaMethodZeroOrOneOrTwoOrThree, JavaMethod.JavaMethodZeroOrOneOrTwoOrThreeBlock, JavaMethod.JavaMethodZeroOrOneOrTwoOrThreeOrN, JavaMethod.JavaMethodZeroOrOneOrTwoOrThreeOrNBlock
 
Field Summary
protected  java.util.Map cache
           
protected static java.lang.Object[] EMPTY_OBJECT_ARRAY
           
protected  boolean initialized
           
protected  JavaCallable javaCallable
           
protected  JavaCallable[][] javaCallables
           
 
Fields inherited from class org.jruby.internal.runtime.methods.JavaMethod
arity, arityValue, BLOCK_METHODS, BLOCK_REST_METHODS, METHODS, REST_METHODS, staticScope
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
callConfig, implementationClass, protectedClass, visibility
 
Method Summary
protected  JavaCallable findCallable(IRubyObject self, java.lang.String name, IRubyObject[] args, int arity)
           
protected  JavaCallable findCallableArityFour(IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
           
protected  JavaCallable findCallableArityOne(IRubyObject self, java.lang.String name, IRubyObject arg0)
           
protected  JavaCallable findCallableArityThree(IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
           
protected  JavaCallable findCallableArityTwo(IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1)
           
protected  JavaCallable findCallableArityZero(IRubyObject self, java.lang.String name)
           
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod
callTrace, checkArgumentCount, dup, getArity, getJavaName, init, isNative, isSingleton, postBacktraceAndScope, postBacktraceDummyScope, postBacktraceOnly, postFrameAndScope, postFrameOnly, postNoFrameDummyScope, postNoop, postScopeOnly, preBacktraceAndScope, preBacktraceDummyScope, preBacktraceOnly, preFrameAndDummyScope, preFrameAndScope, preFrameOnly, preNoFrameDummyScope, preNoop, preScopeOnly, raiseArgumentError, returnTrace, setArity, setJavaName, setSingleton
 
Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod
calculateProtectedClass, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, getCallConfig, getImplementationClass, getProtectedClass, getRealMethod, getVisibility, handleRedo, handleReturn, init, isCallableFrom, isUndefined, setCallConfig, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_OBJECT_ARRAY

protected static final java.lang.Object[] EMPTY_OBJECT_ARRAY

javaCallable

protected JavaCallable javaCallable

javaCallables

protected JavaCallable[][] javaCallables

cache

protected java.util.Map cache

initialized

protected volatile boolean initialized
Method Detail

findCallable

protected JavaCallable findCallable(IRubyObject self,
                                    java.lang.String name,
                                    IRubyObject[] args,
                                    int arity)

findCallableArityZero

protected JavaCallable findCallableArityZero(IRubyObject self,
                                             java.lang.String name)

findCallableArityOne

protected JavaCallable findCallableArityOne(IRubyObject self,
                                            java.lang.String name,
                                            IRubyObject arg0)

findCallableArityTwo

protected JavaCallable findCallableArityTwo(IRubyObject self,
                                            java.lang.String name,
                                            IRubyObject arg0,
                                            IRubyObject arg1)

findCallableArityThree

protected JavaCallable findCallableArityThree(IRubyObject self,
                                              java.lang.String name,
                                              IRubyObject arg0,
                                              IRubyObject arg1,
                                              IRubyObject arg2)

findCallableArityFour

protected JavaCallable findCallableArityFour(IRubyObject self,
                                             java.lang.String name,
                                             IRubyObject arg0,
                                             IRubyObject arg1,
                                             IRubyObject arg2,
                                             IRubyObject arg3)


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