ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.solutions.exm.runtime.impl 

ExpressionManagerImpl  - AS3 Expression Manager

Packagecom.adobe.solutions.exm.runtime.impl
Classpublic class ExpressionManagerImpl
InheritanceExpressionManagerImpl Inheritance Object
Implements IExpressionManager

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

The default implementation of the ExpressionManager interface, which serves as the entry point into the Expression Manager runtime. An instance of this class must be configured with a variable resolver and function mapper in order to be able to manage expressions with variable references and function calls.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  functionMapper : IFunctionMapper
Returns the function mapper used for resolving function calls in expressions.
ExpressionManagerImpl
  variableResolver : IVariableResolver
Returns the variable resolver used for resolving variables in expressions.
ExpressionManagerImpl
Public Methods
 MethodDefined By
  
assignTo(assignTo:String, expression:String):void
Assigns the result of evaluation of the given expression to the given variable.
ExpressionManagerImpl
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
Returns a ComputedExpression instance for the given expression string, which applications can use for reading or binding to the result of evaluation of the expression.
ExpressionManagerImpl
  
Returns a ComputedExpression instance for the given expression, and if the 'assignTo' property of the given expression is set, automatically assigns the result of expression evaluation to the variable represented by this property.
ExpressionManagerImpl
  
Returns a list of ComputedExpression instances for the given list of expression objects.
ExpressionManagerImpl
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

functionMapper

property
functionMapper:IFunctionMapper

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns the function mapper used for resolving function calls in expressions.



Implementation
    public function get functionMapper():IFunctionMapper
    public function set functionMapper(value:IFunctionMapper):void

variableResolver

property 
variableResolver:IVariableResolver

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns the variable resolver used for resolving variables in expressions.



Implementation
    public function get variableResolver():IVariableResolver
    public function set variableResolver(value:IVariableResolver):void
Method Detail

assignTo

()method
public function assignTo(assignTo:String, expression:String):void

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Assigns the result of evaluation of the given expression to the given variable. The target variable is updated automatically whenever an expression recomputation event is triggered (e.g. due to a dependent variable change, etc.).

Parameters

assignTo:String — The target variable to which the result of expression evaluation is assigned.
 
expression:String — The expression to be evaluated.

manage

()method 
public function manage(expression:String):IComputedExpression

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns a ComputedExpression instance for the given expression string, which applications can use for reading or binding to the result of evaluation of the expression.

Parameters

expression:String — An expression string.

Returns
IComputedExpression — A ComputedExpression instance for the given expression string.

manageExpression

()method 
public function manageExpression(expression:IExpression):IComputedExpression

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns a ComputedExpression instance for the given expression, and if the 'assignTo' property of the given expression is set, automatically assigns the result of expression evaluation to the variable represented by this property.

Parameters

expression:IExpression — An expression object with the 'expression' property, and optionally the 'assignTo' property, set.

Returns
IComputedExpression — A ComputedExpression instance for the given expression.

manageList

()method 
public function manageList(expressionsVector:Vector.<IExpression>):Vector.<IComputedExpression>

Language Version: ActionScript 3.0
Product Version: Expression Manager Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns a list of ComputedExpression instances for the given list of expression objects.

Parameters

expressionsVector:Vector.<IExpression> — A list of Expression instances.

Returns
Vector.<IComputedExpression> — A list of ComputedExpression instances for the given list of expressions.