| java.lang.Object org.jruby.runtime.CallbackFactory
All known Subclasses: org.jruby.runtime.callback.InvocationCallbackFactory, org.jruby.runtime.callback.ReflectionCallbackFactory, org.jruby.runtime.callback.DumpingInvocationCallbackFactory,
CallbackFactory | abstract public class CallbackFactory (Code) | | Helper class to build Callback method.
This impements method corresponding to the signature of method most often found in
the Ruby library, for methods with other signature the appropriate Callback object
will need to be explicitly created.
|
Method Summary | |
public static CallbackFactory | createFactory(Ruby runtime, Class type) | public static CallbackFactory | createFactory(Ruby runtime, Class type, ClassLoader classLoader) | abstract public CompiledBlockCallback | getBlockCallback(String method) | abstract public Callback | getBlockMethod(String method) | abstract public Callback | getFastMethod(String method) | abstract public Callback | getFastMethod(String method, Class arg1) | abstract public Callback | getFastMethod(String method, Class arg1, Class arg2) | abstract public Callback | getFastMethod(String method, Class arg1, Class arg2, Class arg3) | abstract public Callback | getFastOptMethod(String method) | abstract public Callback | getFastOptSingletonMethod(String method) | abstract public Callback | getFastSingletonMethod(String method) | abstract public Callback | getFastSingletonMethod(String method, Class arg1) | abstract public Callback | getFastSingletonMethod(String method, Class arg1, Class arg2) | abstract public Callback | getFastSingletonMethod(String method, Class arg1, Class arg2, Class arg3) | abstract public Callback | getMethod(String method) gets an instance method with no arguments. | abstract public Callback | getMethod(String method, Class arg1) gets an instance method with 1 argument. | abstract public Callback | getMethod(String method, Class arg1, Class arg2) gets an instance method with two arguments. | abstract public Callback | getMethod(String method, Class arg1, Class arg2, Class arg3) gets an instance method with two arguments. | abstract public Callback | getOptMethod(String method) gets an instance method with no mandatory argument and some optional arguments. | abstract public Callback | getOptSingletonMethod(String method) gets a singleton (class) method with no mandatory argument and some optional arguments. | abstract public Callback | getSingletonMethod(String method) gets a singleton (class) method without arguments. | abstract public Callback | getSingletonMethod(String method, Class arg1) gets a singleton (class) method with 1 argument. | abstract public Callback | getSingletonMethod(String method, Class arg1, Class arg2) gets a singleton (class) method with 2 arguments. | abstract public Callback | getSingletonMethod(String method, Class arg1, Class arg2, Class arg3) gets a singleton (class) method with 3 arguments. |
NULL_CLASS_ARRAY | final public static Class[] NULL_CLASS_ARRAY(Code) | | |
getMethod | abstract public Callback getMethod(String method)(Code) | | gets an instance method with no arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
getMethod | abstract public Callback getMethod(String method, Class arg1)(Code) | | gets an instance method with 1 argument.
Parameters: method - name of the method Parameters: arg1 - the class of the only argument for this method a CallBack object corresponding to the appropriate method |
getMethod | abstract public Callback getMethod(String method, Class arg1, Class arg2)(Code) | | gets an instance method with two arguments.
Parameters: method - name of the method Parameters: arg1 - the java class of the first argument for this method Parameters: arg2 - the java class of the second argument for this method a CallBack object corresponding to the appropriate method |
getMethod | abstract public Callback getMethod(String method, Class arg1, Class arg2, Class arg3)(Code) | | gets an instance method with two arguments.
Parameters: method - name of the method Parameters: arg1 - the java class of the first argument for this method Parameters: arg2 - the java class of the second argument for this method Parameters: arg3 - the java class of the second argument for this method a CallBack object corresponding to the appropriate method |
getOptMethod | abstract public Callback getOptMethod(String method)(Code) | | gets an instance method with no mandatory argument and some optional arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
getOptSingletonMethod | abstract public Callback getOptSingletonMethod(String method)(Code) | | gets a singleton (class) method with no mandatory argument and some optional arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
getSingletonMethod | abstract public Callback getSingletonMethod(String method)(Code) | | gets a singleton (class) method without arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
getSingletonMethod | abstract public Callback getSingletonMethod(String method, Class arg1)(Code) | | gets a singleton (class) method with 1 argument.
Parameters: method - name of the method Parameters: arg1 - the class of the only argument for this method a CallBack object corresponding to the appropriate method |
getSingletonMethod | abstract public Callback getSingletonMethod(String method, Class arg1, Class arg2)(Code) | | gets a singleton (class) method with 2 arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
getSingletonMethod | abstract public Callback getSingletonMethod(String method, Class arg1, Class arg2, Class arg3)(Code) | | gets a singleton (class) method with 3 arguments.
Parameters: method - name of the method a CallBack object corresponding to the appropriate method |
|
|