Package gw.util
Class RegExpMatch
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<java.lang.String>
-
- gw.util.RegExpMatch
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.String>,java.util.Collection<java.lang.String>,java.util.List<java.lang.String>
public class RegExpMatch extends java.util.AbstractList<java.lang.String> implements java.util.List<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Matcher_matcher
-
Constructor Summary
Constructors Constructor Description RegExpMatch(java.util.regex.Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Stringget(int index)java.util.List<java.lang.String>getGroups()Deprecated.RegExpMatch now implements List<String>, so it is no longer necessary to call getGroups()java.util.regex.MatchergetMatcher()java.util.regex.PatterngetPattern()intsize()java.lang.StringtoString()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
get
public java.lang.String get(int index)
- Specified by:
getin interfacejava.util.List<java.lang.String>- Specified by:
getin classjava.util.AbstractList<java.lang.String>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<java.lang.String>- Specified by:
sizein interfacejava.util.List<java.lang.String>- Specified by:
sizein classjava.util.AbstractCollection<java.lang.String>
-
getMatcher
public java.util.regex.Matcher getMatcher()
-
getPattern
public java.util.regex.Pattern getPattern()
-
getGroups
public java.util.List<java.lang.String> getGroups()
Deprecated.RegExpMatch now implements List<String>, so it is no longer necessary to call getGroups()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractCollection<java.lang.String>
-
-