| Package | org.spicefactory.lib.expr.impl |
| Class | public class ChainedPropertyResolver |
| Inheritance | ChainedPropertyResolver Object |
| Implements | PropertyResolver |
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance. | ChainedPropertyResolver | ||
addResolver(resolver:PropertyResolver):void
Adds the specified VariableResolver instance to the internal chain. | ChainedPropertyResolver | ||
resolveProperty(baseObject:Object, propertyName:String):*
Resolves the property with the specified name in the given base object. | ChainedPropertyResolver | ||
| ChainedPropertyResolver | () | Constructor |
public function ChainedPropertyResolver()Creates a new instance.
| addResolver | () | method |
public function addResolver(resolver:PropertyResolver):voidAdds the specified VariableResolver instance to the internal chain.
Parameters
resolver:PropertyResolver — the resolver to add to the internal chain.
|
| resolveProperty | () | method |
public function resolveProperty(baseObject:Object, propertyName:String):*Resolves the property with the specified name in the given base object. The term "property" may be loosely interpreted and does not necessarily have to refer to a real property in the base object. If the property cannot be resolved this method should return undefined.
Parameters
baseObject:Object — the object to extract the property from
| |
propertyName:String — the name of the property to resolve
|
* — the resolved property value or undefined if
the variable cannot be resolved
|