public abstract class Closure extends Callback
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
Closure(java.lang.String name) |
Closure(java.lang.String name,
Value qThis) |
Modifier and Type | Method and Description |
---|---|
abstract Value |
call(Env env,
Value[] args)
Evaluates the callback with variable arguments.
|
Value |
callMethod(Env env,
StringValue methodName,
int hash,
Value[] args)
Evaluates a method.
|
java.lang.String |
getCallbackName()
Returns the name of the callback.
|
Var |
getStaticVar(StringValue name) |
Value |
getThis() |
java.lang.String |
getType()
Returns the type.
|
boolean |
isA(Env env,
java.lang.String name)
Returns true for an implementation of a class
|
boolean |
isCallable(Env env,
boolean isCheckSyntaxOnly,
Value nameRef)
Returns true for a callable object.
|
boolean |
isInternal(Env env)
Returns true if this callback is implemented internally (i.e.
|
boolean |
isObject()
Returns true for an object.
|
boolean |
isValid(Env env)
Checks for a valid callback.
|
Callable |
toCallable(Env env,
boolean isOptional)
Converts to a callable
|
java.lang.String |
toString() |
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, callCopy, 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, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, initField, initField, initIncompleteField, isA, isArray, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isEmpty, isEmpty, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, 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, 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, varExportImpl
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
call, call, call, call, call, call, getArgs, getDeclComment, getDeclEndLine, getDeclFileName, getDeclStartLine, isReturnsReference
public Closure(java.lang.String name)
public Closure(java.lang.String name, Value qThis)
public boolean isCallable(Env env, boolean isCheckSyntaxOnly, Value nameRef)
Value
isCallable
in class Value
public final Value getThis()
public Callable toCallable(Env env, boolean isOptional)
Value
toCallable
in class Callback
public boolean isObject()
Value
public java.lang.String getType()
Value
public java.lang.String getCallbackName()
Callback
getCallbackName
in interface Callable
getCallbackName
in class Callback
public boolean isInternal(Env env)
Callback
isInternal
in class Callback
public boolean isValid(Env env)
Callable
public boolean isA(Env env, java.lang.String name)
Value
public Var getStaticVar(StringValue name)
public Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
Value
callMethod
in class Value
public abstract Value call(Env env, Value[] args)