org.jruby.runtime.callback
Class InvocationCallbackFactory

java.lang.Object
  extended by org.jruby.runtime.CallbackFactory
      extended by org.jruby.runtime.callback.InvocationCallbackFactory
Direct Known Subclasses:
DumpingInvocationCallbackFactory

public class InvocationCallbackFactory
extends CallbackFactory


Field Summary
protected  JRubyClassLoader classLoader
           
static int DISPATCHER_ARGS_INDEX
           
static int DISPATCHER_BLOCK_INDEX
           
static int DISPATCHER_CALLTYPE_INDEX
           
static int DISPATCHER_METHOD_INDEX
           
static int DISPATCHER_NAME_INDEX
           
static int DISPATCHER_RUBYMODULE_INDEX
           
static int DISPATCHER_RUNTIME_INDEX
           
static int DISPATCHER_SELF_INDEX
           
static int DISPATCHER_THREADCONTEXT_INDEX
           
protected  Ruby runtime
           
 
Fields inherited from class org.jruby.runtime.CallbackFactory
NULL_CLASS_ARRAY
 
Constructor Summary
InvocationCallbackFactory(Ruby runtime, java.lang.Class type, java.lang.ClassLoader classLoader)
           
 
Method Summary
 void callMethodMissingIfNecessary(SkinnyMethodAdapter mv, Label afterCall, Label okCall)
          Deprecated. 
protected  java.lang.Class endCall(ClassWriter cw, MethodVisitor mv, java.lang.String name)
           
 CompiledBlockCallback getBlockCallback(java.lang.String method, java.lang.Object scriptObject)
           
 CompiledBlockCallback19 getBlockCallback19(java.lang.String method, java.lang.Object scriptObject)
           
 Callback getBlockMethod(java.lang.String method)
          Deprecated. 
 Callback getFastMethod(java.lang.String method)
          Deprecated. 
 Callback getFastMethod(java.lang.String method, java.lang.Class arg1)
          Deprecated. 
 Callback getFastMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
          Deprecated. 
 Callback getFastMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
          Deprecated. 
 Callback getFastOptMethod(java.lang.String method)
          Deprecated. 
 Callback getFastOptSingletonMethod(java.lang.String method)
          Deprecated. 
 Callback getFastSingletonMethod(java.lang.String method)
          Deprecated. 
 Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1)
          Deprecated. 
 Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
          Deprecated. 
 Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
          Deprecated. 
 Callback getMethod(java.lang.String method)
          Deprecated. 
 Callback getMethod(java.lang.String method, java.lang.Class arg1)
          Deprecated. 
 Callback getMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
          Deprecated. 
 Callback getMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
          Deprecated. 
 Callback getOptMethod(java.lang.String method)
          Deprecated. 
 Callback getOptSingletonMethod(java.lang.String method)
          Deprecated. 
 Callback getSingletonMethod(java.lang.String method)
          Deprecated. 
 Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1)
          Deprecated. 
 Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
          Deprecated. 
 Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
          Deprecated. 
 
Methods inherited from class org.jruby.runtime.CallbackFactory
createFactory, createFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected final JRubyClassLoader classLoader

runtime

protected final Ruby runtime

DISPATCHER_THREADCONTEXT_INDEX

public static final int DISPATCHER_THREADCONTEXT_INDEX
See Also:
Constant Field Values

DISPATCHER_SELF_INDEX

public static final int DISPATCHER_SELF_INDEX
See Also:
Constant Field Values

DISPATCHER_RUBYMODULE_INDEX

public static final int DISPATCHER_RUBYMODULE_INDEX
See Also:
Constant Field Values

DISPATCHER_METHOD_INDEX

public static final int DISPATCHER_METHOD_INDEX
See Also:
Constant Field Values

DISPATCHER_NAME_INDEX

public static final int DISPATCHER_NAME_INDEX
See Also:
Constant Field Values

DISPATCHER_ARGS_INDEX

public static final int DISPATCHER_ARGS_INDEX
See Also:
Constant Field Values

DISPATCHER_CALLTYPE_INDEX

public static final int DISPATCHER_CALLTYPE_INDEX
See Also:
Constant Field Values

DISPATCHER_BLOCK_INDEX

public static final int DISPATCHER_BLOCK_INDEX
See Also:
Constant Field Values

DISPATCHER_RUNTIME_INDEX

public static final int DISPATCHER_RUNTIME_INDEX
See Also:
Constant Field Values
Constructor Detail

InvocationCallbackFactory

public InvocationCallbackFactory(Ruby runtime,
                                 java.lang.Class type,
                                 java.lang.ClassLoader classLoader)
Method Detail

endCall

protected java.lang.Class endCall(ClassWriter cw,
                                  MethodVisitor mv,
                                  java.lang.String name)

getMethod

@Deprecated
public Callback getMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets an instance method with no arguments.

Specified by:
getMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getMethod

@Deprecated
public Callback getMethod(java.lang.String method,
                                     java.lang.Class arg1)
Deprecated. 

Description copied from class: CallbackFactory
gets an instance method with 1 argument.

Specified by:
getMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the class of the only argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getMethod

@Deprecated
public Callback getMethod(java.lang.String method,
                                     java.lang.Class arg1,
                                     java.lang.Class arg2)
