RegexCollection class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- regExpAnyComment → RegExp
-
final
- regExpAnyString → RegExp
-
final
- regExpIdentifier → RegExp
-
final
- regExpNullChar → RegExp
-
final
- regExpNumber → RegExp
-
final
- regExpOperators → RegExp
-
final
- regExpPrivate → RegExp
-
final
- regExpSingleLineComment → RegExp
-
final
- regExpStringOrComment → RegExp
-
final
- regExpTitle → RegExp
-
final
- regExpTokenizer → RegExp
-
final
Static Methods
-
isComment(
String token) → bool - returns true if input matches regex of any comment single line or multiline
-
isIdentifier(
String token) → bool - returns true if token is an identifier
-
isNullChar(
String token) → bool - returns true if input token is a null character (i.e. \x00)
-
isNumber(
String token) → bool - returns true if input token is of type number
-
isOperator(
String token) → bool - returns true if input token is an operator
-
isPrivate(
String token) → bool - returns true if input token is an identifier and starts with underscore(_)
-
isSingleLineComment(
String token) → bool - returns true if input is a single line comment
-
isString(
String token) → bool - returns true if input token is of type string
-
isTitle(
String token) → bool - returns true if input token is an identifier and starts with capital letter
Constants
- anyString → const String
- any string used for testing if a given string is string or not
- backtickString → const String
-
regex string to match a backtick string
like javascript
hello world
- doubleQuoteString → const String
- regex string to match a double quote string
- doubleSlashComment → const String
- regex string to match a single line double slash comment
- except → const String
- except this will catch all other remaining characters
- hashComment → const String
- regex string to match a single line hash comment
- identifier → const String
- identifier regex
- multilineComment → const String
- regex string to match a /....../ comment
- nullChar → const String
- null character
- number → const String
- number regex
- operators → const String
- operators regex
- private → const String
- private variable in python/dart starting with _
- singleQuoteString → const String
- regex string to match a single quote string
- title → const String
- title regex ( this is to differentiate a class and normal variable or a function or constructor )
- tripleDoubleQuoteString → const String
- regex string to match a triple double quote string
- tripleSingleQuoteString → const String
- regex string to match a triple single quote string
- xmlComment → const String
- regex string to match a xml comment for ex.