|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.runtime.CallbackFactory
public abstract class CallbackFactory
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.
Field Summary | |
---|---|
static java.lang.Class[] |
NULL_CLASS_ARRAY
|
Constructor Summary | |
---|---|
CallbackFactory()
|
Method Summary | |
---|---|
abstract Dispatcher |
createDispatcher(RubyClass metaClass)
Deprecated. No longer used. |
static CallbackFactory |
createFactory(Ruby runtime,
java.lang.Class type)
|
static CallbackFactory |
createFactory(Ruby runtime,
java.lang.Class type,
java.lang.ClassLoader classLoader)
|
abstract CompiledBlockCallback |
getBlockCallback(java.lang.String method,
java.lang.Object scriptObject)
|
abstract Callback |
getBlockMethod(java.lang.String method)
|
abstract Callback |
getFastMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastMethod(java.lang.String method,
java.lang.Class arg1)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2,
java.lang.Class arg3)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastOptMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastOptSingletonMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastSingletonMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastSingletonMethod(java.lang.String method,
java.lang.Class arg1)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastSingletonMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getFastSingletonMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2,
java.lang.Class arg3)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getMethod(java.lang.String method,
java.lang.Class arg1)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2,
java.lang.Class arg3)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getOptMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getOptSingletonMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getSingletonMethod(java.lang.String method)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getSingletonMethod(java.lang.String method,
java.lang.Class arg1)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getSingletonMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2)
Deprecated. Callbacks are inefficient; use MethodFactory. |
abstract Callback |
getSingletonMethod(java.lang.String method,
java.lang.Class arg1,
java.lang.Class arg2,
java.lang.Class arg3)
Deprecated. Callbacks are inefficient; use MethodFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] NULL_CLASS_ARRAY
Constructor Detail |
---|
public CallbackFactory()
Method Detail |
---|
public abstract Callback getMethod(java.lang.String method)
method
- name of the method
public abstract Callback getFastMethod(java.lang.String method)
method
- name of the method
public abstract Callback getMethod(java.lang.String method, java.lang.Class arg1)
method
- name of the methodarg1
- the class of the only argument for this method
public abstract Callback getFastMethod(java.lang.String method, java.lang.Class arg1)
method
- name of the methodarg1
- the class of the only argument for this method
public abstract Callback getMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
method
- 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 abstract Callback getFastMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
method
- 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 abstract Callback getMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
method
- name of the methodarg1
- the java class of the first argument for this methodarg2
- the java class of the second argument for this methodarg3
- the java class of the second argument for this method
public abstract Callback getFastMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
method
- name of the methodarg1
- the java class of the first argument for this methodarg2
- the java class of the second argument for this methodarg3
- the java class of the second argument for this method
public abstract Callback getSingletonMethod(java.lang.String method)
method
- name of the method
public abstract Callback getFastSingletonMethod(java.lang.String method)
method
- name of the method
public abstract Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1)
method
- name of the methodarg1
- the class of the only argument for this method
public abstract Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1)
method
- name of the methodarg1
- the class of the only argument for this method
public abstract Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
method
- name of the method
public abstract Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2)
method
- name of the method
public abstract Callback getSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
method
- name of the method
public abstract Callback getFastSingletonMethod(java.lang.String method, java.lang.Class arg1, java.lang.Class arg2, java.lang.Class arg3)
method
- name of the method
public abstract Callback getBlockMethod(java.lang.String method)
public abstract CompiledBlockCallback getBlockCallback(java.lang.String method, java.lang.Object scriptObject)
public abstract Callback getOptSingletonMethod(java.lang.String method)
method
- name of the method
public abstract Callback getFastOptSingletonMethod(java.lang.String method)
method
- name of the method
public abstract Callback getOptMethod(java.lang.String method)
method
- name of the method
public abstract Callback getFastOptMethod(java.lang.String method)
method
- name of the method
public abstract Dispatcher createDispatcher(RubyClass metaClass)
metaClass
-
public static CallbackFactory createFactory(Ruby runtime, java.lang.Class type)
public static CallbackFactory createFactory(Ruby runtime, java.lang.Class type, java.lang.ClassLoader classLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |