|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.runtime.CallbackFactory
org.jruby.runtime.callback.ReflectionCallbackFactory
Field Summary |
Fields inherited from class org.jruby.runtime.CallbackFactory |
NULL_CLASS_ARRAY |
Constructor Summary | |
ReflectionCallbackFactory()
|
Method Summary | |
Callback |
getBlockMethod(java.lang.Class type,
java.lang.String method)
|
Callback |
getMethod(java.lang.Class type,
java.lang.String method)
gets an instance method with no arguments. |
Callback |
getMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1)
gets an instance method with 1 argument. |
Callback |
getMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
gets an instance method with two arguments. |
Callback |
getOptMethod(java.lang.Class type,
java.lang.String method)
gets an instance method with no mandatory argument and some optional arguments. |
Callback |
getOptMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1)
gets an instance method with 1 mandatory argument and some optional arguments. |
Callback |
getOptSingletonMethod(java.lang.Class type,
java.lang.String method)
gets a singleton (class) method with no mandatory argument and some optional arguments. |
Callback |
getOptSingletonMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1)
gets a singleton (class) method with 1 mandatory argument and some optional arguments. |
Callback |
getOptSingletonMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class[] args)
gets a singleton (class) method with several mandatory argument and some optional arguments. |
Callback |
getSingletonMethod(java.lang.Class type,
java.lang.String method)
gets a singleton (class) method without arguments. |
Callback |
getSingletonMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1)
gets a singleton (class) method with 1 argument. |
Callback |
getSingletonMethod(java.lang.Class type,
java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
gets a singleton (class) method with 2 arguments. |
Methods inherited from class org.jruby.runtime.CallbackFactory |
createFactory, getFalseMethod, getNilMethod, getSelfMethod, getTrueMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectionCallbackFactory()
Method Detail |
public Callback getMethod(java.lang.Class type, java.lang.String method)
CallbackFactory
getMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the method
public Callback getMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1)
CallbackFactory
getMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodarg1
- the class of the only argument for this method
public Callback getMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
CallbackFactory
getMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodarg1
- the java class of the first argument for this methodarg2
- the java class of the second argument for this method
public Callback getSingletonMethod(java.lang.Class type, java.lang.String method)
CallbackFactory
getSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the method
public Callback getSingletonMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1)
CallbackFactory
getSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodarg1
- the class of the only argument for this method
public Callback getSingletonMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
CallbackFactory
getSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the method
public Callback getBlockMethod(java.lang.Class type, java.lang.String method)
getBlockMethod
in class CallbackFactory
public Callback getOptSingletonMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1)
CallbackFactory
getOptSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodarg1
- the class of the only mandatory argument for this method
public Callback getOptSingletonMethod(java.lang.Class type, java.lang.String method, java.lang.Class[] args)
CallbackFactory
getOptSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodargs
- an array of java class of the mandatory arguments (NOTE: this must include
the appropriate rest argument class (usually a RubyObject[].class))
public Callback getOptSingletonMethod(java.lang.Class type, java.lang.String method)
CallbackFactory
getOptSingletonMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the method
public Callback getOptMethod(java.lang.Class type, java.lang.String method)
CallbackFactory
getOptMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the method
public Callback getOptMethod(java.lang.Class type, java.lang.String method, java.lang.Class arg1)
CallbackFactory
getOptMethod
in class CallbackFactory
type
- java class where the method is implementedmethod
- name of the methodarg1
- the class of the only mandatory argument for this method
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |