org.jruby.internal.runtime.methods
Class CompiledMethod

java.lang.Object
  extended by org.jruby.internal.runtime.methods.DynamicMethod
      extended by org.jruby.internal.runtime.methods.JavaMethod
          extended by org.jruby.internal.runtime.methods.CompiledMethod
All Implemented Interfaces:
java.lang.Cloneable, JumpTarget
Direct Known Subclasses:
ReflectedCompiledMethod

public abstract class CompiledMethod
extends JavaMethod
implements JumpTarget, java.lang.Cloneable


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.internal.runtime.methods.JavaMethod
JavaMethod.JavaMethodNoBlock, JavaMethod.JavaMethodOne, JavaMethod.JavaMethodOneBlock, JavaMethod.JavaMethodOneOrTwo, JavaMethod.JavaMethodOneOrTwoBlock, JavaMethod.JavaMethodOneOrTwoOrThree, JavaMethod.JavaMethodThree, JavaMethod.JavaMethodThreeBlock, JavaMethod.JavaMethodTwo, JavaMethod.JavaMethodTwoBlock, JavaMethod.JavaMethodTwoOrThree, JavaMethod.JavaMethodZero, JavaMethod.JavaMethodZeroBlock, JavaMethod.JavaMethodZeroOrOne, JavaMethod.JavaMethodZeroOrOneOrTwo
 
Field Summary
protected  java.lang.Object $scriptObject
           
 
Fields inherited from class org.jruby.internal.runtime.methods.JavaMethod
arity, arityValue, methodIndex, staticScope
 
Fields inherited from class org.jruby.internal.runtime.methods.DynamicMethod
callConfig, implementationClass, visibility
 
Constructor Summary
CompiledMethod(RubyModule implementationClass, Arity arity, Visibility visibility, StaticScope staticScope, java.lang.Object scriptObject, CallConfiguration callConfig)
           
 
Method Summary
abstract  IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject[] args, boolean noSuper, Block block)
           
 DynamicMethod dup()
           
 Arity getArity()
           
 boolean isNative()
          Returns true if this method is backed by native (i.e.
 
Methods inherited from class org.jruby.internal.runtime.methods.JavaMethod
call, getArgumentTypes, getJavaName, handleReturnJump, isSingleton, post, pre, setArgumentTypes, setArity, setJavaName, setSingleton
 
Methods inherited from class org.jruby.internal.runtime.methods.DynamicMethod
call, call, call, call, call, call, call, call, call, getCallConfig, getImplementationClass, getRealMethod, getVisibility, isCallableFrom, isUndefined, setCallConfig, setImplementationClass, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$scriptObject

protected java.lang.Object $scriptObject
Constructor Detail

CompiledMethod

public CompiledMethod(RubyModule implementationClass,
                      Arity arity,
                      Visibility visibility,
                      StaticScope staticScope,
                      java.lang.Object scriptObject,
                      CallConfiguration callConfig)
Method Detail

call

public abstract IRubyObject call(ThreadContext context,
                                 IRubyObject self,
                                 RubyModule klazz,
                                 java.lang.String name,
                                 IRubyObject[] args,
                                 boolean noSuper,
                                 Block block)

dup

public DynamicMethod dup()
Overrides:
dup in class JavaMethod

getArity

public Arity getArity()
Overrides:
getArity in class JavaMethod

isNative

public boolean isNative()
Description copied from class: DynamicMethod
Returns true if this method is backed by native (i.e. Java) code

Overrides:
isNative in class JavaMethod


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