Packageorg.spicefactory.parsley.tag.util
Classpublic class ReflectionUtil
InheritanceReflectionUtil Inheritance Object

Static utility methods for decorator implementations.



Public Methods
 MethodDefined By
  
getMethod(name:String, type:ClassInfo):Method
[static] Returns the method with the specified name for the given class.
ReflectionUtil
  
getProperty(name:String, type:ClassInfo, readableRequired:Boolean, writableRequired:Boolean):Property
[static] Returns the property with the specified name for the given class.
ReflectionUtil
  
[static] Returns an Array containing an ObjectTypeReference instance for each of the parameters of the specified constructor or method.
ReflectionUtil
Method Detail
getMethod()method
public static function getMethod(name:String, type:ClassInfo):Method

Returns the method with the specified name for the given class. Throws an Error if no such method exists.

Parameters

name:String — the name of the method.
 
type:ClassInfo — the class to look up the method for

Returns
Method — the Method instance for the specified name
getProperty()method 
public static function getProperty(name:String, type:ClassInfo, readableRequired:Boolean, writableRequired:Boolean):Property

Returns the property with the specified name for the given class. Throws an Error if no such property exists or if some requirements specified by the boolean parameters are not met.

Parameters

name:String — the name of the property
 
type:ClassInfo — the class to look up the property for
 
readableRequired:Boolean — whether the property must be readable
 
writableRequired:Boolean — whether the property must be writable

Returns
Property — the Property instance for the specified name
getTypeReferencesForParameters()method 
public static function getTypeReferencesForParameters(target:FunctionBase):Array

Returns an Array containing an ObjectTypeReference instance for each of the parameters of the specified constructor or method.

Parameters

target:FunctionBase — the constructor or method to process

Returns
Array — an Array containing an ObjectTypeReference instance for each of the parameters of the specified constructor or method