org.jruby
Class RubyUnboundMethod

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.RubyMethod
          extended by org.jruby.RubyUnboundMethod
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class RubyUnboundMethod
extends RubyMethod

Note: This was renamed from UnboundMethod.java

Author:
jpetersen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyMethod
implementationModule, method, methodName, originModule, originName, receiver
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
protected RubyUnboundMethod(Ruby runtime)
           
 
Method Summary
 RubyMethod bind(IRubyObject aReceiver, Block block)
           
 IRubyObject call(IRubyObject[] args, Block block)
          Call the method.
static RubyClass defineUnboundMethodClass(Ruby runtime)
           
static RubyUnboundMethod newUnboundMethod(RubyModule implementationModule, java.lang.String methodName, RubyModule originModule, java.lang.String originName, DynamicMethod method)
           
 RubyUnboundMethod unbind(Block block)
           
 
Methods inherited from class org.jruby.RubyMethod
arity, bmcall, createMethodClass, inspect, mproc, newMethod, to_proc
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyUnboundMethod

protected RubyUnboundMethod(Ruby runtime)
Method Detail

newUnboundMethod

public static RubyUnboundMethod newUnboundMethod(RubyModule implementationModule,
                                                 java.lang.String methodName,
                                                 RubyModule originModule,
                                                 java.lang.String originName,
                                                 DynamicMethod method)

defineUnboundMethodClass

public static RubyClass defineUnboundMethodClass(Ruby runtime)

call

public IRubyObject call(IRubyObject[] args,
                        Block block)
Description copied from class: RubyMethod
Call the method.

Overrides:
call in class RubyMethod
See Also:
org.jruby.RubyMethod#call(IRubyObject[])

unbind

public RubyUnboundMethod unbind(Block block)
Overrides:
unbind in class RubyMethod
See Also:
org.jruby.RubyMethod#unbind()

bind

public RubyMethod bind(IRubyObject aReceiver,
                       Block block)


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