Packageorg.spicefactory.lib.expr
Interfacepublic interface ExpressionContext
Implementors DefaultExpressionContext

Represents a context for creating and resolving expressions.



Public Methods
 MethodDefined By
  
Adds a PropertyResolver to this context.
ExpressionContext
  
Adds a VariableResolver to this context.
ExpressionContext
  
createExpression(expression:String):Expression
Creates a new Expression instance using the specified String value.
ExpressionContext
  
removeVariable(name:String):void
Removes a variable from this context.
ExpressionContext
  
setVariable(name:String, value:*):void
Sets a variable for this context.
ExpressionContext
Method Detail
addPropertyResolver()method
public function addPropertyResolver(resolver:PropertyResolver):void

Adds a PropertyResolver to this context.

Parameters

resolver:PropertyResolver — PropertyResolver to add to this context

addVariableResolver()method 
public function addVariableResolver(resolver:VariableResolver):void

Adds a VariableResolver to this context.

Parameters

resolver:VariableResolver — VariableResolver to add to this context

createExpression()method 
public function createExpression(expression:String):Expression

Creates a new Expression instance using the specified String value.

Parameters

expression:String

Returns
Expression — a new Expression instance
removeVariable()method 
public function removeVariable(name:String):void

Removes a variable from this context.

Parameters

name:String — name of the variable

setVariable()method 
public function setVariable(name:String, value:*):void

Sets a variable for this context.

Parameters

name:String — name of the variable
 
value:* — new value of the variable