com.caucho.quercus.function
Class LazyMethod

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

public class LazyMethod
extends AbstractFunction

Lazily load a compiled method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.function.AbstractFunction
_bindingClass, _declaringClassName, _isClosure, _isConstructor, _isFinal, _isStatic, _parseIndex, _visibility
 
Fields inherited from class com.caucho.quercus.env.Value
NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
LazyMethod(java.lang.Class<?> pageClass, java.lang.String name, java.lang.String className)
           
 
Method Summary
 Value call(Env env, Value[] args)
          Evaluates the function.
 Value callMethod(Env env, QuercusClass qClass, Value qThis)
          Evaluates the function as a method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value a1)
          Evaluates the function as a method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value[] args)
          Evaluates the method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2)
          Evaluates the function as a method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3)
          Evaluates the function as a method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3, Value a4)
          Evaluates the function as a method call.
 Value callMethod(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3, Value a4, Value a5)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value a1)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value[] args)
          Evaluates the method call, returning a reference.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3, Value a4)
          Evaluates the function as a method call.
 Value callMethodRef(Env env, QuercusClass qClass, Value qThis, Value a1, Value a2, Value a3, Value a4, Value a5)
          Evaluates the function as a method call.
 java.lang.String getComment()
          Returns the documentation for this function.
 java.lang.String getDeclaringClassName()
           
 java.lang.String getName()
           
 boolean isAbstract()
          Returns true for an abstract function.
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
          Returns true for a static function.
 AbstractFunction toFun(QuercusClass quercusClass)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.function.AbstractFunction
call, call, call, call, call, call, callCopy, callMethod, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, errorPrivateAccess, errorProtectedAccess, evalArguments, getActualFunction, getArgs, getBindingClass, getBindingClassName, getCallbackName, getCompilationName, getDeclaringClass, getLocation, getType, isBoolean, isCallUsesSymbolTable, isCallUsesVariableArgs, isClosure, isConstructor, isDouble, isGlobal, isInternal, isLong, isObject, isReturnsReference, isString, isValid, setBindingClass, setClosure, setConstructor, setDeclaringClassName, setFinal, setGlobal, setParseIndex, setStatic, setVisibility, toFun
 
Methods inherited from class com.caucho.quercus.env.Callback
callArray, callArray, callArray, toCallable
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, 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, 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, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, isA, isA, isArray, isBinary, isCallable, isDefault, isDoubleConvertible, isEmpty, isFieldInit, isLongConvertible, isNull, isNumberConvertible, isNumeric, isResource, isset, isset, issetField, issetThisField, 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, varDumpImpl, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyMethod

public LazyMethod(java.lang.Class<?> pageClass,
                  java.lang.String name,
                  java.lang.String className)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class AbstractFunction

toFun

public AbstractFunction toFun(QuercusClass quercusClass)

isStatic

public boolean isStatic()
Description copied from class: AbstractFunction
Returns true for a static function.

Overrides:
isStatic in class AbstractFunction

isFinal

public boolean isFinal()
Overrides:
isFinal in class AbstractFunction

isPublic

public boolean isPublic()
Overrides:
isPublic in class AbstractFunction

isProtected

public boolean isProtected()
Overrides:
isProtected in class AbstractFunction

isPrivate

public boolean isPrivate()
Overrides:
isPrivate in class AbstractFunction

isAbstract

public boolean isAbstract()
Description copied from class: AbstractFunction
Returns true for an abstract function.

Overrides:
isAbstract in class AbstractFunction

getComment

public java.lang.String getComment()
Description copied from class: AbstractFunction
Returns the documentation for this function.

Overrides:
getComment in class AbstractFunction

getDeclaringClassName

public java.lang.String getDeclaringClassName()
Overrides:
getDeclaringClassName in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value[] args)
Description copied from class: AbstractFunction
Evaluates the method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value a1)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value a1,
                        Value a2)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value a1,
                        Value a2,
                        Value a3)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethod

public Value callMethod(Env env,
                        QuercusClass qClass,
                        Value qThis,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4,
                        Value a5)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethod in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value[] args)
Description copied from class: AbstractFunction
Evaluates the method call, returning a reference.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value a1)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value a1,
                           Value a2)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value a1,
                           Value a2,
                           Value a3)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

callMethodRef

public Value callMethodRef(Env env,
                           QuercusClass qClass,
                           Value qThis,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4,
                           Value a5)
Description copied from class: AbstractFunction
Evaluates the function as a method call.

Overrides:
callMethodRef in class AbstractFunction

call

public Value call(Env env,
                  Value[] args)
Description copied from class: AbstractFunction
Evaluates the function.

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

toString

public java.lang.String toString()
Overrides:
toString in class AbstractFunction