org.jruby.internal.runtime.methods
Class DefaultMethod

java.lang.Object
  extended byorg.jruby.internal.runtime.methods.AbstractMethod
      extended byorg.jruby.internal.runtime.methods.DefaultMethod
All Implemented Interfaces:
ICallable

public final class DefaultMethod
extends AbstractMethod

Version:
$Revision: 1.13 $
Author:
jpetersen

Constructor Summary
DefaultMethod(ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule module)
           
 
Method Summary
 IRubyObject call(Ruby ruby, IRubyObject receiver, java.lang.String name, IRubyObject[] args, boolean noSuper)
           
 ICallable dup()
           
 ArgsNode getArgsNode()
          Gets the argsNode.
 Arity getArity()
           
 
Methods inherited from class org.jruby.internal.runtime.methods.AbstractMethod
getImplementationClass, getVisibility, initializeCacheEntry, isUndefined, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMethod

public DefaultMethod(ScopeNode body,
                     ArgsNode argsNode,
                     Visibility visibility,
                     RubyModule module)
Method Detail

call

public IRubyObject call(Ruby ruby,
                        IRubyObject receiver,
                        java.lang.String name,
                        IRubyObject[] args,
                        boolean noSuper)
See Also:
ICallable.call(Ruby, IRubyObject, String, IRubyObject[], boolean)

getArgsNode

public ArgsNode getArgsNode()
Gets the argsNode.

Returns:
Returns a ArgsNode

getArity

public Arity getArity()
Specified by:
getArity in interface ICallable
Overrides:
getArity in class AbstractMethod

dup

public ICallable dup()


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.