com.caucho.quercus.env
Class QuercusClass

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.NullValue
          extended by com.caucho.quercus.env.QuercusClass
All Implemented Interfaces:
java.io.Serializable

public class QuercusClass
extends NullValue

Represents a Quercus runtime class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.NullValue
NULL
 
Fields inherited from class com.caucho.quercus.env.Value
NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
QuercusClass(ClassDef classDef, QuercusClass parent)
           
QuercusClass(ModuleContext moduleContext, ClassDef classDef, QuercusClass parent)
           
QuercusClass(QuercusClass cacheClass, QuercusClass parent)
          Copy based on a cached value
 
Method Summary
 void addConstant(java.lang.String name, Expr expr)
          Adds a constant definition
 void addField(StringValue name, Expr initExpr, FieldVisibility visibility)
          Adds a field.
 void addInitializer(InstanceInitializer init)
          Adds an initializer
 void addJavaConstant(java.lang.String name, java.lang.Object obj)
          Adds a constant definition
 void addMethod(java.lang.String name, AbstractFunction fun)
          Adds a method.
 void addMethod(StringValue name, AbstractFunction fun)
          Adds a method.
 void addMethodIfNotExist(StringValue name, AbstractFunction fun)
           
 void addStaticFieldExpr(java.lang.String className, java.lang.String name, Expr value)
          Adds a static class field.
 Value callMethod(Env env, StringValue methodName, int hash)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value a1)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value[] args)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
          calls the function.
 Value callMethod(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value[] args)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
          calls the function.
 Value callMethod(Env env, Value qThis, StringValue methodName, Value a1)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, Value[] args)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, Value a1, Value a2)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3, Value a4)
           
 Value callMethod(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3, Value a4, Value a5)
           
 Value callMethodRef(Env env, StringValue methodName, int hash)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a1)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value[] args)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
          calls the function.
 Value callMethodRef(Env env, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value a1)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value[] args)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2, Value a3, Value a4, Value a5)
          calls the function.
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value a1)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value[] args)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value a1, Value a2)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3, Value a4)
           
 Value callMethodRef(Env env, Value qThis, StringValue methodName, Value a1, Value a2, Value a3, Value a4, Value a5)
           
 Value callNew(Env env, Value... args)
          Creates a new instance.
 Value createObject(Env env)
          Creates a new object without calling the constructor.
 boolean equals(java.lang.Object o)
           
 AbstractFunction findConstructor()
          Finds the matching constructor.
 int findFieldIndex(StringValue name)
          Returns a set of the fields and their initial values
 AbstractFunction findFunction(java.lang.String methodName)
          Finds the matching function.
 AbstractFunction findFunction(StringValue methodName)
          Finds the matching function.
 AbstractFunction findStaticFunction(java.lang.String name)
          Finds the matching function.
 AbstractFunction findStaticFunctionLowerCase(java.lang.String name)
          Finds a function.
 ArrayDelegate getArrayDelegate()
          Gets the array delegate (see ArrayAccess)
 AbstractFunction getCall()
          Gets the __call
 ClassDef getClassDef()
           
 ClassDef[] getClassDefList()
           
 ClassField getClassField(StringValue name)
          Returns a set of the fields and their initial values
 java.util.HashMap<StringValue,ClassField> getClassFields()
          Returns a set of the fields and their initial values
 java.lang.Iterable<AbstractFunction> getClassMethods()
          Returns the declared functions.
 java.lang.String getClassName()
          Returns the value's class name.
 Value getConstant(Env env, java.lang.String name)
          Finds the matching constant
 java.util.HashMap<java.lang.String,Value> getConstantMap(Env env)
          Returns the constants defined in this class.
 AbstractFunction getConstructor()
          Gets the constructor.
 CountDelegate getCountDelegate()
          Gets the count delegate
 AbstractFunction getDestructor()
          Gets the destructor.
 java.lang.String getExtension()
           
 Value getField(Env env, Value qThis, StringValue name)
          Implements the __get method call.
 AbstractFunction getFieldGet()
          Returns the __fieldGet
 AbstractFunction getFieldSet()
          Returns the __fieldSet
 int getFieldSize()
          Returns the number of fields.
 AbstractFunction getFunction(StringValue methodName)
          Finds the matching function.
 AbstractFunction getFunction(StringValue methodName, int hash)
          Finds the matching function.
 java.util.HashSet<java.lang.String> getInstanceofSet()
           
 ArrayValue getInterfaces(Env env, boolean autoload)
           
 AbstractFunction getInvoke()
          Gets the __invoke
 AbstractFunction getIsset()
           
 JavaClassDef getJavaClassDef()
           
 MethodMap<AbstractFunction> getMethodMap()
           
 java.lang.String getName()
          Returns the name.
 QuercusClass getParent()
          Returns the parent class.
 java.lang.String getParentName()
          Returns the parent class.
 QuercusClass getQuercusClass()
          Returns the backing QuercusClass.
 Value getStaticField(Env env, StringValue name)
          For Reflection.
 java.util.ArrayList<StringValue> getStaticFieldNames()
          Returns the static field names.
 Value getStaticFieldValue(Env env, StringValue name)
           
 Var getStaticFieldVar(Env env, StringValue name)
           
 AbstractFunction getStaticFunction(java.lang.String name)
          Finds the matching function.
 AbstractFunction getToString()
          Gets the __toString
 TraversableDelegate getTraversableDelegate()
          Gets the traversable delegate
 AbstractFunction getUnset()
           
 boolean hasConstant(java.lang.String name)
          Returns true if the constant exists.
 int hashCode()
           
 boolean implementsInterface(Env env, java.lang.String name)
           
 void init(Env env)
           
 void initObject(Env env, ObjectValue obj)
          Initializes the object's methods and fields.
 boolean isA(java.lang.String name)
          Returns true for an implementation of a class
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isModified()
          Returns true if the class is modified for caching.
 boolean isNull()
          Returns true for a null.
 Value issetField(Env env, Value qThis, StringValue name)
          Implements the __isset method call.
 boolean issetField(StringValue name)
          Returns true if the field is set
 void setArrayDelegate(ArrayDelegate delegate)
          Sets the array delegate (see ArrayAccess)
 void setCall(AbstractFunction fun)
          Sets the __call
 void setConstructor(AbstractFunction fun)
          Sets the constructor.
 void setCountDelegate(CountDelegate delegate)
          Sets the count delegate
 void setDestructor(AbstractFunction fun)
          Sets the destructor.
 Value setField(Env env, Value qThis, StringValue name, Value value)
          Implements the __set method call.
 void setFieldGet(AbstractFunction fun)
          Sets the __fieldGet
 void setFieldSet(AbstractFunction fun)
          Sets the __fieldSet
 void setInvoke(AbstractFunction fun)
          Sets the __invoke
 void setIsset(AbstractFunction isset)
           
 void setModified()
          Mark the class as modified for caching.
 Value setStaticFieldRef(Env env, StringValue name, Value value)
           
 void setToString(AbstractFunction fun)
          Sets the __toString
 void setTraversableDelegate(TraversableDelegate delegate)
          Sets the traversable delegate
 void setUnset(AbstractFunction unset)
           
 java.lang.String toString()
          Converts to a string.
 Value unsetField(Env env, Value qThis, StringValue name)
          implements the __unset method call __unset() is invoked when unset() is used on inaccessible properties.
 void unsetField(StringValue name)
          Removes the field ref.
 void validate(Env env)
           
 
Methods inherited from class com.caucho.quercus.env.NullValue
add, append, appendTo, appendTo, appendTo, appendTo, cmp, create, eq, eql, generate, getArray, getCount, getObject, getSize, getType, getValueType, isEmpty, isset, jsonEncode, print, serialize, sub, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBoolean, toBooleanMarshalCost, toByteMarshalCost, toDebugString, toDouble, toDoubleMarshalCost, toIntegerMarshalCost, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toKey, toLong, toLongMarshalCost, toObject, toShortMarshalCost, toStringBuilder, toStringValue, valuesToArray, varDumpImpl, varExport
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, addOne, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eqValue, geq, get, getArg, getArray, getBaseIterator, getCallableName, getCalledClass, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getRef, getResourceType, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getValueArray, getValueIterator, getVar, gt, hasCurrent, increment, initField, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isFieldInit, isLong, isLongConvertible, isNumberConvertible, isNumeric, isObject, isResource, isset, issetThisField, isString, isUnicode, isVar, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, printDepth, printJavaChar, printJavaString, printR, printRImpl, put, put, put, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, subOne, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toByteArrayMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toInternString, toJavaObjectMarshalCost, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLongValue, toRef, toRefValue, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetThisArray, unsetThisField, varDump
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuercusClass

public QuercusClass(ClassDef classDef,
                    QuercusClass parent)

QuercusClass

public QuercusClass(ModuleContext moduleContext,
                    ClassDef classDef,
                    QuercusClass parent)

QuercusClass

public QuercusClass(QuercusClass cacheClass,
                    QuercusClass parent)
Copy based on a cached value

Method Detail

getClassDef

public ClassDef getClassDef()

getJavaClassDef

public JavaClassDef getJavaClassDef()

getMethodMap

public MethodMap<AbstractFunction> getMethodMap()

getInstanceofSet

public java.util.HashSet<java.lang.String> getInstanceofSet()

getName

public java.lang.String getName()
Returns the name.


getParent

public QuercusClass getParent()
Returns the parent class.


getClassDefList

public ClassDef[] getClassDefList()

getExtension

public java.lang.String getExtension()

isInterface

public boolean isInterface()

isAbstract

public boolean isAbstract()

isFinal

public boolean isFinal()

setConstructor

public void setConstructor(AbstractFunction fun)
Sets the constructor.


getConstructor

public AbstractFunction getConstructor()
Gets the constructor.


setDestructor

public void setDestructor(AbstractFunction fun)
Sets the destructor.


getDestructor

public AbstractFunction getDestructor()
Gets the destructor.


isModified

public boolean isModified()
Returns true if the class is modified for caching.


setModified

public void setModified()
Mark the class as modified for caching.


setArrayDelegate

public void setArrayDelegate(ArrayDelegate delegate)
Sets the array delegate (see ArrayAccess)


getArrayDelegate

public final ArrayDelegate getArrayDelegate()
Gets the array delegate (see ArrayAccess)


setTraversableDelegate

public void setTraversableDelegate(TraversableDelegate delegate)
Sets the traversable delegate


getTraversableDelegate

public final TraversableDelegate getTraversableDelegate()
Gets the traversable delegate


setCountDelegate

public void setCountDelegate(CountDelegate delegate)
Sets the count delegate


getCountDelegate

public final CountDelegate getCountDelegate()
Gets the count delegate


setFieldGet

public void setFieldGet(AbstractFunction fun)
Sets the __fieldGet


getFieldGet

public AbstractFunction getFieldGet()
Returns the __fieldGet


setFieldSet

public void setFieldSet(AbstractFunction fun)
Sets the __fieldSet


getFieldSet

public AbstractFunction getFieldSet()
Returns the __fieldSet


setCall

public void setCall(AbstractFunction fun)
Sets the __call


getCall

public AbstractFunction getCall()
Gets the __call


setInvoke

public void setInvoke(AbstractFunction fun)
Sets the __invoke


getInvoke

public AbstractFunction getInvoke()
Gets the __invoke


setToString

public void setToString(AbstractFunction fun)
Sets the __toString


getToString

public AbstractFunction getToString()
Gets the __toString


addInitializer

public void addInitializer(InstanceInitializer init)
Adds an initializer


addField

public void addField(StringValue name,
                     Expr initExpr,
                     FieldVisibility visibility)
Adds a field.


getClassFields

public java.util.HashMap<StringValue,ClassField> getClassFields()
Returns a set of the fields and their initial values


getClassField

public ClassField getClassField(StringValue name)
Returns a set of the fields and their initial values


findFieldIndex

public int findFieldIndex(StringValue name)
Returns a set of the fields and their initial values


getClassMethods

public java.lang.Iterable<AbstractFunction> getClassMethods()
Returns the declared functions.


addMethod

public void addMethod(java.lang.String name,
                      AbstractFunction fun)
Adds a method.


addMethod

public void addMethod(StringValue name,
                      AbstractFunction fun)
Adds a method.


addMethodIfNotExist

public void addMethodIfNotExist(StringValue name,
                                AbstractFunction fun)

addStaticFieldExpr

public void addStaticFieldExpr(java.lang.String className,
                               java.lang.String name,
                               Expr value)
Adds a static class field.


getStaticFieldNames

public java.util.ArrayList<StringValue> getStaticFieldNames()
Returns the static field names.


addConstant

public void addConstant(java.lang.String name,
                        Expr expr)
Adds a constant definition


addJavaConstant

public void addJavaConstant(java.lang.String name,
                            java.lang.Object obj)
Adds a constant definition


getFieldSize

public int getFieldSize()
Returns the number of fields.


validate

public void validate(Env env)

init

public void init(Env env)

getStaticFieldValue

public Value getStaticFieldValue(Env env,
                                 StringValue name)

getStaticFieldVar

public Var getStaticFieldVar(Env env,
                             StringValue name)

setStaticFieldRef

public Value setStaticFieldRef(Env env,
                               StringValue name,
                               Value value)

getStaticField

public Value getStaticField(Env env,
                            StringValue name)
For Reflection.


createObject

public Value createObject(Env env)
Creates a new object without calling the constructor. This is used for unserializing classes.


initObject

public void initObject(Env env,
                       ObjectValue obj)
Initializes the object's methods and fields.


callNew

public Value callNew(Env env,
                     Value... args)
Creates a new instance.


getParentName

public java.lang.String getParentName()
Returns the parent class.


isA

public boolean isA(java.lang.String name)
Returns true for an implementation of a class

Overrides:
isA in class Value

getInterfaces

public ArrayValue getInterfaces(Env env,
                                boolean autoload)

implementsInterface

public boolean implementsInterface(Env env,
                                   java.lang.String name)

findConstructor

public AbstractFunction findConstructor()
Finds the matching constructor.


getField

public Value getField(Env env,
                      Value qThis,
                      StringValue name)
Implements the __get method call. __get() is utilized for reading data from inaccessible properties.


issetField

public Value issetField(Env env,
                        Value qThis,
                        StringValue name)
Implements the __isset method call. __isset() is triggered by calling isset() or empty() on inaccessible properties.


issetField

public boolean issetField(StringValue name)
Description copied from class: Value
Returns true if the field is set

Overrides:
issetField in class Value

unsetField

public void unsetField(StringValue name)
Description copied from class: Value
Removes the field ref.

Overrides:
unsetField in class Value

unsetField

public Value unsetField(Env env,
                        Value qThis,
                        StringValue name)
implements the __unset method call __unset() is invoked when unset() is used on inaccessible properties.


setField

public Value setField(Env env,
                      Value qThis,
                      StringValue name,
                      Value value)
Implements the __set method call.


findStaticFunction

public AbstractFunction findStaticFunction(java.lang.String name)
Finds the matching function.


getFunction

public final AbstractFunction getFunction(StringValue methodName)
Finds the matching function.


findFunction

public final AbstractFunction findFunction(java.lang.String methodName)
Finds the matching function.

Overrides:
findFunction in class Value

findFunction

public final AbstractFunction findFunction(StringValue methodName)
Finds the matching function.


getFunction

public final AbstractFunction getFunction(StringValue methodName,
                                          int hash)
Finds the matching function.


callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value[] args)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value[] args)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value a1)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value a1)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value a1,
                              Value a2)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value a1,
                              Value a2,
                              Value a3)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value a1,
                              Value a2,
                              Value a3,
                              Value a4)

callMethod

public Value callMethod(Env env,
                        Value qThis,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4,
                        Value a5)
calls the function.


callMethod

public final Value callMethod(Env env,
                              Value qThis,
                              StringValue methodName,
                              Value a1,
                              Value a2,
                              Value a3,
                              Value a4,
                              Value a5)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value[] args)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value[] args)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value a1)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value a1)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value a1,
                                 Value a2)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value a1,
                                 Value a2,
                                 Value a3)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value a1,
                                 Value a2,
                                 Value a3,
                                 Value a4)

callMethodRef

public Value callMethodRef(Env env,
                           Value qThis,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4,
                           Value a5)
calls the function.


callMethodRef

public final Value callMethodRef(Env env,
                                 Value qThis,
                                 StringValue methodName,
                                 Value a1,
                                 Value a2,
                                 Value a3,
                                 Value a4,
                                 Value a5)

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value[] args)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a1)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4)
calls the function.

Overrides:
callMethod in class Value

callMethod

public Value callMethod(Env env,
                        StringValue methodName,
                        int hash,
                        Value a1,
                        Value a2,
                        Value a3,
                        Value a4,
                        Value a5)
calls the function.

Overrides:
callMethod in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value[] args)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a1)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4)
calls the function.

Overrides:
callMethodRef in class Value

callMethodRef

public Value callMethodRef(Env env,
                           StringValue methodName,
                           int hash,
                           Value a1,
                           Value a2,
                           Value a3,
                           Value a4,
                           Value a5)
calls the function.

Overrides:
callMethodRef in class Value

findStaticFunctionLowerCase

public AbstractFunction findStaticFunctionLowerCase(java.lang.String name)
Finds a function.


getStaticFunction

public final AbstractFunction getStaticFunction(java.lang.String name)
Finds the matching function.


getConstant

public final Value getConstant(Env env,
                               java.lang.String name)
Finds the matching constant


hasConstant

public final boolean hasConstant(java.lang.String name)
Returns true if the constant exists.


getConstantMap

public final java.util.HashMap<java.lang.String,Value> getConstantMap(Env env)
Returns the constants defined in this class.


isNull

public boolean isNull()
Description copied from class: NullValue
Returns true for a null.

Overrides:
isNull in class NullValue

getClassName

public java.lang.String getClassName()
Returns the value's class name.

Overrides:
getClassName in class Value

getQuercusClass

public QuercusClass getQuercusClass()
Description copied from class: Value
Returns the backing QuercusClass.

Overrides:
getQuercusClass in class Value

hashCode

public int hashCode()
Overrides:
hashCode in class NullValue

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Description copied from class: NullValue
Converts to a string.

Overrides:
toString in class NullValue

setIsset

public void setIsset(AbstractFunction isset)

setUnset

public void setUnset(AbstractFunction unset)

getIsset

public AbstractFunction getIsset()

getUnset

public AbstractFunction getUnset()