com.adobe.solutions.exm.runtime

# IExpressionManager - AS3 Expression Manager

Package | com.adobe.solutions.exm.runtime
Interface | public interface IExpressionManager
Implementors | ExpressionManagerImpl

Language Version: | ActionScript 3.0

Product Version: | Expression Manager Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

The ExpressionManager interface is the entry point into the Expression Manager runtime. Applications should use an ExpressionManager instance for obtaining a ComputedExpression instance, from which they can obtain the result of the evaluated expression by reading or binding to the 'value' property. ExpressionManager has two pluggable components, a variable resolver and a function mapper, which are used for resolving any variables or function calls encountered in an expression string.

Public Properties

| Property | Defined By
--- | --- | ---
|  | functionMapper : IFunctionMapper Returns the function mapper used for resolving function calls in expressions. | IExpressionManager
|  | variableResolver : IVariableResolver Returns the variable resolver used for resolving variables in expressions. | IExpressionManager

Public Methods

| Method | Defined By
--- | --- | ---
|  | assignTo(assignTo:String, expression:String):void Assigns the result of evaluation of the given expression to the given variable. | IExpressionManager
|  | manage(expression:String):IComputedExpression 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. | IExpressionManager
|  | manageExpression(expression:IExpression):IComputedExpression 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. | IExpressionManager
|  | manageList(expressionsVector:Vector.<IExpression>):Vector.<IComputedExpression> Returns a list of ComputedExpression instances for the given list of expression objects. | IExpressionManager

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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00