Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

DotAllQuantifierSet Class Reference

Inherits java::util::regex::QuantifierSet.

List of all members.


Detailed Description

Special node for ".*" construction for any character including line terminators.

Author:
Nikolay A. Kuznetsov
Version:
Revision
1.8.2.2

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.

Constructor & Destructor Documentation

DotAllQuantifierSet ( AbstractSet  innerSet,
AbstractSet  next,
int  type 
)


Member Function Documentation

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

Parameters:
stringIndex - string index to start from;
testString - input string
matchResult - MatchResult to sore result into
Returns:
-1 if match fails or n > 0;

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.

Parameters:
stringIndex starting index
testString string to search in
matchResult result of the match
Returns:
last searched index

Reimplemented from AbstractSet.

String getName (  )  [protected, virtual]

Returns name for the particular node type.

Used for debugging purposes.

Implements AbstractSet.