| Package | org.spicefactory.parsley.tag.util |
| Class | public class ReflectionUtil |
| Inheritance | ReflectionUtil Object |
| Method | Defined By | ||
|---|---|---|---|
[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 | ||
getTypeReferencesForParameters(target:FunctionBase):Array [static]
Returns an Array containing an ObjectTypeReference instance for each of the
parameters of the specified constructor or method. | ReflectionUtil | ||
| getMethod | () | method |
public static function getMethod(name:String, type:ClassInfo):MethodReturns 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
|
Method — the Method instance for the specified name
|
| getProperty | () | method |
public static function getProperty(name:String, type:ClassInfo, readableRequired:Boolean, writableRequired:Boolean):PropertyReturns 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
|
Property — the Property instance for the specified name
|
| getTypeReferencesForParameters | () | method |
public static function getTypeReferencesForParameters(target:FunctionBase):ArrayReturns 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
|
Array — an Array containing an ObjectTypeReference instance for each of the
parameters of the specified constructor or method
|