| Package | flare.query |
| Class | public class Literal |
| Inheritance | Literal Expression |
| Property | Defined by | ||
|---|---|---|---|
![]() | numChildren : int
The number of sub-expressions that are children of this expression.
| Expression | |
| value : Object The literal value of this expression.
| Literal | ||
| Method | Defined by | ||
|---|---|---|---|
|
Literal(val:Object = null)
Creates a new Literal instance.
| Literal | ||
|
Creates a cloned copy of the expression.
| Literal | ||
|
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Literal | ||
![]() |
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.
| Expression | |
|
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this
expression.
| Literal | ||
![]() |
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| Expression | |
|
toString():String
Returns a string representation of the expression.
| Literal | ||
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| Constant | Defined by | ||
|---|---|---|---|
| FALSE : Literal
[static] The boolean false literal.
| Literal | ||
| TRUE : Literal
[static] The boolean true literal.
| Literal | ||
| value | property |
value:Object [read-write]The literal value of this expression.
Implementation public function get value():Object
public function set value(value:Object):void
| Literal | () | constructor |
public function Literal(val:Object = null)Creates a new Literal instance.
Parametersval:Object (default = null) — the literal value
|
| 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
|
| 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
|
| toString | () | method |
public override function toString():StringReturns a string representation of the expression.
ReturnsString — this expression as a string value
|
| FALSE | constant |
public static const FALSE:LiteralThe boolean false literal.
| TRUE | constant |
public static const TRUE:LiteralThe boolean true literal.