org.jruby
Class UnboundMethod

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.Method
          extended byorg.jruby.UnboundMethod
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class UnboundMethod
extends Method

Version:
$Revision: 1.7 $
Author:
jpetersen

Field Summary
 
Fields inherited from class org.jruby.Method
implementationModule, method, methodName, originModule, originName, receiver
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
protected UnboundMethod(Ruby runtime)
           
 
Method Summary
 Method bind(IRubyObject receiver)
           
 IRubyObject call(IRubyObject[] args)
          Call the method.
static RubyClass defineUnboundMethodClass(Ruby runtime)
           
static UnboundMethod newUnboundMethod(RubyModule implementationModule, java.lang.String methodName, RubyModule originModule, java.lang.String originName, ICallable method)
           
 UnboundMethod unbind()
           
 
Methods inherited from class org.jruby.Method
arity, bmcall, createMethodClass, mproc, newMethod, to_proc
 
Methods inherited from class org.jruby.RubyObject
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equal, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, inspect, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, marshalTo, method_missing, method, methods, nilObject, private_methods, protected_methods, rbClone, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, to_s, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnboundMethod

protected UnboundMethod(Ruby runtime)
Method Detail

newUnboundMethod

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

defineUnboundMethodClass

public static RubyClass defineUnboundMethodClass(Ruby runtime)

call

public IRubyObject call(IRubyObject[] args)
Description copied from class: Method
Call the method.

Overrides:
call in class Method
See Also:
Method.call(IRubyObject[])

unbind

public UnboundMethod unbind()
Overrides:
unbind in class Method
See Also:
Method.unbind()

bind

public Method bind(IRubyObject receiver)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.