public interface Callable
Modifier and Type | Method and Description |
---|---|
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.
|
Arg[] |
getArgs(Env env)
Returns the formal arguments.
|
java.lang.String |
getCallbackName()
Returns the callable name, needed as special case for ob_*
|
java.lang.String |
getDeclComment(Env env)
Returns the comment in the file where this is defined in.
|
int |
getDeclEndLine(Env env)
Returns the end line in the file where this is defined in.
|
java.lang.String |
getDeclFileName(Env env)
Returns the name of the file where this is defined in.
|
int |
getDeclStartLine(Env env)
Returns the start line in the file where this is defined in.
|
boolean |
isReturnsReference(Env env)
Returns true if this returns a reference.
|
boolean |
isValid(Env env)
Checks for a valid callback.
|
java.lang.String getCallbackName()
boolean isValid(Env env)
java.lang.String getDeclFileName(Env env)
int getDeclStartLine(Env env)
int getDeclEndLine(Env env)
java.lang.String getDeclComment(Env env)
boolean isReturnsReference(Env env)
Value call(Env env)
env
- the calling environmentValue call(Env env, Value a1)
env
- the calling environmentValue call(Env env, Value a1, Value a2)
env
- the calling environmentValue call(Env env, Value a1, Value a2, Value a3)
env
- the calling environmentValue call(Env env, Value a1, Value a2, Value a3, Value a4)
env
- the calling environmentValue call(Env env, Value a1, Value a2, Value a3, Value a4, Value a5)
env
- the calling environmentValue call(Env env, Value[] args)
env
- the calling environmentValue callArray(Env env, ArrayValue array, Value key, Value a1)
env
- array
- from which a1 came fromkey
- index of a1 in the arraya1
- need to make a reference to this variableValue callArray(Env env, ArrayValue array, Value key, Value a1, Value a2)
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 callbackValue callArray(Env env, ArrayValue array, Value key, Value a1, Value a2, Value a3)
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 callback