1 15 package org.apache.tapestry.util; 16 17 import org.apache.oro.text.regex.MatchResult; 18 19 25 public class RegexpMatch 26 { 27 private final MatchResult _match; 28 29 RegexpMatch(MatchResult match) 30 { 31 _match = match; 32 } 33 34 38 39 public String getGroup(int group) 40 { 41 return _match.group(group); 42 } 43 44 47 48 public String getInput() 49 { 50 return _match.toString(); 51 } 52 53 public int getMatchLength() 54 { 55 return _match.length(); 56 } 57 } 58 | Popular Tags |