|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.Callback
public abstract class Callback
Represents a call to a function.
Field Summary |
---|
Fields inherited from class com.caucho.quercus.env.Value |
---|
L, NULL_ARGS, NULL_VALUE_ARRAY |
Constructor Summary | |
---|---|
Callback()
|
Method Summary | |
---|---|
abstract Value |
call(Env env,
Value[] args)
Evaluates the callback with variable 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. |
abstract java.lang.String |
getCallbackName()
Returns the name of the callback. |
abstract boolean |
isInternal(Env env)
Returns true if this callback is implemented internally (i.e. |
abstract boolean |
isValid(Env env)
Checks for a valid callback. |
Callable |
toCallable(Env env)
Converts to a callable |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.caucho.quercus.env.Callable |
---|
call, call, call, call, call, call |
Constructor Detail |
---|
public Callback()
Method Detail |
---|
public Callable toCallable(Env env)
Value
toCallable
in class Value
public final Value callArray(Env env, ArrayValue array, Value key, Value a1)
callArray
in interface Callable
env
- array
- from which a1 came fromkey
- index of a1 in the arraya1
- need to make a reference to this variablepublic final Value callArray(Env env, ArrayValue array, Value key, Value a1, Value a2)
callArray
in interface Callable
env
- array
- from which a1 came fromkey
- index of a1 in the arraya1
- need to make a reference to this variablea2
- additional argument to pass to the callbackpublic final Value callArray(Env env, ArrayValue array, Value key, Value a1, Value a2, Value a3)
callArray
in interface Callable
env
- array
- from which a1 came fromkey
- index of a1 in the arraya1
- need to make a reference to this variablea2
- additional argument to pass to the callbacka3
- additional argument to pass to the callbackpublic abstract Value call(Env env, Value[] args)
call
in interface Callable
call
in class Value
env
- the calling environmentpublic abstract boolean isValid(Env env)
Callable
isValid
in interface Callable
public abstract java.lang.String getCallbackName()
getCallbackName
in interface Callable
public abstract boolean isInternal(Env env)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |