|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.env.QuercusClass
public class QuercusClass
Represents a Quercus runtime class.
| 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,
int index,
Expr initExpr,
FieldVisibility visibility)
Adds a field. |
int |
addFieldIndex(StringValue name)
Adds a field. |
void |
addInitializer(InstanceInitializer init)
Adds an initializer |
void |
addMethod(java.lang.String name,
AbstractFunction fun)
Adds a method. |
void |
addStaticFieldExpr(java.lang.String className,
java.lang.String name,
Expr value)
Adds a static class field. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLength,
Expr[] args)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value[] args)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4)
calls the function. |
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. |
Value |
callMethod(Env env,
Value thisValue,
StringValue methodName,
Expr[] args)
calls the function. |
Value |
callMethod(Env env,
Value thisValue,
StringValue name,
Value[] args)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Expr[] args)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value[] args)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4)
calls the function. |
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. |
Value |
callMethodRef(Env env,
Value thisValue,
StringValue methodName,
Expr[] args)
calls the function. |
Value |
callMethodRef(Env env,
Value thisValue,
StringValue name,
Value[] args)
calls the function. |
Value |
callNew(Env env,
Value[] args)
Creates a new instance. |
AbstractFunction |
findConstructor()
Finds the matching constructor. |
int |
findFieldIndex(StringValue name)
Returns the field index. |
AbstractFunction |
findFunction(java.lang.String name)
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()
|
java.lang.Iterable<AbstractFunction> |
getClassMethods()
Returns the declared functions. |
java.util.HashMap<StringValue,Expr> |
getClassVars()
Returns a set of the fields and their initial values |
Value |
getConstant(Env env,
java.lang.String name)
Finds the matching constant |
java.util.HashMap<java.lang.String,Expr> |
getConstantMap()
|
AbstractFunction |
getConstructor()
Gets the constructor. |
CountDelegate |
getCountDelegate()
Gets the count delegate |
java.lang.String |
getExtension()
|
Value |
getField(Env env,
Value qThis,
StringValue name)
Implements the __get method call. |
AbstractFunction |
getFieldGet()
Returns the __fieldGet |
java.util.ArrayList<StringValue> |
getFieldNames()
Returns the key set. |
AbstractFunction |
getFieldSet()
Returns the __fieldSet |
int |
getFieldSize()
Returns the number of fields. |
AbstractFunction |
getFunction(int hash,
char[] name,
int nameLen)
Finds the matching function. |
AbstractFunction |
getFunction(java.lang.String name)
Finds the matching function. |
ArrayValue |
getInterfaces(Env env,
boolean autoload)
|
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. |
Var |
getStaticField(Env env,
java.lang.String name)
|
java.util.HashMap<java.lang.String,Value> |
getStaticFieldMap()
|
AbstractFunction |
getStaticFunction(java.lang.String name)
Finds the matching function. |
TraversableDelegate |
getTraversableDelegate()
Gets the traversable delegate |
boolean |
hasConstant(java.lang.String name)
Returns true if the constant exists. |
boolean |
implementsInterface(Env env,
java.lang.String name)
|
void |
init(Env env)
|
boolean |
isA(java.lang.String name)
Returns true for an implementation of a class |
boolean |
isAbstract()
|
boolean |
isFinal()
|
boolean |
isInterface()
|
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 |
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 |
setTraversableDelegate(TraversableDelegate delegate)
Sets the traversable delegate |
java.lang.String |
toString()
|
void |
validate(Env env)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuercusClass(ClassDef classDef,
QuercusClass parent)
public QuercusClass(ModuleContext moduleContext,
ClassDef classDef,
QuercusClass parent)
public QuercusClass(QuercusClass cacheClass,
QuercusClass parent)
| Method Detail |
|---|
public ClassDef getClassDef()
public JavaClassDef getJavaClassDef()
public MethodMap<AbstractFunction> getMethodMap()
public java.lang.String getName()
public QuercusClass getParent()
public ClassDef[] getClassDefList()
public java.lang.String getExtension()
public boolean isInterface()
public boolean isAbstract()
public boolean isFinal()
public void setConstructor(AbstractFunction fun)
public AbstractFunction getConstructor()
public void setArrayDelegate(ArrayDelegate delegate)
public final ArrayDelegate getArrayDelegate()
public void setTraversableDelegate(TraversableDelegate delegate)
public final TraversableDelegate getTraversableDelegate()
public void setCountDelegate(CountDelegate delegate)
public final CountDelegate getCountDelegate()
public void setFieldGet(AbstractFunction fun)
public AbstractFunction getFieldGet()
public void setFieldSet(AbstractFunction fun)
public AbstractFunction getFieldSet()
public void setCall(AbstractFunction fun)
public AbstractFunction getCall()
public void addInitializer(InstanceInitializer init)
public void addField(StringValue name,
int index,
Expr initExpr,
FieldVisibility visibility)
public int addFieldIndex(StringValue name)
public java.util.HashMap<StringValue,Expr> getClassVars()
public java.lang.Iterable<AbstractFunction> getClassMethods()
public void addMethod(java.lang.String name,
AbstractFunction fun)
public void addStaticFieldExpr(java.lang.String className,
java.lang.String name,
Expr value)
public void addConstant(java.lang.String name,
Expr expr)
public int getFieldSize()
public int findFieldIndex(StringValue name)
public java.util.ArrayList<StringValue> getFieldNames()
public void validate(Env env)
public void init(Env env)
public Var getStaticField(Env env,
java.lang.String name)
public java.util.HashMap<java.lang.String,Value> getStaticFieldMap()
public Value callNew(Env env,
Value[] args)
public java.lang.String getParentName()
public boolean isA(java.lang.String name)
public ArrayValue getInterfaces(Env env,
boolean autoload)
public boolean implementsInterface(Env env,
java.lang.String name)
public AbstractFunction findConstructor()
public Value getField(Env env,
Value qThis,
StringValue name)
public void setField(Env env,
Value qThis,
StringValue name,
Value value)
public AbstractFunction findFunction(java.lang.String name)
public AbstractFunction findStaticFunction(java.lang.String name)
public final AbstractFunction getFunction(java.lang.String name)
public final AbstractFunction getFunction(int hash,
char[] name,
int nameLen)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLength,
Expr[] args)
public Value callMethod(Env env,
Value thisValue,
StringValue methodName,
Expr[] args)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value[] args)
public Value callMethod(Env env,
Value thisValue,
StringValue name,
Value[] args)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4)
public Value callMethod(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Expr[] args)
public Value callMethodRef(Env env,
Value thisValue,
StringValue methodName,
Expr[] args)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value[] args)
public Value callMethodRef(Env env,
Value thisValue,
StringValue name,
Value[] args)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4)
public Value callMethodRef(Env env,
Value thisValue,
int hash,
char[] name,
int nameLen,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
public AbstractFunction findStaticFunctionLowerCase(java.lang.String name)
public final AbstractFunction getStaticFunction(java.lang.String name)
public final Value getConstant(Env env,
java.lang.String name)
public final boolean hasConstant(java.lang.String name)
public final java.util.HashMap<java.lang.String,Expr> getConstantMap()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||