| java.lang.Object com.caucho.quercus.env.QuercusClass
QuercusClass | public class QuercusClass (Code) | | Represents a Quercus runtime class.
|
Inner Class :static class StaticField | |
Method Summary | |
public void | addConstant(String name, Expr expr) | public void | addField(StringValue name, int index, Expr initExpr) Adds a field. | public int | addFieldIndex(StringValue name) Adds a field. | public void | addInitializer(InstanceInitializer init) | public void | addMethod(String name, AbstractFunction fun) Adds a method. | public void | addStaticFieldExpr(String className, String name, Expr value) Adds a static class field. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLength, Expr[] args) calls the function. | public Value | callMethod(Env env, Value thisValue, StringValue methodName, Expr[] args) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value[] args) calls the function. | public Value | callMethod(Env env, Value thisValue, StringValue name, Value[] args) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3, Value a4) calls the function. | public Value | callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3, Value a4, Value a5) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Expr[] args) calls the function. | public Value | callMethodRef(Env env, Value thisValue, StringValue methodName, Expr[] args) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value[] args) calls the function. | public Value | callMethodRef(Env env, Value thisValue, StringValue name, Value[] args) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3, Value a4) calls the function. | public Value | callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2, Value a3, Value a4, Value a5) calls the function. | public Value | callNew(Env env, Value[] args) Creates a new instance. | public AbstractFunction | findConstructor() Finds the matching constructor. | public int | findFieldIndex(StringValue name) Returns the field index. | public AbstractFunction | findFunction(String name) Finds the matching function. | public AbstractFunction | findFunctionExact(String name) Finds the matching function. | public AbstractFunction | findFunctionLowerCase(String name) Finds the matching function. | public AbstractFunction | findStaticFunction(String name) Finds the matching function. | public AbstractFunction | findStaticFunctionLowerCase(String name) Finds a function. | final public ArrayDelegate | getArrayDelegate() | public AbstractFunction | getCall() | public ClassDef | getClassDef() | public ClassDef[] | getClassDefList() | public Iterable<AbstractFunction> | getClassMethods() Returns the declared functions. | public HashMap<StringValue, Expr> | getClassVars() | final public Value | getConstant(Env env, String name) | final public HashMap<String, Expr> | getConstantMap() | public AbstractFunction | getConstructor() Gets the constructor. | final public CountDelegate | getCountDelegate() | public String | getExtension() | public Value | getField(Env env, Value qThis, StringValue name) Implements the __get method call. | public AbstractFunction | getFieldGet() | public ArrayList<StringValue> | getFieldNames() Returns the key set. | public AbstractFunction | getFieldSet() | public int | getFieldSize() Returns the number of fields. | final public AbstractFunction | getFunction(String name) Finds the matching function. | final public AbstractFunction | getFunction(int hash, char[] name, int nameLen) Finds the matching function. | public MethodMap<AbstractFunction> | getMethodMap() | public String | getName() Returns the name. | public QuercusClass | getParent() Returns the parent class. | public String | getParentName() Returns the parent class. | public Var | getStaticField(Env env, String name) | public HashMap<String, Value> | getStaticFieldMap() | final public AbstractFunction | getStaticFunction(String name) Finds the matching function. | final public TraversableDelegate | getTraversableDelegate() | final public boolean | hasConstant(String name) Returns true if the constant exists. | public boolean | implementsInterface(Env env, String name) | public void | init(Env env) | public boolean | isA(String name) | public boolean | isAbstract() | public boolean | isFinal() | public boolean | isInterface() | public void | setArrayDelegate(ArrayDelegate delegate) | public void | setCall(AbstractFunction fun) | public void | setConstructor(AbstractFunction fun) Sets the constructor. | public void | setCountDelegate(CountDelegate delegate) | public void | setField(Env env, Value qThis, StringValue name, Value value) Implements the __set method call. | public void | setFieldGet(AbstractFunction fun) | public void | setFieldSet(AbstractFunction fun) | public void | setTraversableDelegate(TraversableDelegate delegate) | public String | toString() | public void | validate(Env env) |
addConstant | public void addConstant(String name, Expr expr)(Code) | | Adds a constant definition
|
addStaticFieldExpr | public void addStaticFieldExpr(String className, String name, Expr value)(Code) | | Adds a static class field.
|
callMethod | public Value callMethod(Env env, Value thisValue, int hash, char[] name, int nameLength, Expr[] args)(Code) | | calls the function.
|
callMethod | public Value callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value[] args)(Code) | | calls the function.
|
callMethod | public Value callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen)(Code) | | calls the function.
|
callMethod | public Value callMethod(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1)(Code) | | calls the function.
|
callMethodRef | public Value callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Expr[] args)(Code) | | calls the function.
|
callMethodRef | public Value callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value[] args)(Code) | | calls the function.
|
callMethodRef | public Value callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen)(Code) | | calls the function.
|
callMethodRef | public Value callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1)(Code) | | calls the function.
|
callMethodRef | public Value callMethodRef(Env env, Value thisValue, int hash, char[] name, int nameLen, Value a1, Value a2)(Code) | | calls the function.
|
findFieldIndex | public int findFieldIndex(StringValue name)(Code) | | Returns the field index.
|
getArrayDelegate | final public ArrayDelegate getArrayDelegate()(Code) | | Gets the array delegate (see ArrayAccess)
|
getFieldSize | public int getFieldSize()(Code) | | Returns the number of fields.
|
getFunction | final public AbstractFunction getFunction(int hash, char[] name, int nameLen)(Code) | | Finds the matching function.
|
getParentName | public String getParentName()(Code) | | Returns the parent class.
|
hasConstant | final public boolean hasConstant(String name)(Code) | | Returns true if the constant exists.
|
implementsInterface | public boolean implementsInterface(Env env, String name)(Code) | | |
isA | public boolean isA(String name)(Code) | | Returns true for an implementation of a class
|
isAbstract | public boolean isAbstract()(Code) | | |
isFinal | public boolean isFinal()(Code) | | |
isInterface | public boolean isInterface()(Code) | | |
setArrayDelegate | public void setArrayDelegate(ArrayDelegate delegate)(Code) | | Sets the array delegate (see ArrayAccess)
|
setCountDelegate | public void setCountDelegate(CountDelegate delegate)(Code) | | Sets the count delegate
|
|
|