com.caucho.quercus.env
Interface Callable

All Known Implementing Classes:
AbstractFunction, AbstractJavaMethod, Callback, CallbackClassMethod, CallbackError, CallbackFunction, CallbackObjectMethod, Closure, CompiledFunction, CompiledFunction_0, CompiledFunction_1, CompiledFunction_2, CompiledFunction_3, CompiledFunction_4, CompiledFunction_5, CompiledFunction_N, CompiledFunctionRef, CompiledFunctionRef_0, CompiledFunctionRef_1, CompiledFunctionRef_2, CompiledFunctionRef_3, CompiledFunctionRef_4, CompiledFunctionRef_5, CompiledFunctionRef_N, CompiledMethod, CompiledMethod_0, CompiledMethod_1, CompiledMethod_2, CompiledMethod_3, CompiledMethod_4, CompiledMethod_5, CompiledMethod_N, CompiledMethodRef, CompiledMethodRef_0, CompiledMethodRef_1, CompiledMethodRef_2, CompiledMethodRef_3, CompiledMethodRef_4, CompiledMethodRef_5, CompiledMethodRef_N, CompiledRefMethod_0, Function, FunSpecialCall, JavaConstructor, JavaInvoker, JavaMethod, JavaOverloadMethod, LazyFunction, LazyMethod, MethodDeclaration, ObjectMethod, ProByteCodeStaticFunction, ProfileFunction, ProFunction, ProMethodDeclaration, ProObjectMethod, ProStaticFunction, StaticFunction, UndefinedFunction, UnsetFunction, UrlRewriterCallback

public interface Callable

Represents a call to a function.


Method Summary
 Value call(Env env)
          Evaluates the callback with no arguments.
 Value call(Env env, Value a1)
          Evaluates the callback with 1 arguments.
 Value call(Env env, Value[] args)
          Evaluates the callback with variable arguments.
 Value call(Env env, Value a1, Value a2)
          Evaluates the callback with 2 arguments.
 Value call(Env env, Value a1, Value a2, Value a3)
          Evaluates the callback with 3 arguments.
 Value call(Env env, Value a1, Value a2, Value a3, Value a4)
          Evaluates the callback with 4 arguments.
 Value call(Env env, Value a1, Value a2, Value a3, Value a4, Value a5)
          Evaluates the callback with 5 arguments.
 Value callArray(Env env, ArrayValue array, Value key, Value a1)
          Evaluates a callback where the first argument is from an array.
 Value callArray(Env env, ArrayValue array, Value key, Value a1, Value a2)
          Evaluates a callback where the first argument is from an array.
 Value callArray(Env env, ArrayValue array, Value key, Value a1, Value a2, Value a3)
          Evaluates a callback where the first argument is from an array.
 java.lang.String getCallbackName()
          Returns the callable name, needed as special case for ob_*
 boolean isValid(Env env)
          Checks for a valid callback.
 

Method Detail

getCallbackName

java.lang.String getCallbackName()
Returns the callable name, needed as special case for ob_*


isValid

boolean isValid(Env env)
Checks for a valid callback.


call

Value call(Env env)
Evaluates the callback with no arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value a1)
Evaluates the callback with 1 arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value a1,
           Value a2)
Evaluates the callback with 2 arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value a1,
           Value a2,
           Value a3)
Evaluates the callback with 3 arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value a1,
           Value a2,
           Value a3,
           Value a4)
Evaluates the callback with 4 arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value a1,
           Value a2,
           Value a3,
           Value a4,
           Value a5)
Evaluates the callback with 5 arguments.

Parameters:
env - the calling environment

call

Value call(Env env,
           Value[] args)
Evaluates the callback with variable arguments.

Parameters:
env - the calling environment

callArray

Value callArray(Env env,
                ArrayValue array,
                Value key,
                Value a1)
Evaluates a callback where the first argument is from an array. The callback may be modifying that array element. For ArrayModule.

Parameters:
env -
array - from which a1 came from
key - index of a1 in the array
a1 - need to make a reference to this variable

callArray

Value callArray(Env env,
                ArrayValue array,
                Value key,
                Value a1,
                Value a2)
Evaluates a callback where the first argument is from an array. The callback may be modifying that array element. For ArrayModule.

Parameters:
env -
array - from which a1 came from
key - index of a1 in the array
a1 - need to make a reference to this variable
a2 - additional argument to pass to the callback

callArray

Value callArray(Env env,
                ArrayValue array,
                Value key,
                Value a1,
                Value a2,
                Value a3)
Evaluates a callback where the first argument is from an array. The callback may be modifying that array element. For ArrayModule.

Parameters:
env -
array - from which a1 came from
key - index of a1 in the array
a1 - need to make a reference to this variable
a2 - additional argument to pass to the callback
a3 - additional argument to pass to the callback