Packageflare.query
Classpublic class Range
InheritanceRange Inheritance And Inheritance CompositeExpression Inheritance Expression

Expression operator that tests if a value is within a given range. Implemented as an And of Comparison expressions.



Public Properties
 PropertyDefined by
  max : Expression
Sub-expression for the maximum value of the range.
Range
  min : Expression
Sub-expression for the minimum value of the range.
Range
 InheritednumChildren : int
The number of sub-expressions that are children of this expression.
CompositeExpression
  val : Expression
Sub-expression for the value to test for range inclusion.
Range
Protected Properties
 PropertyDefined by
 Inherited_children : Array
Array of sub-expressions.
CompositeExpression
Public Methods
 MethodDefined by
  
Range(min:*, max:*, val:*)
Create a new Range operator.
Range
 Inherited
addChild(expr:Expression):void
Adds an additional sub-expression to this composite.
CompositeExpression
  
Creates a cloned copy of the expression.
Range
 Inherited
eval(o:Object = null):*
Evaluates this expression with the given input object.
And
 Inherited
[static] Utility method that maps an input value into an Expression.
Expression
 Inherited
Returns the sub-expression at the given index.
CompositeExpression
 Inherited
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this expression.
And
 Inherited
Removes all sub-expressions from this composite.
CompositeExpression
 Inherited
removeChild(expr:Expression):Boolean
Removes a sub-expression from this composite.
CompositeExpression
 Inherited
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
CompositeExpression
 Inherited
setChildren(array:Array):void
Sets the sub-expressions of this composite
CompositeExpression
 Inherited
toString():String
Returns a string representation of the expression.
And
 Inherited
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all sub-expressions.
Expression
Protected Methods
 MethodDefined by
 Inherited
Helper routine that clones this composite's sub-expressions.
CompositeExpression
 Inherited
getString(op:String = null):String
Returns a string representation of this composite's sub-expressions.
CompositeExpression
Property detail
maxproperty
max:Expression  [read-write]

Sub-expression for the maximum value of the range.

Implementation
    public function get max():Expression
    public function set max(value:Expression):void
minproperty 
min:Expression  [read-write]

Sub-expression for the minimum value of the range.

Implementation
    public function get min():Expression
    public function set min(value:Expression):void
valproperty 
val:Expression  [read-write]

Sub-expression for the value to test for range inclusion.

Implementation
    public function get val():Expression
    public function set val(value:Expression):void
Constructor detail
Range()constructor
public function Range(min:*, max:*, val:*)

Create a new Range operator.

Parameters
min:* — sub-expression for the minimum value of the range
 
max:* — sub-expression for the maximum value of the range
 
val:* — sub-expression for the value to test for range inclusion
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.