Changeset 795
- Timestamp:
- 08/10/07 10:57:22 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/stubReflectionClass.php
r698 r795 34 34 */ 35 35 protected $docComment; 36 36 37 37 /** 38 38 * constructor … … 55 55 $this->docComment = $this->getDocComment(); 56 56 } 57 57 58 58 /** 59 59 * check whether the class has the given annotation or not … … 66 66 return stubAnnotationFactory::has($this->docComment, $annotationName, stubAnnotation::TARGET_CLASS, $this->className); 67 67 } 68 68 69 69 /** 70 70 * return the specified annotation … … 78 78 return stubAnnotationFactory::create($this->docComment, $annotationName, stubAnnotation::TARGET_CLASS, $this->className); 79 79 } 80 80 81 81 /** 82 82 * checks whether a value is equal to the class … … 93 93 return false; 94 94 } 95 95 96 96 /** 97 97 * returns a string representation of the class … … 111 111 return 'net.stubbles.reflection.stubReflectionClass[' . $this->className . "] {\n}\n"; 112 112 } 113 113 114 114 /** 115 115 * returns the full qualified class name of the reflected class … … 129 129 return $fqClassName; 130 130 } 131 131 132 132 /** 133 133 * returns the constructor or null if none exists … … 142 142 return $this->getMethod('__construct'); 143 143 } 144 144 145 145 /** 146 146 * returns the specified method or null if it does not exist … … 158 158 return $stubRefMethod; 159 159 } 160 160 161 161 /** 162 162 * returns a list of all methods … … 174 174 return $stubMethods; 175 175 } 176 176 177 177 /** 178 178 * returns the specified property or null if it does not exist … … 190 190 return $stubRefProperty; 191 191 } 192 192 193 193 /** 194 194 * returns a list of all properties … … 206 206 return $stubProperties; 207 207 } 208 208 209 209 /** 210 210 * returns a list of all interfaces … … 222 222 return $stubRefClasses; 223 223 } 224 224 225 225 /** 226 226 * returns a list of all interfaces … … 231 231 { 232 232 $parentClass = parent::getParentClass(); 233 if (null == $parentClass) {233 if (null === $parentClass || false === $parentClass) { 234 234 return null; 235 235 } … … 238 238 return $stubRefClass; 239 239 } 240 240 241 241 /** 242 242 * returns the extension to where this class belongs too trunk/src/main/php/net/stubbles/reflection/stubReflectionObject.php
r698 r795 41 41 */ 42 42 protected $docComment; 43 43 44 44 /** 45 45 * constructor … … 54 54 $this->docComment = $this->getDocComment(); 55 55 } 56 56 57 57 /** 58 58 * check whether the class has the given annotation or not … … 65 65 return stubAnnotationFactory::has($this->docComment, $annotationName, stubAnnotation::TARGET_CLASS, $this->className); 66 66 } 67 67 68 68 /** 69 69 * return the specified annotation … … 77 77 return stubAnnotationFactory::create($this->docComment, $annotationName, stubAnnotation::TARGET_CLASS, $this->className); 78 78 } 79 79 80 80 /** 81 81 * checks whether a value is equal to the class … … 104 104 return ($compare->className == $this->className && $compareHashCode == $classHashCode); 105 105 } 106 106 107 107 /** 108 108 * returns a string representation of the class … … 122 122 return 'net.stubbles.reflection.stubReflectionObject[' . $this->className . "] {\n}\n"; 123 123 } 124 124 125 125 /** 126 126 * returns the full qualified class name of the reflected class … … 140 140 return $fqClassName; 141 141 } 142 142 143 143 /** 144 144 * returns the instance of the class with with this reflection instance was created … … 150 150 return $this->classObject; 151 151 } 152 152 153 153 /** 154 154 * returns the constructor or null if none exists … … 163 163 return $this->getMethod('__construct'); 164 164 } 165 165 166 166 /** 167 167 * returns the specified method or null if it does not exist … … 179 179 return $stubRefMethod; 180 180 } 181 181 182 182 /** 183 183 * returns a list of all methods … … 195 195 return $stubMethods; 196 196 } 197 197 198 198 /** 199 199 * returns the specified property or null if it does not exist … … 211 211 return $stubRefProperty; 212 212 } 213 213 214 214 /** 215 215 * returns a list of all properties … … 227 227 return $stubProperties; 228 228 } 229 229 230 230 /** 231 231 * returns a list of all interfaces … … 243 243 return $stubRefClasses; 244 244 } 245 245 246 246 /** 247 247 * returns a list of all interfaces … … 252 252 { 253 253 $parentClass = parent::getParentClass(); 254 if (null == $parentClass) {254 if (null === $parentClass || false === $parentClass) { 255 255 return null; 256 256 } … … 259 259 return $stubRefClass; 260 260 } 261 261 262 262 /** 263 263 * returns the extension to where this class belongs too
