Packagecom.smartfoxserver.v2.entities.match
Classpublic class StringMatch
InheritanceStringMatch Inheritance Object
Implements IMatcher

The StringMatch class is used in matching expressions to check string conditions.

See also

MatchExpression


Public Properties
 PropertyDefined By
  symbol : String
[read-only] Returns the condition symbol of this matcher.
StringMatch
  type : int
[read-only] Returns the type id of this matcher.
StringMatch
Public Constants
 ConstantDefined By
  CONTAINS : StringMatch
[static] An instance of StringMatch representing the following condition: string1.indexOf(string2) != -1.
StringMatch
  ENDS_WITH : StringMatch
[static] An instance of StringMatch representing the following condition: string1 ends with characters contained in string2.
StringMatch
  EQUALS : StringMatch
[static] An instance of StringMatch representing the following condition: string1 == string2.
StringMatch
  NOT_EQUALS : StringMatch
[static] An instance of StringMatch representing the following condition: string1 != string2.
StringMatch
  STARTS_WITH : StringMatch
[static] An instance of StringMatch representing the following condition: string1 starts with characters contained in string2.
StringMatch
Property Detail
symbolproperty
symbol:String  [read-only]

Returns the condition symbol of this matcher.


Implementation
    public function get symbol():String
typeproperty 
type:int  [read-only]

Returns the type id of this matcher.


Implementation
    public function get type():int
Constant Detail
CONTAINSConstant
public static const CONTAINS:StringMatch

An instance of StringMatch representing the following condition: string1.indexOf(string2) != -1.

ENDS_WITHConstant 
public static const ENDS_WITH:StringMatch

An instance of StringMatch representing the following condition: string1 ends with characters contained in string2.

EQUALSConstant 
public static const EQUALS:StringMatch

An instance of StringMatch representing the following condition: string1 == string2.

NOT_EQUALSConstant 
public static const NOT_EQUALS:StringMatch

An instance of StringMatch representing the following condition: string1 != string2.

STARTS_WITHConstant 
public static const STARTS_WITH:StringMatch

An instance of StringMatch representing the following condition: string1 starts with characters contained in string2.