| Package | flare.query |
| Class | public class IsA |
| Inheritance | IsA Expression |
| Property | Defined by | ||
|---|---|---|---|
| clause : Expression
The sub-expression clause to type check.
| IsA | ||
| numChildren : int [read-only]
The number of sub-expressions that are children of this expression.
| IsA | ||
| type : Class [read-only] The class type to check for.
| IsA | ||
| Method | Defined by | ||
|---|---|---|---|
|
IsA(type:Class, clause:* = null)
Creates a new IsA operator.
| IsA | ||
|
Creates a cloned copy of the expression.
| IsA | ||
|
eval(o:Object = null):*
Evaluates this expression with the given input object.
| IsA | ||
![]() |
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.
| IsA | ||
|
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this
expression.
| IsA | ||
|
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| IsA | ||
|
toString():String
Returns a string representation of the expression.
| IsA | ||
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| clause | property |
clause:Expression [read-write]The sub-expression clause to type check.
Implementation public function get clause():Expression
public function set clause(value:Expression):void
| numChildren | property |
numChildren:int [read-only]The number of sub-expressions that are children of this expression.
Implementation public function get numChildren():int
| type | property |
type:Class [read-only]The class type to check for.
Implementation public function get type():Class
| IsA | () | constructor |
public function IsA(type:Class, clause:* = null)Creates a new IsA operator.
Parameterstype:Class — the class type to check for
|
|
clause:* (default = null) — the sub-expression clause to type check. If null,
the input object (rather than a sub-property or expression result)
will be type checked.
|
| 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
|
| 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.
|
| predicate | () | method |
public override function predicate(o:Object):BooleanBoolean 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.
Parameterso:Object — the input object to this expression
|
Boolean — the Boolean result of evaluating the expression
|
| 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
|
| toString | () | method |
public override function toString():StringReturns a string representation of the expression.
ReturnsString — this expression as a string value
|