org.jostraca.util
Class GnuRegExpMatch

java.lang.Object
  extended byorg.jostraca.util.GnuRegExpMatch
All Implemented Interfaces:
RegExpMatch

public class GnuRegExpMatch
extends java.lang.Object
implements RegExpMatch

GNU regular expression match.


Constructor Summary
GnuRegExpMatch()
           
GnuRegExpMatch(org.jostraca.comp.gnu.regexp.REMatch pREMatch)
          Create.
 
Method Summary
 boolean hasMatch()
           
 java.lang.String match()
          find match
 java.lang.String matchFirstSub()
          get first submatch
 java.lang.String matchSecondSub()
          get second submatch
 java.lang.String matchSub(int pOrdinal)
          get nth submatch, where n = 1,2,3,...
 java.lang.String matchThirdSub()
          get third submatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnuRegExpMatch

public GnuRegExpMatch(org.jostraca.comp.gnu.regexp.REMatch pREMatch)
Create.


GnuRegExpMatch

public GnuRegExpMatch()
Method Detail

hasMatch

public boolean hasMatch()
Specified by:
hasMatch in interface RegExpMatch

match

public java.lang.String match()
find match

Specified by:
match in interface RegExpMatch

matchFirstSub

public java.lang.String matchFirstSub()
get first submatch

Specified by:
matchFirstSub in interface RegExpMatch

matchSecondSub

public java.lang.String matchSecondSub()
get second submatch

Specified by:
matchSecondSub in interface RegExpMatch

matchThirdSub

public java.lang.String matchThirdSub()
get third submatch

Specified by:
matchThirdSub in interface RegExpMatch

matchSub

public java.lang.String matchSub(int pOrdinal)
get nth submatch, where n = 1,2,3,...

Specified by:
matchSub in interface RegExpMatch


Copyright © 2000-2002 Richard Rodger