org.jruby.internal.runtime.methods
Class DefaultMethod

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.DefaultMethod
All Implemented Interfaces:
JumpTarget

public final class DefaultMethod
extends DynamicMethod
implements JumpTarget


Field Summary
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
callConfig, implementationClass, visibility
 
Constructor Summary
DefaultMethod(RubyModule implementationClass, StaticScope staticScope, Node body, ArgsNode argsNode, Visibility visibility, ISourcePosition position)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, Block block)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args, Block block)
          Call the method
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0, Block block)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0, IRubyObject arg1)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0, IRubyObject arg1, Block block)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
           
 IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
           
 DynamicMethod dup()
           
 ArgsNode getArgsNode()
           
 Arity getArity()
           
 Node getBodyNode()
           
 int getCallCount()
           
 CallConfiguration getJITCallConfig()
           
 Script getJITCompilerScript()
           
 ISourcePosition getPosition()
           
 StaticScope getStaticScope()
           
 IRubyObject interpretedCall(ThreadContext context, Ruby runtime, IRubyObject self, RubyModule clazz, java.lang.String name, IRubyObject[] args, Block block)
           
 void setCallCount(int callCount)
           
 void setJITCallConfig(CallConfiguration jitCallConfig)
           
 void setJITCompiledScript(Script jitCompiledScript)
           
 
Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod
getCallConfig, getImplementationClass, getRealMethod, getVisibility, isCallableFrom, isNative, isUndefined, setCallConfig, 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(RubyModule implementationClass,
                     StaticScope staticScope,
                     Node body,
                     ArgsNode argsNode,
                     Visibility visibility,
                     ISourcePosition position)
Method Detail

getCallCount

public int getCallCount()

setCallCount

public void setCallCount(int callCount)

getJITCompilerScript

public Script getJITCompilerScript()

setJITCompiledScript

public void setJITCompiledScript(Script jitCompiledScript)

getJITCallConfig

public CallConfiguration getJITCallConfig()

setJITCallConfig

public void setJITCallConfig(CallConfiguration jitCallConfig)

getBodyNode

public Node getBodyNode()

getArgsNode

public ArgsNode getArgsNode()

getStaticScope

public StaticScope getStaticScope()

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject[] args,
                        Block block)
Description copied from class: DynamicMethod
Call the method

Specified by:
call in class DynamicMethod
Parameters:
context - is the thread-specific information that this method is being invoked on

interpretedCall

public IRubyObject interpretedCall(ThreadContext context,
                                   Ruby runtime,
                                   IRubyObject self,
                                   RubyModule clazz,
                                   java.lang.String name,
                                   IRubyObject[] args,
                                   Block block)

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject[] args)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        Block block)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0,
                        Block block)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0,
                        IRubyObject arg1)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0,
                        IRubyObject arg1,
                        Block block)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0,
                        IRubyObject arg1,
                        IRubyObject arg2)
Overrides:
call in class DynamicMethod

call

public IRubyObject call(ThreadContext context,
                        IRubyObject self,
                        RubyModule clazz,
                        java.lang.String name,
                        IRubyObject arg0,
                        IRubyObject arg1,
                        IRubyObject arg2,
                        Block block)
Overrides:
call in class DynamicMethod

getPosition

public ISourcePosition getPosition()

getArity

public Arity getArity()
Overrides:
getArity in class DynamicMethod

dup

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


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