org.jruby.runtime.callback
Class ReflectionCallbackFactory

java.lang.Object
  extended by org.jruby.runtime.CallbackFactory
      extended by org.jruby.runtime.callback.ReflectionCallbackFactory

public class ReflectionCallbackFactory
extends CallbackFactory


Field Summary
 
Fields inherited from class org.jruby.runtime.CallbackFactory
NULL_CLASS_ARRAY
 
Constructor Summary
ReflectionCallbackFactory(java.lang.Class type)
           
 
Method Summary
 Dispatcher createDispatcher(RubyClass metaClass)
          Deprecated. 
 CompiledBlockCallback getBlockCallback(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 getFastMethod(java.lang.String rubyName, java.lang.String method)
          Deprecated. 
 Callback getFastMethod(java.lang.String rubyName, java.lang.String method, java.lang.Class arg1)
          Deprecated. 
 Callback getFastMethod(java.lang.String rubyName, java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
          Deprecated. 
 Callback getFastMethod(java.lang.String rubyName, 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 getFastOptMethod(java.lang.String rubyName, 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
 

Constructor Detail

ReflectionCallbackFactory

public ReflectionCallbackFactory(java.lang.Class type)
Method Detail

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

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 rubyName,
                                         java.lang.String method)
Deprecated. 


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

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 rubyName,
                                         java.lang.String method,
                                         java.lang.Class arg1)
Deprecated. 


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

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 rubyName,
                                         java.lang.String method,
                                         java.lang.Class arg1,
                                         java.lang.Class arg2)
Deprecated. 


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

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

getFastMethod

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


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

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

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

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

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

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

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

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

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

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

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

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

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

getFastOptMethod

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


createDispatcher

@Deprecated
public Dispatcher createDispatcher(RubyClass metaClass)
Deprecated. 

Description copied from class: CallbackFactory
Create a fast STI-based (selector table indexing) dispatcher.

Specified by:
createDispatcher in class CallbackFactory
Returns:


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