Packagesystem.ioc.evaluators
Classpublic class ReferenceEvaluator
InheritanceReferenceEvaluator Inheritance Object
Implements Evaluable

Evaluates a reference string expression and return the property value who corresponding in the target object specified in this evaluator.



Public Properties
 PropertyDefined By
  factory : IObjectFactory
The ObjectFactory use in the evaluator.
ReferenceEvaluator
  separator : String = .
The separator of the expression evaluator.
ReferenceEvaluator
  throwError : Boolean
Indicates if the class throws errors or return null when an error is throwing.
ReferenceEvaluator
  undefineable : * = null
The undefineable value returns in the eval method if the expression can't be evaluate.
ReferenceEvaluator
Public Methods
 MethodDefined By
  
Creates a new ReferenceEvaluator instance.
ReferenceEvaluator
  
eval(o:*):*
Evaluates the specified object.
ReferenceEvaluator
Property Detail
factoryproperty
factory:IObjectFactory

The ObjectFactory use in the evaluator.


Implementation
    public function get factory():IObjectFactory
    public function set factory(value:IObjectFactory):void
separatorproperty 
public var separator:String = .

The separator of the expression evaluator.

throwErrorproperty 
throwError:Boolean

Indicates if the class throws errors or return null when an error is throwing.


Implementation
    public function get throwError():Boolean
    public function set throwError(value:Boolean):void
undefineableproperty 
public var undefineable:* = null

The undefineable value returns in the eval method if the expression can't be evaluate.

Constructor Detail
ReferenceEvaluator()Constructor
public function ReferenceEvaluator(factory:IObjectFactory = null)

Creates a new ReferenceEvaluator instance.

Parameters
factory:IObjectFactory (default = null) — The ObjectFactory use in the evaluator.
Method Detail
eval()method
public function eval(o:*):*

Evaluates the specified object.

Parameters

o:*

Returns
*