com.caucho.quercus.env
Class CallbackClassMethod

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.Callback
          extended by com.caucho.quercus.env.CallbackClassMethod
All Implemented Interfaces:
Callable, java.io.Serializable

public class CallbackClassMethod
extends Callback

Represents a call to an object's method

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.Value
NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
CallbackClassMethod(QuercusClass qClass, StringValue methodName)
           
CallbackClassMethod(QuercusClass qClass, StringValue methodName, Value qThis)
           
 
Method Summary
 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.
 java.lang.String getCallbackName()
          Returns the name of the callback.
 boolean isInternal(Env env)
          Returns true if this callback is implemented internally (i.e.
 boolean isValid(Env env)
          Checks for a valid callback.
 void varDumpImpl(Env env, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet)
           
 
Methods inherited from class com.caucho.quercus.env.Callback
callArray, callArray, callArray, toCallable, toString
 
Methods inherited from class com.caucho.quercus.env.Value
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, generate, geq, get, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getType, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, 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, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, setJavaObject, 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, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, 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, valuesToArray, varDump, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallbackClassMethod

public CallbackClassMethod(QuercusClass qClass,
                           StringValue methodName,
                           Value qThis)

CallbackClassMethod

public CallbackClassMethod(QuercusClass qClass,
                           StringValue methodName)
Method Detail

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

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

Specified by:
call in interface Callable
Overrides:
call in class Value
Parameters:
env - the calling environment

call

public Value call(Env env,
                  Value[] args)
Description copied from class: Callback
Evaluates the callback with variable arguments.

Specified by:
call in interface Callable
Specified by:
call in class Callback
Parameters:
env - the calling environment

varDumpImpl

public void varDumpImpl(Env env,
                        WriteStream out,
                        int depth,
                        java.util.IdentityHashMap<Value,java.lang.String> valueSet)
                 throws java.io.IOException
Overrides:
varDumpImpl in class Value
Throws:
java.io.IOException

isValid

public boolean isValid(Env env)
Description copied from interface: Callable
Checks for a valid callback.

Specified by:
isValid in interface Callable
Specified by:
isValid in class Callback
Returns:
true if this is an invalid callback reference

getCallbackName

public java.lang.String getCallbackName()
Description copied from class: Callback
Returns the name of the callback.

Specified by:
getCallbackName in interface Callable
Specified by:
getCallbackName in class Callback

isInternal

public boolean isInternal(Env env)
Description copied from class: Callback
Returns true if this callback is implemented internally (i.e. in Java).

Specified by:
isInternal in class Callback