AccessorFactory
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 1.0 |
| Author: | Francis Bourre |
| Classpath: | com.bourre.core.AccessorFactory |
| File last modified: | Wednesday, 31 October 2007, 07:35:29 |
AccessorFactory offers accessor proxy with polymorphic approach.Take a look at com.bourre.core to see available IAccessor implementations.
AccessorFactory constructor is private and can't be instanciate; use only defined
static methods.
Example
var o : IAccessor = AccessorFactory.getInstance( this, "_prop" ); o.setValue( 100 ); var n : Number = o.getValue();
Summary
Class methods
Instance methods
Class methods
getInstance
static function getInstance (
) : IAccessor
Returns IAccessor instance depending of passed-in
f type.Returns:
MultiAccessor instance if type of
returns MethodAccessor instance if type of
returns PropertyAccessor instance.
f is array or returns MethodAccessor instance if type of
f is function or returns PropertyAccessor instance.
Instance methods
toString
function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance