Changeset 883

Show
Ignore:
Timestamp:
08/24/07 17:27:58 (1 year ago)
Author:
mikey
Message:

more methods defined in common interface for stubReflectionClass and stubReflectionObject

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/reflection/stubBaseReflectionClass.php

    r698 r883  
    2121{ 
    2222    /** 
     23     * check whether the class has the given annotation or not 
     24     * 
     25     * @param   string  $annotationName 
     26     * @return  bool 
     27     */ 
     28    public function hasAnnotation($annotationName); 
     29 
     30    /** 
     31     * return the specified annotation 
     32     * 
     33     * @param   string          $annotationName 
     34     * @return  stubAnnotation 
     35     * @throws  ReflectionException 
     36     */ 
     37    public function getAnnotation($annotationName); 
     38 
     39    /** 
     40     * checks whether a value is equal to the class 
     41     * 
     42     * @param   mixed  $compare 
     43     * @return  bool 
     44     */ 
     45    public function equals($compare); 
     46 
     47    /** 
    2348     * returns the full qualified class name of the reflected class 
    2449     *  
     
    3156 
    3257    /** 
     58     * returns the constructor or null if none exists 
     59     *  
     60     * Warning: PHP4-style constructors are not supported! If you have one use 
     61     * getMethod($className) instead to retrieve the constructor reflection method. 
     62     * 
     63     * @return  stubReflectionMethod 
     64     */ 
     65    public function getConstructor(); 
     66 
     67    /** 
     68     * returns the specified method or null if it does not exist 
     69     * 
     70     * @param   string                $name  name of method to return 
     71     * @return  stubReflectionMethod 
     72     */ 
     73    public function getMethod($name); 
     74 
     75    /** 
     76     * returns a list of all methods 
     77     * 
     78     * @return  array<stubReflectionMethod> 
     79     */ 
     80    public function getMethods(); 
     81 
     82    /** 
     83     * returns the specified property or null if it does not exist 
     84     * 
     85     * @param   string                  $name  name of property to return 
     86     * @return  stubReflectionProperty 
     87     */ 
     88    public function getProperty($name); 
     89 
     90    /** 
     91     * returns a list of all properties 
     92     * 
     93     * @return  array<stubReflectionProperty> 
     94     */ 
     95    public function getProperties(); 
     96 
     97    /** 
     98     * returns a list of all interfaces 
     99     * 
     100     * @return  array<stubReflectionClass> 
     101     */ 
     102    public function getInterfaces(); 
     103 
     104    /** 
     105     * returns a list of all interfaces 
     106     * 
     107     * @return  stubReflectionClass 
     108     */ 
     109    public function getParentClass(); 
     110 
     111    /** 
     112     * returns the extension to where this class belongs too 
     113     * 
     114     * @return  stubReflectionExtension 
     115     */ 
     116    public function getExtension(); 
     117 
     118    /** 
    33119     * returns the package where the class belongs to 
    34120     *