| Package | flare.query |
| Class | public class BinaryExpression |
| Inheritance | BinaryExpression Expression |
| Subclasses | Arithmetic, Comparison, Match |
| Property | Defined by | ||
|---|---|---|---|
| left : Expression
The left-hand-side sub-expression.
| BinaryExpression | ||
| numChildren : int [read-only]
The number of sub-expressions that are children of this expression.
| BinaryExpression | ||
| operator : int Code indicating the operation performed by this instance.
| BinaryExpression | ||
| operatorString : String [read-only] String representation of the operation performed by this
instance.
| BinaryExpression | ||
| right : Expression
The right-hand-side sub-expression.
| BinaryExpression | ||
| Property | Defined by | ||
|---|---|---|---|
| _left : Expression
The left-hand-side sub-expression.
| BinaryExpression | ||
| _op : int Code indicating the operation perfomed by this instance.
| BinaryExpression | ||
| _right : Expression
The right-hand-side sub-expression.
| BinaryExpression | ||
| Method | Defined by | ||
|---|---|---|---|
|
BinaryExpression(op:int, minOp:int, maxOp:int, left:*, right:*)
Creates a new BinaryExpression.
| BinaryExpression | ||
![]() |
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.
| BinaryExpression | ||
![]() |
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this
expression.
| Expression | |
|
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| BinaryExpression | ||
|
toString():String
Returns a string representation of the expression.
| BinaryExpression | ||
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| _left | property |
protected var _left:ExpressionThe left-hand-side sub-expression.
| left | property |
left:Expression [read-write]The left-hand-side sub-expression.
Implementation public function get left():Expression
public function set left(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
| _op | property |
protected var _op:intCode indicating the operation perfomed by this instance.
| operator | property |
operator:int [read-write]Code indicating the operation performed by this instance.
Implementation public function get operator():int
public function set operator(value:int):void
| operatorString | property |
operatorString:String [read-only]String representation of the operation performed by this instance.
Implementation public function get operatorString():String
| _right | property |
protected var _right:ExpressionThe right-hand-side sub-expression.
| right | property |
right:Expression [read-write]The right-hand-side sub-expression.
Implementation public function get right():Expression
public function set right(value:Expression):void
| BinaryExpression | () | constructor |
public function BinaryExpression(op:int, minOp:int, maxOp:int, left:*, right:*)Creates a new BinaryExpression.
Parametersop:int — the operation code
|
|
minOp:int — the minimum legal operation code
|
|
maxOp:int — the maximum legal operation code
|
|
left:* — the left-hand-side sub-expression
|
|
right:* — the right-hand-side sub-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.
|
| 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
|