public class CallbackFunction extends Callback
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
CallbackFunction(AbstractFunction fun) |
CallbackFunction(AbstractFunction fun,
StringValue funName) |
CallbackFunction(Env env,
StringValue funName) |
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 argument.
|
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 3 arguments.
|
Value |
call(Env env,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Evaluates the callback with 3 arguments.
|
Arg[] |
getArgs(Env env)
Returns the formal arguments.
|
java.lang.String |
getCallbackName()
Returns the name of the callback.
|
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.
|
AbstractFunction |
getFunction(Env env) |
boolean |
isInternal(Env env)
Returns true if this callback is implemented internally (i.e.
|
boolean |
isReturnsReference(Env env)
Returns true if this returns a reference.
|
boolean |
isValid(Env env)
Checks for a valid callback.
|
void |
serialize(Env env,
java.lang.StringBuilder sb)
Serializes the value.
|
protected void |
setFunction(AbstractFunction fun)
Allow subclasses to set the abstract function directly.
|
java.lang.String |
toString() |
protected void |
varExportImpl(StringValue sb,
int level)
Exports the value.
|
callArray, callArray, callArray, toCallable
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eq, eql, eqValue, findFunction, findQuercusClass, generate, geq, get, get, getArg, getArgTail, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getSize, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getType, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, initField, initField, initIncompleteField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, jsonEncode, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, putVar, remove, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBoolean, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, valuesToArray, varDump, varDumpImpl, varExport
public CallbackFunction(Env env, StringValue funName)
public CallbackFunction(AbstractFunction fun)
public CallbackFunction(AbstractFunction fun, StringValue funName)
protected void setFunction(AbstractFunction fun)
public boolean isValid(Env env)
Callable
public void serialize(Env env, java.lang.StringBuilder sb)
public Value call(Env env, Value a1, Value a2, Value a3)
public Value call(Env env, Value a1, Value a2, Value a3, Value a4)
public Value call(Env env, Value a1, Value a2, Value a3, Value a4, Value a5)
public Value call(Env env, Value[] args)
Callback
public java.lang.String getCallbackName()
Callback
getCallbackName
in interface Callable
getCallbackName
in class Callback
public AbstractFunction getFunction(Env env)
public boolean isInternal(Env env)
Callback
isInternal
in class Callback
public java.lang.String getDeclFileName(Env env)
Callable
public int getDeclStartLine(Env env)
Callable
public int getDeclEndLine(Env env)
Callable
public java.lang.String getDeclComment(Env env)
Callable
public boolean isReturnsReference(Env env)
Callable
public Arg[] getArgs(Env env)
Callable
protected void varExportImpl(StringValue sb, int level)
varExportImpl
in class Value