| Package | flare.query |
| Class | public class Fn |
| Inheritance | Fn CompositeExpression Expression |
| Property | Defined by | ||
|---|---|---|---|
![]() | numChildren : int
The number of sub-expressions that are children of this expression.
| CompositeExpression | |
| table : Object [static]
Function table mapping function names to Function instances.
| Fn | ||
| Method | Defined by | ||
|---|---|---|---|
|
Fn(name:String, ... args)
Creates a new Fn (function) operator.
| Fn | ||
![]() |
addChild(expr:Expression):void
Adds an additional sub-expression to this composite.
| CompositeExpression | |
|
Creates a cloned copy of the expression.
| Fn | ||
|
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Fn | ||
![]() |
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.
| Fn | ||
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| table | property |
public static var table:ObjectFunction table mapping function names to Function instances. Functions can be added or removed at run-time by editing this object.
| Fn | () | constructor |
public function Fn(name:String, ... args)Creates a new Fn (function) operator.
Parametersname:String — the name of the function. This should map to an entry
in the static function table.
|
|
... args |
| clone | () | method |
public override function clone():ExpressionCreates a cloned copy of the expression. Recursively clones any sub-expressions.
ReturnsExpression —
the cloned expression.
|
| eval | () | method |
public override function eval(o:Object = null):*Evaluates this expression with the given input object.
Parameterso:Object (default = null) — the input object to this expression
|
* — the result of evaluating the expression
|
| toString | () | method |
public override function toString():StringReturns a string representation of the expression.
ReturnsString — this expression as a string value
|