| Package | flare.query |
| Class | public class CompositeExpression |
| Inheritance | CompositeExpression Expression |
| Subclasses | And, Fn, Or, Xor |
| Property | Defined by | ||
|---|---|---|---|
| numChildren : int [read-only]
The number of sub-expressions that are children of this expression.
| CompositeExpression | ||
| Property | Defined by | ||
|---|---|---|---|
| _children : Array Array of sub-expressions.
| CompositeExpression | ||
| Method | Defined by | ||
|---|---|---|---|
|
CompositeExpression(items:Object = null)
Creates a new CompositeExpression.
| CompositeExpression | ||
|
addChild(expr:Expression):void
Adds an additional sub-expression to this composite.
| CompositeExpression | ||
![]() |
Creates a cloned copy of the expression.
| Expression | |
![]() |
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Expression | |
![]() |
expr(o:*):Expression
[static]
Utility method that maps an input value into an Expression.
| Expression | |
|
getChildAt(idx:int):Expression
Returns the sub-expression at the given index.
| CompositeExpression | ||
![]() |
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this
expression.
| Expression | |
|
removeAllChildren():void
Removes all sub-expressions from this composite.
| CompositeExpression | ||
|
removeChild(expr:Expression):Boolean
Removes a sub-expression from this composite.
| CompositeExpression | ||
|
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| CompositeExpression | ||
|
setChildren(array:Array):void
Sets the sub-expressions of this composite
| CompositeExpression | ||
![]() |
toString():String
Returns a string representation of the expression.
| Expression | |
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| Method | Defined by | ||
|---|---|---|---|
|
Helper routine that clones this composite's sub-expressions.
| CompositeExpression | ||
|
getString(op:String = null):String
Returns a string representation of this composite's sub-expressions.
| CompositeExpression | ||
| _children | property |
protected var _children:ArrayArray of sub-expressions.
| numChildren | property |
numChildren:int [read-only]The number of sub-expressions that are children of this expression.
Implementation public function get numChildren():int
| CompositeExpression | () | constructor |
public function CompositeExpression(items:Object = null)Creates a new CompositeExpression.
Parametersitems:Object (default = null) — either a single sub-expression or an array of
sub-expressions
|
| addChild | () | method |
public function addChild(expr:Expression):voidAdds an additional sub-expression to this composite.
Parametersexpr:Expression — the sub-expression to add.
|
| cloneHelper | () | method |
protected function cloneHelper(ce:CompositeExpression):ExpressionHelper routine that clones this composite's sub-expressions.
Parametersce:CompositeExpression — the cloned composite expression
|
Expression —
the input expression
|
| getChildAt | () | method |
public override function getChildAt(idx:int):ExpressionReturns the sub-expression at the given index.
Parametersidx:int — the index of the child sub-expression
|
Expression —
the requested sub-expression.
|
| getString | () | method |
protected function getString(op:String = null):StringReturns a string representation of this composite's sub-expressions.
Parametersop:String (default = null) — a string describing the sub-class operator (null by
default). If non-null, the operator string will be interspersed
between sub-expression values in the output string.
|
String — the requested string
|
| removeAllChildren | () | method |
public function removeAllChildren():voidRemoves all sub-expressions from this composite.
| removeChild | () | method |
public function removeChild(expr:Expression):BooleanRemoves a sub-expression from this composite.
Parametersexpr:Expression — the sub-epxressions to remove
|
Boolean — true if the expression was found and removed, false
otherwise
|
| setChildAt | () | method |
public override function setChildAt(idx:int, expr:Expression):BooleanSet the sub-expression at the given index.
Parametersidx:int — the index of the child sub-expression
|
|
expr:Expression — the sub-expression to set
|
Boolean — true if the the sub-expression was successfully set,
false otherwise
|
| setChildren | () | method |
public function setChildren(array:Array):voidSets the sub-expressions of this composite
Parametersarray:Array — an array of sub-expressions
|