Packageflare.query
Classpublic class Not
InheritanceNot Inheritance Expression

Expression operator that returns the logical "not" of a sub-expression.



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

The sub-expression clause to negate.

Implementation
    public function get clause():Expression
    public function set clause(value:Expression):void
numChildrenproperty 
numChildren:int  [read-only]

The number of sub-expressions that are children of this expression.

Implementation
    public function get numChildren():int
Constructor detail
Not()constructor
public function Not(clause:*)

Creates a new Not operator.

Parameters
clause:* — the sub-expression clause to negate
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
getChildAt()method 
public override function getChildAt(idx:int):Expression

Returns the sub-expression at the given index.

Parameters
idx:int — the index of the child sub-expression

Returns
Expression — the requested sub-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
setChildAt()method 
public override function setChildAt(idx:int, expr:Expression):Boolean

Set the sub-expression at the given index.

Parameters
idx:int — the index of the child sub-expression
 
expr:Expression — the sub-expression to set

Returns
Boolean — true if the the sub-expression was successfully set, false otherwise
toString()method 
public override function toString():String

Returns a string representation of the expression.

Returns
String — this expression as a string value