Package | org.spicefactory.lib.expr.impl |
Class | public class ChainedVariableResolver |
Inheritance | ChainedVariableResolver Object |
Implements | VariableResolver |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | ChainedVariableResolver | ||
addResolver(resolver:VariableResolver):void
Adds the specified VariableResolver instance to the internal chain. | ChainedVariableResolver | ||
resolveVariable(variableName:String):*
Resolves the variable with the specified name. | ChainedVariableResolver |
ChainedVariableResolver | () | Constructor |
public function ChainedVariableResolver()
Creates a new instance.
addResolver | () | method |
public function addResolver(resolver:VariableResolver):void
Adds the specified VariableResolver instance to the internal chain.
Parameters
resolver:VariableResolver — the resolver to add to the internal chain.
|
resolveVariable | () | method |
public function resolveVariable(variableName:String):*
Resolves the variable with the specified name. If the variable cannot be resolved this method should return undefined.
Parameters
variableName:String — the name of the variable to resolve
|
* — the value associated with the specified variable name or undefined if
the variable cannot be resolved
|