| Package | flare.query |
| Class | public class Match |
| Inheritance | Match BinaryExpression Expression |
| Property | Defined by | ||
|---|---|---|---|
![]() | left : Expression
The left-hand-side sub-expression.
| BinaryExpression | |
![]() | numChildren : int
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] Returns a string representation of the string matching operator.
| Match | ||
![]() | right : Expression
The right-hand-side sub-expression.
| BinaryExpression | |
| Method | Defined by | ||
|---|---|---|---|
|
Match(op:int, left:*, right:*)
Create a new Match expression.
| Match | ||
|
Creates a cloned copy of the expression.
| Match | ||
|
[static]
Creates a new Match operator for matching string containment.
| Match | ||
|
[static]
Creates a new Match operator for matching a string suffix.
| Match | ||
|
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Match | ||
![]() |
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 | |
|
[static]
Creates a new Match operator for matching a regular expression.
| Match | ||
![]() |
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| BinaryExpression | |
|
StartsWith(left:*, right:*):Match
[static]
Creates a new Match operator for matching string prefix.
| Match | ||
![]() |
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 | |
| Constant | Defined by | ||
|---|---|---|---|
| PREFIX : int = 0 [static] Indicates a prefix matching test.
| Match | ||
| REGEXP : int = 3 [static] Indicates a regular expression matching test.
| Match | ||
| SUFFIX : int = 1 [static] Indicates a suffix matching test.
| Match | ||
| WITHIN : int = 2 [static] Indicates a string containment test.
| Match | ||
| operatorString | property |
operatorString:String [read-only]Returns a string representation of the string matching operator.
Implementation public function get operatorString():String
| Match | () | constructor |
public function Match(op:int, left:*, right:*)Create a new Match expression.
Parametersop:int — the operation to perform
|
|
left:* — the left sub-expression
|
|
right:* — the right sub-expression
|
| clone | () | method |
public override function clone():ExpressionCreates a cloned copy of the expression. Recursively clones any sub-expressions.
ReturnsExpression —
the cloned expression.
|
| Contains | () | method |
public static function Contains(left:*, right:*):MatchCreates a new Match operator for matching string containment.
Parametersleft:* — the left-hand input expression
|
|
right:* — the right-hand input expression
|
Match —
the new Match operator
|
| EndsWith | () | method |
public static function EndsWith(left:*, right:*):MatchCreates a new Match operator for matching a string suffix.
Parametersleft:* — the left-hand input expression
|
|
right:* — the right-hand input expression
|
Match —
the new Match operator
|
| 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
|
| RegEx | () | method |
public static function RegEx(left:*, right:*):MatchCreates a new Match operator for matching a regular expression.
Parametersleft:* — the left-hand input expression
|
|
right:* — the right-hand input expression
|
Match —
the new Match operator
|
| StartsWith | () | method |
public static function StartsWith(left:*, right:*):MatchCreates a new Match operator for matching string prefix.
Parametersleft:* — the left-hand input expression
|
|
right:* — the right-hand input expression
|
Match —
the new Match operator
|
| PREFIX | constant |
public static const PREFIX:int = 0Indicates a prefix matching test.
| REGEXP | constant |
public static const REGEXP:int = 3Indicates a regular expression matching test.
| SUFFIX | constant |
public static const SUFFIX:int = 1Indicates a suffix matching test.
| WITHIN | constant |
public static const WITHIN:int = 2Indicates a string containment test.