![]() |
|
Contents |
Public Member Functions | |
| DotAllQuantifierSet (AbstractSet innerSet, AbstractSet next, int type) | |
| int | matches (int stringIndex, CharSequence testString, MatchResultImpl matchResult) |
| Checks if this node matches in given position and recursively call next node matches on positive self match. | |
| int | find (int stringIndex, CharSequence testString, MatchResultImpl matchResult) |
| Attempts to apply pattern starting from this set/stringIndex; returns index this search was started from, if value is negative, this means that this search didn't succeed, additional information could be obtained via matchResult;. | |
Protected Member Functions | |
| String | getName () |
| Returns name for the particular node type. | |
| DotAllQuantifierSet | ( | AbstractSet | innerSet, | |
| AbstractSet | next, | |||
| int | type | |||
| ) |
| int matches | ( | int | stringIndex, | |
| CharSequence | testString, | |||
| MatchResultImpl | matchResult | |||
| ) | [virtual] |
Checks if this node matches in given position and recursively call next node matches on positive self match.
Returns positive integer if entire match succeed, negative otherwise
| stringIndex | - string index to start from; | |
| testString | - input string | |
| matchResult | - MatchResult to sore result into |
Implements AbstractSet.
| int find | ( | int | stringIndex, | |
| CharSequence | testString, | |||
| MatchResultImpl | matchResult | |||
| ) |
Attempts to apply pattern starting from this set/stringIndex; returns index this search was started from, if value is negative, this means that this search didn't succeed, additional information could be obtained via matchResult;.
Note: this is default implementation for find method, it's based on matches, subclasses do not have to override find method unless more effective find method exists for a particular node type (sequence, i.e. substring, for example). Same applies for find back method.
| stringIndex | starting index | |
| testString | string to search in | |
| matchResult | result of the match |
Reimplemented from AbstractSet.
| String getName | ( | ) | [protected, virtual] |