com.caucho.quercus.lib.reflection
Class ReflectionClass
java.lang.Object
com.caucho.quercus.lib.reflection.ReflectionClass
- All Implemented Interfaces:
- Reflector
- Direct Known Subclasses:
- ReflectionObject
public class ReflectionClass
- extends java.lang.Object
- implements Reflector
Method Summary |
static ReflectionClass |
__construct(Env env,
Value obj)
|
static java.lang.String |
export(Env env,
Value cls,
boolean isReturn)
|
Value |
getConstant(Env env,
StringValue name)
|
ArrayValue |
getConstants(Env env)
|
ReflectionMethod |
getConstructor()
|
ArrayValue |
getDefaultProperties(Env env)
|
java.lang.String |
getDocComment()
|
int |
getEndLine()
|
ReflectionExtension |
getExtension(Env env)
|
java.lang.String |
getExtensionName()
|
java.lang.String |
getFileName()
|
ArrayValue |
getInterfaces(Env env)
|
ReflectionMethod |
getMethod(Env env,
StringValue name)
|
ArrayValue |
getMethods(Env env)
|
int |
getModifiers()
|
java.lang.String |
getName()
|
java.lang.String |
getNamespaceName()
|
ReflectionClass |
getParentClass()
|
ArrayValue |
getProperties(Env env)
|
ReflectionProperty |
getProperty(Env env,
StringValue name)
|
protected QuercusClass |
getQuercusClass()
|
java.lang.String |
getShortName()
|
int |
getStartLine()
|
ArrayValue |
getStaticProperties(Env env)
|
Value |
getStaticPropertyValue(Env env,
StringValue name,
Value defaultV)
|
boolean |
hasConstant(StringValue name)
|
boolean |
hasMethod(StringValue name)
|
boolean |
hasProperty(StringValue name)
|
boolean |
implementsInterface(Env env,
java.lang.String name)
|
boolean |
inNamespace()
|
boolean |
isAbstract()
|
boolean |
isFinal()
|
boolean |
isInstance(ObjectValue obj)
|
boolean |
isInstantiable()
|
boolean |
isInterface()
|
boolean |
isInternal()
|
boolean |
isIterateable()
|
boolean |
isSubclassOf(Env env,
java.lang.Object obj)
|
boolean |
isUserDefined()
|
Value |
newInstance(Env env,
Value[] args)
|
Value |
newInstanceArgs(Env env,
ArrayValue args)
|
void |
setStaticPropertyValue(Env env,
StringValue name,
Value value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IS_IMPLICIT_ABSTRACT
public static int IS_IMPLICIT_ABSTRACT
IS_EXPLICIT_ABSTRACT
public static int IS_EXPLICIT_ABSTRACT
IS_FINAL
public static int IS_FINAL
_name
public java.lang.String _name
ReflectionClass
protected ReflectionClass(QuercusClass cls)
ReflectionClass
protected ReflectionClass(Env env,
java.lang.String name)
getQuercusClass
protected QuercusClass getQuercusClass()
__construct
public static ReflectionClass __construct(Env env,
Value obj)
export
public static java.lang.String export(Env env,
Value cls,
boolean isReturn)
getName
public java.lang.String getName()
getNamespaceName
public java.lang.String getNamespaceName()
getShortName
public java.lang.String getShortName()
inNamespace
public boolean inNamespace()
isInternal
public boolean isInternal()
isUserDefined
public boolean isUserDefined()
isInstantiable
public boolean isInstantiable()
hasConstant
public boolean hasConstant(StringValue name)
getFileName
public java.lang.String getFileName()
getStartLine
public int getStartLine()
getEndLine
public int getEndLine()
getDocComment
public java.lang.String getDocComment()
getConstructor
public ReflectionMethod getConstructor()
hasMethod
public boolean hasMethod(StringValue name)
getMethod
public ReflectionMethod getMethod(Env env,
StringValue name)
getMethods
public ArrayValue getMethods(Env env)
hasProperty
public boolean hasProperty(StringValue name)
getProperty
public ReflectionProperty getProperty(Env env,
StringValue name)
getProperties
public ArrayValue getProperties(Env env)
getConstants
public ArrayValue getConstants(Env env)
getConstant
public Value getConstant(Env env,
StringValue name)
getInterfaces
public ArrayValue getInterfaces(Env env)
isInterface
public boolean isInterface()
isAbstract
public boolean isAbstract()
isFinal
public boolean isFinal()
getModifiers
public int getModifiers()
isInstance
public boolean isInstance(ObjectValue obj)
newInstance
public Value newInstance(Env env,
Value[] args)
newInstanceArgs
public Value newInstanceArgs(Env env,
ArrayValue args)
getParentClass
public ReflectionClass getParentClass()
isSubclassOf
public boolean isSubclassOf(Env env,
java.lang.Object obj)
getStaticProperties
public ArrayValue getStaticProperties(Env env)
getStaticPropertyValue
public Value getStaticPropertyValue(Env env,
StringValue name,
Value defaultV)
setStaticPropertyValue
public void setStaticPropertyValue(Env env,
StringValue name,
Value value)
getDefaultProperties
public ArrayValue getDefaultProperties(Env env)
isIterateable
public boolean isIterateable()
implementsInterface
public boolean implementsInterface(Env env,
java.lang.String name)
getExtension
public ReflectionExtension getExtension(Env env)
getExtensionName
public java.lang.String getExtensionName()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object