Deprecated. 

Description copied from class: CallbackFactory
gets an instance method with two arguments.

Specified by:
getMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the java class of the first argument for this method
arg2 - the java class of the second argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getMethod

@Deprecated
public Callback getMethod(java.lang.String method,
                                     java.lang.Class arg1,
                                     java.lang.Class arg2,
                                     java.lang.Class arg3)
Deprecated. 

Description copied from class: CallbackFactory
gets an instance method with two arguments.

Specified by:
getMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the java class of the first argument for this method
arg2 - the java class of the second argument for this method
arg3 - the java class of the second argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getSingletonMethod

@Deprecated
public Callback getSingletonMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a singleton (class) method without arguments.

Specified by:
getSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getSingletonMethod

@Deprecated
public Callback getSingletonMethod(java.lang.String method,
                                              java.lang.Class arg1)
Deprecated. 

Description copied from class: CallbackFactory
gets a singleton (class) method with 1 argument.

Specified by:
getSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the class of the only argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getSingletonMethod

@Deprecated
public Callback getSingletonMethod(java.lang.String method,
                                              java.lang.Class arg1,
                                              java.lang.Class arg2)
Deprecated. 

Description copied from class: CallbackFactory
gets a singleton (class) method with 2 arguments.

Specified by:
getSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getSingletonMethod

@Deprecated
public Callback getSingletonMethod(java.lang.String method,
                                              java.lang.Class arg1,
                                              java.lang.Class arg2,
                                              java.lang.Class arg3)
Deprecated. 

Description copied from class: CallbackFactory
gets a singleton (class) method with 3 arguments.

Specified by:
getSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getBlockMethod

@Deprecated
public Callback getBlockMethod(java.lang.String method)
Deprecated. 

Specified by:
getBlockMethod in class CallbackFactory

getBlockCallback

public CompiledBlockCallback getBlockCallback(java.lang.String method,
                                              java.lang.Object scriptObject)
Specified by:
getBlockCallback in class CallbackFactory

getBlockCallback19

public CompiledBlockCallback19 getBlockCallback19(java.lang.String method,
                                                  java.lang.Object scriptObject)
Specified by:
getBlockCallback19 in class CallbackFactory

getOptSingletonMethod

@Deprecated
public Callback getOptSingletonMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a singleton (class) method with no mandatory argument and some optional arguments.

Specified by:
getOptSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getOptMethod

@Deprecated
public Callback getOptMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets an instance method with no mandatory argument and some optional arguments.

Specified by:
getOptMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastMethod

@Deprecated
public Callback getFastMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast instance method with no arguments.

Specified by:
getFastMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastMethod

@Deprecated
public Callback getFastMethod(java.lang.String method,
                                         java.lang.Class arg1)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast instance method with 1 argument.

Specified by:
getFastMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the class of the only argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getFastMethod

@Deprecated
public Callback getFastMethod(java.lang.String method,
                                         java.lang.Class arg1,
                                         java.lang.Class arg2)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast instance method with two arguments.

Specified by:
getFastMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the java class of the first argument for this method
arg2 - the java class of the second argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getFastMethod

@Deprecated
public Callback getFastMethod(java.lang.String method,
                                         java.lang.Class arg1,
                                         java.lang.Class arg2,
                                         java.lang.Class arg3)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast instance method with two arguments.

Specified by:
getFastMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the java class of the first argument for this method
arg2 - the java class of the second argument for this method
arg3 - the java class of the second argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getFastSingletonMethod

@Deprecated
public Callback getFastSingletonMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast singleton (class) method without arguments.

Specified by:
getFastSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastSingletonMethod

@Deprecated
public Callback getFastSingletonMethod(java.lang.String method,
                                                  java.lang.Class arg1)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast singleton (class) method with 1 argument.

Specified by:
getFastSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
arg1 - the class of the only argument for this method
Returns:
a CallBack object corresponding to the appropriate method

getFastSingletonMethod

@Deprecated
public Callback getFastSingletonMethod(java.lang.String method,
                                                  java.lang.Class arg1,
                                                  java.lang.Class arg2)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast singleton (class) method with 2 arguments.

Specified by:
getFastSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastSingletonMethod

@Deprecated
public Callback getFastSingletonMethod(java.lang.String method,
                                                  java.lang.Class arg1,
                                                  java.lang.Class arg2,
                                                  java.lang.Class arg3)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast singleton (class) method with 3 arguments.

Specified by:
getFastSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastOptMethod

@Deprecated
public Callback getFastOptMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast instance method with no mandatory argument and some optional arguments.

Specified by:
getFastOptMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

getFastOptSingletonMethod

@Deprecated
public Callback getFastOptSingletonMethod(java.lang.String method)
Deprecated. 

Description copied from class: CallbackFactory
gets a fast singleton (class) method with no mandatory argument and some optional arguments.

Specified by:
getFastOptSingletonMethod in class CallbackFactory
Parameters:
method - name of the method
Returns:
a CallBack object corresponding to the appropriate method

callMethodMissingIfNecessary

@Deprecated
public void callMethodMissingIfNecessary(SkinnyMethodAdapter mv,
                                                    Label afterCall,
                                                    Label okCall)
Deprecated. 



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