Packageflare.query
Classpublic class And
InheritanceAnd Inheritance CompositeExpression Inheritance Expression
SubclassesRange

Expression operator that computes the logical "and" of sub-expression clauses.



Public Properties
 PropertyDefined by
 InheritednumChildren : int
The number of sub-expressions that are children of this expression.
CompositeExpression
Protected Properties
 PropertyDefined by
 Inherited_children : Array
Array of sub-expressions.
CompositeExpression
Public Methods
 MethodDefined by
  
And(... clauses)
Creates a new And operator.
And
 Inherited
addChild(expr:Expression):void
Adds an additional sub-expression to this composite.
CompositeExpression
  
Creates a cloned copy of the expression.
And
  
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
  
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
  
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
Constructor detail
And()constructor
public function And(... clauses)

Creates a new And operator.

Parameters
... clauses — the sub-expression clauses
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
predicate()method 
public override function predicate(o:Object):Boolean

Boolean predicate that tests the output of evaluating this expression. Returns true if the expression evaluates to true, or a non-null or non-zero value. Returns false if the expression evaluates to false, or a null or zero value.

Parameters
o:Object — the input object to this expression

Returns
Boolean — the Boolean 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