org.jruby.internal.runtime.methods
Class JavaMethod.JavaMethodThree

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.JavaMethod.JavaMethodNBlock
              extended by org.jruby.internal.runtime.methods.JavaMethod.JavaMethodN
                  extended by org.jruby.internal.runtime.methods.JavaMethod.JavaMethodThreeOrN
                      extended by org.jruby.internal.runtime.methods.JavaMethod.JavaMethodThree
All Implemented Interfaces:
java.lang.Cloneable, JumpTarget
Enclosing class:
JavaMethod

public abstract static class JavaMethod.JavaMethodThree
extends JavaMethod.JavaMethodThreeOrN


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
 
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, serialNumber, visibility
 
Constructor Summary
JavaMethod.JavaMethodThree(RubyModule implementationClass, Visibility visibility)
           
JavaMethod.JavaMethodThree(RubyModule implementationClass, Visibility visibility, CallConfiguration callConfig)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args)
          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.
 Arity getArity()
          Retrieve the arity of this method, used for reporting arity to Ruby code.
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod.JavaMethodThreeOrN
call, call
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod.JavaMethodN
call, call, call, call
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod
callTrace, checkArgumentCount, dup, 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, getCallConfig, getImplementationClass, getProtectedClass, getRealMethod, getSerialNumber, 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
 

Constructor Detail

JavaMethod.JavaMethodThree

public JavaMethod.JavaMethodThree(RubyModule implementationClass,
                                  Visibility visibility)

JavaMethod.JavaMethodThree

public JavaMethod.JavaMethodThree(RubyModule implementationClass,
                                  Visibility visibility,
                                  CallConfiguration callConfig)
Method Detail

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject[] args)
Description copied from class: DynamicMethod
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.

Specified by:
call in class JavaMethod.JavaMethodN
Parameters:
context - The thread context for the currently executing thread
self - The 'self' or 'receiver' object to use for this call
name - The incoming name used to invoke this method
Returns:
The result of the call

getArity

public Arity getArity()
Description copied from class: DynamicMethod
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.

Overrides:
getArity in class JavaMethod
Returns:
The arity of the method, as reported to Ruby consumers.


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