Packageflare.query
Classpublic class Variable
InheritanceVariable Inheritance Expression

Expression operator that retrieves a value from an object property. Uses a flare.util.Property instance to access the value.

See also

flare.util.Property


Public Properties
 PropertyDefined by
  name : String
The name of the variable property.
Variable
 InheritednumChildren : int
The number of sub-expressions that are children of this expression.
Expression
Public Methods
 MethodDefined by
  
Variable(name:String)
Creates a new Variable operator.
Variable
  
Creates a cloned copy of the expression.
Variable
  
eval(o:Object = null):*
Evaluates this expression with the given input object.
Variable
 Inherited
[static] Utility method that maps an input value into an Expression.
Expression
 Inherited
Returns the sub-expression at the given index.
Expression
 Inherited
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this expression.
Expression
 Inherited
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
Expression
  
toString():String
Returns a string representation of the expression.
Variable
 Inherited
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all sub-expressions.
Expression
Property detail
nameproperty
name:String  [read-write]

The name of the variable property.

Implementation
    public function get name():String
    public function set name(value:String):void
Constructor detail
Variable()constructor
public function Variable(name:String)

Creates a new Variable operator.

Parameters
name:String — the name of the variable property
Method detail
clone()method
public override function clone():Expression

Creates a cloned copy of the expression. Recursively clones any sub-expressions.

Returns
Expression — the cloned expression.
eval()method 
public override function eval(o:Object = null):*

Evaluates this expression with the given input object.

Parameters
o:Object (default = null) — the input object to this expression

Returns
* — the result of evaluating the expression
toString()method 
public override function toString():String

Returns a string representation of the expression.

Returns
String — this expression as a string value