CodeInstrumentationParameter Class Reference

Inheritance diagram for CodeInstrumentationParameter:

CodeReflectionParameter ExtendedReflectionParameter ReflectionParameter

List of all members.

Protected Member Functions

 createExtendedReflectionClass (ReflectionClass $objOriginalReflectionClass)
 createExtendedReflectionMethod (ReflectionMethod $objOriginalReflectionMethod)
 createExtendedReflectionFunction (ReflectionFunction $objOriginalReflectionFunction)


Detailed Description

Class what make possible the code instrumentation of methods and fucntions with parameters

Author:
Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com>

Definition at line 14 of file CodeInstrumentationParameter.class.php.


Member Function Documentation

createExtendedReflectionClass ( ReflectionClass objOriginalReflectionClass  )  [protected]

Replace the original reflection class by the Code Instrumentation version of it

Parameters:
ReflectionClass $objOriginalReflectionClass
Returns:
CodeInstrumentationClass

Reimplemented from CodeReflectionParameter.

Definition at line 23 of file CodeInstrumentationParameter.class.php.

00024     {
00025         return new CodeInstrumentationClass( $objOriginalReflectionClass->getName() );
00026     }

createExtendedReflectionFunction ( ReflectionFunction objOriginalReflectionFunction  )  [protected]

Replace the origianl reflection function of the parameters by the code instrumentation version of it

Parameters:
ReflectionFunction $objOriginalReflectionFunction
Returns:
CodeInstrumentationFunction

Reimplemented from CodeReflectionParameter.

Definition at line 47 of file CodeInstrumentationParameter.class.php.

00048     {
00049         if( $objOriginalReflectionFunction instanceof ReflectionMethod )
00050         {
00051             return new CodeInstrumentationMethod( $objOriginalReflectionFunction->getName() );
00052         }
00053         else
00054         {
00055             return new CodeInstrumentationFunction( $objOriginalReflectionFunction->getName() );
00056         }
00057     }

createExtendedReflectionMethod ( ReflectionMethod objOriginalReflectionMethod  )  [protected]

Replace the original reflection method by the Code Instrumentation version of it

Parameters:
ReflectionMethod $objOriginalReflectionMethod
Returns:
CodeInstrumentationMethod

Reimplemented from CodeReflectionParameter.

Definition at line 35 of file CodeInstrumentationParameter.class.php.

00036     {
00037         return new CodeInstrumentationMethod( $this->getName() , $objOriginalReflectionMethod->getName() );
00038     }


The documentation for this class was generated from the following file:

Generated on Thu Feb 3 03:55:02 2011 for CodeToDiagram by  doxygen 1.5.9