org.jruby.internal.runtime.methods
Class UndefinedMethod

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.UndefinedMethod

public class UndefinedMethod
extends DynamicMethod

Author:
jpetersen

Field Summary
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
implementationClass, visibility
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject[] args, boolean noSuper)
          If UndefinedMethod gets invoked, don't do the usual method scoping/framing.
 DynamicMethod dup()
           
static UndefinedMethod getInstance()
          Returns the instance.
 IRubyObject internalCall(ThreadContext context, RubyModule klazz, IRubyObject self, java.lang.String name, IRubyObject[] args, boolean noSuper, Block block)
           
 boolean isUndefined()
           
 void postMethod(ThreadContext context)
           
 void preMethod(ThreadContext context, RubyModule implementationClass, IRubyObject self, java.lang.String name, IRubyObject[] args, boolean noSuper, Block block)
           
 
Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod
call, getArity, getImplementationClass, getVisibility, isCallableFrom, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

preMethod

public void preMethod(ThreadContext context,
                      RubyModule implementationClass,
                      IRubyObject self,
                      java.lang.String name,
                      IRubyObject[] args,
                      boolean noSuper,
                      Block block)
Specified by:
preMethod in class DynamicMethod

postMethod

public void postMethod(ThreadContext context)
Specified by:
postMethod in class DynamicMethod

internalCall

public IRubyObject internalCall(ThreadContext context,
                                RubyModule klazz,
                                IRubyObject self,
                                java.lang.String name,
                                IRubyObject[] args,
                                boolean noSuper,
                                Block block)
Specified by:
internalCall in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule klazz,
                        java.lang.String name,
                        IRubyObject[] args,
                        boolean noSuper)
If UndefinedMethod gets invoked, don't do the usual method scoping/framing. It should never be invoked.


isUndefined

public boolean isUndefined()
Overrides:
isUndefined in class DynamicMethod

dup

public DynamicMethod dup()
Specified by:
dup in class DynamicMethod

getInstance

public static UndefinedMethod getInstance()
Returns the instance.

Returns:
UndefinedMethod


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