com.caucho.quercus.lib.reflection
Class ReflectionMethod

java.lang.Object
  extended by com.caucho.quercus.lib.reflection.ReflectionFunctionAbstract
      extended by com.caucho.quercus.lib.reflection.ReflectionMethod
All Implemented Interfaces:
Reflector

public class ReflectionMethod
extends ReflectionFunctionAbstract
implements Reflector


Field Summary
static int IS_ABSTRACT
           
static int IS_FINAL
           
static int IS_PRIVATE
           
static int IS_PROTECTED
           
static int IS_PUBLIC
           
static int IS_STATIC
           
 
Constructor Summary
protected ReflectionMethod(AbstractFunction method)
           
protected ReflectionMethod(java.lang.String clsName, AbstractFunction method)
           
 
Method Summary
static ReflectionMethod __construct(Env env, Value obj, StringValue name)
           
static java.lang.String export(Env env, Value cls, java.lang.String name, boolean isReturn)
           
 ReflectionClass getDeclaringClass(Env env)
           
 int getModifiers()
           
 ArrayValue getParameters(Env env)
           
 Value invoke(Env env, ObjectValue object, Value[] args)
           
 Value invokeArgs(Env env, ObjectValue object, ArrayValue args)
           
 boolean isAbstract()
           
 boolean isConstructor()
           
 boolean isDestructor()
           
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.lib.reflection.ReflectionFunctionAbstract
getDocComment, getEndLine, getFileName, getFunction, getName, getNumberOfParameters, getNumberOfRequiredParameters, getStartLine, getStaticVariables, isInternal, isUserDefined, returnsReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IS_STATIC

public static final int IS_STATIC
See Also:
Constant Field Values

IS_ABSTRACT

public static final int IS_ABSTRACT
See Also:
Constant Field Values

IS_FINAL

public static final int IS_FINAL
See Also:
Constant Field Values

IS_PUBLIC

public static final int IS_PUBLIC
See Also:
Constant Field Values

IS_PROTECTED

public static final int IS_PROTECTED
See Also:
Constant Field Values

IS_PRIVATE

public static final int IS_PRIVATE
See Also:
Constant Field Values
Constructor Detail

ReflectionMethod

protected ReflectionMethod(AbstractFunction method)

ReflectionMethod

protected ReflectionMethod(java.lang.String clsName,
                           AbstractFunction method)
Method Detail

__construct

public static ReflectionMethod __construct(Env env,
                                           Value obj,
                                           StringValue name)

export

public static java.lang.String export(Env env,
                                      Value cls,
                                      java.lang.String name,
                                      boolean isReturn)

invoke

public Value invoke(Env env,
                    ObjectValue object,
                    Value[] args)

invokeArgs

public Value invokeArgs(Env env,
                        ObjectValue object,
                        ArrayValue args)

isFinal

public boolean isFinal()

isAbstract

public boolean isAbstract()

isPublic

public boolean isPublic()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isStatic

public boolean isStatic()

isConstructor

public boolean isConstructor()

isDestructor

public boolean isDestructor()

getModifiers

public int getModifiers()

getDeclaringClass

public ReflectionClass getDeclaringClass(Env env)

getParameters

public ArrayValue getParameters(Env env)
Overrides:
getParameters in class ReflectionFunctionAbstract

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object