Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acmsl.regexpplugin
Interface MatchResult  view MatchResult download MatchResult.java


public interface MatchResult

Represents the result of match in a regexp parsing process. Different implementations vary but they all must respect this set of methods.

Version:
$Revision: 1.5 $

Field Summary
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Method Summary
 java.lang.String group(int group)
          Taken from Jakarta ORO javadoc: Returns the contents of the parenthesized subgroups of a match, counting parentheses from left to right and starting from 1.
 int groups()
          Taken from Jakarta ORO 2.0.6 javadoc: The number of groups contained in the result.
 

Field Detail

VERSION

public static final Version VERSION
Concrete version object updated everytime it's checked-in in a CVS repository.

Method Detail

group

public java.lang.String group(int group)
Taken from Jakarta ORO javadoc: Returns the contents of the parenthesized subgroups of a match, counting parentheses from left to right and starting from 1. Group 0 always refers to the entire match.
For example, if the pattern foo(\d+) is used to extract a match from the input abfoo123 , then group(0) will return foo123 and group(1) will return 123 . group(2) will return null because there is only one subgroup in the original pattern.


groups

public int groups()
Taken from Jakarta ORO 2.0.6 javadoc: The number of groups contained in the result. This number includes the 0th group. In other words, the result refers to the number of parenthesized subgroups plus the entire match itself..