|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.internal.runtime.methods.DynamicMethod
org.jruby.internal.runtime.methods.UndefinedMethod
public class UndefinedMethod
This class represents a singleton type of method used as a marker for missing or "undef'ed" methods. Only one instance is ever created, and it can't be invoked.
| Field Summary |
|---|
| Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod |
|---|
callConfig, implementationClass, protectedClass, visibility |
| Method Summary | |
|---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject[] args,
Block block)
The one implementation of call, which throws an exception because UndefinedMethod can't be invoked. |
DynamicMethod |
dup()
A dummy implementation of dup that just returns the singleton instance. |
static UndefinedMethod |
getInstance()
Retrieve the singleton instance. |
boolean |
isCallableFrom(IRubyObject caller,
CallType callType)
UndefinedMethod is always visible because it's only used as a marker for missing or undef'ed methods. |
void |
setCallConfig(CallConfiguration callConfig)
Dummy implementation of setCallConfig that does nothing. |
void |
setImplementationClass(RubyModule implClass)
Dummy override of setImplementationClass that does nothing. |
void |
setVisibility(Visibility visibility)
Dummy implementation of setVisibility that does nothing. |
| Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod |
|---|
calculateProtectedClass, call, call, call, call, call, call, call, call, call, getArity, getCallConfig, getImplementationClass, getProtectedClass, getRealMethod, getVisibility, handleRedo, handleReturn, init, isNative, isUndefined |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IRubyObject call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject[] args,
Block block)
call in class DynamicMethodcontext - The thread context for the currently executing threadself - The 'self' or 'receiver' object to use for this callname - The incoming name used to invoke this methodargs - The argument list to this invocationblock - The block passed to this invocation
DynamicMethod.callpublic DynamicMethod dup()
dup in class DynamicMethodpublic static UndefinedMethod getInstance()
public void setImplementationClass(RubyModule implClass)
setImplementationClass in class DynamicMethodimplClass - Ignoredpublic void setVisibility(Visibility visibility)
setVisibility in class DynamicMethodvisibility - Ignoredpublic void setCallConfig(CallConfiguration callConfig)
setCallConfig in class DynamicMethodcallConfig - Ignored
public boolean isCallableFrom(IRubyObject caller,
CallType callType)
isCallableFrom in class DynamicMethodcaller - The calling objectcallType - The type of call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||