|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.ClassesModule
public class ClassesModule
Quercus class information
Field Summary |
---|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
ClassesModule()
|
Method Summary | |
---|---|
static Value |
call_user_method_array(Env env,
StringValue methodName,
Value obj,
ArrayValue params)
|
static Value |
call_user_method(Env env,
StringValue name,
Value obj,
Value[] args)
Calls an object method. |
static boolean |
class_exists(Env env,
java.lang.String className,
boolean useAutoload)
returns true if the class exists. |
static java.lang.String |
get_called_class(Env env)
Returns the calling class name. |
static Value |
get_class_methods(Env env,
Value cls)
Returns an array of method names |
static Value |
get_class_vars(Env env,
Value obj)
Returns an array of member names and values |
static Value |
get_class(Env env,
Value value)
Returns the object's class name |
static Value |
get_declared_classes(Env env)
Returns the declared classes |
static Value |
get_object_vars(Env env,
Value obj)
Returns the object's variables |
Value |
get_parent_class(Env env,
Value value)
Returns the object's class name |
boolean |
interface_exists(Env env,
java.lang.String interfaceName,
boolean useAutoload)
Returns true if the class exists. |
static boolean |
is_a(Value value,
java.lang.String name)
Returns true if the object implements the given class. |
static boolean |
is_object(Value value)
Returns true if the argument is an object. |
static boolean |
is_subclass_of(Env env,
Value value,
java.lang.String name)
Returns true if the object implements the given class. |
static boolean |
method_exists(Env env,
Value obj,
StringValue methodName)
Returns true if the named method exists on the object. |
static Value |
property_exists(Env env,
Value obj,
StringValue name)
Returns true if the named property exists on the object. |
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassesModule()
Method Detail |
---|
public static Value call_user_method(Env env, StringValue name, Value obj, Value[] args)
public static Value call_user_method_array(Env env, StringValue methodName, Value obj, ArrayValue params)
public static boolean class_exists(Env env, java.lang.String className, boolean useAutoload)
public static Value get_class(Env env, Value value)
public static java.lang.String get_called_class(Env env)
public static Value get_class_methods(Env env, Value cls)
clss
- the name of the class, or an instance of a class
public static Value get_class_vars(Env env, Value obj)
clss
- the name of the class, or an instance of a class
public static Value get_declared_classes(Env env)
public static Value get_object_vars(Env env, Value obj)
public Value get_parent_class(Env env, Value value)
public boolean interface_exists(Env env, java.lang.String interfaceName, boolean useAutoload)
public static boolean is_a(Value value, java.lang.String name)
public static boolean is_object(Value value)
public static boolean is_subclass_of(Env env, Value value, java.lang.String name)
public static boolean method_exists(Env env, Value obj, StringValue methodName)
obj
- the object to testmethodName
- the name of the methodpublic static Value property_exists(Env env, Value obj, StringValue name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |