Package gw.util

Class 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  
      • Fields inherited from class java.util.AbstractList

        modCount
    • 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.String get​(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.Matcher getMatcher()  
      java.util.regex.Pattern getPattern()  
      int size()  
      java.lang.String toString()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Field Detail

      • _matcher

        private java.util.regex.Matcher _matcher
    • Constructor Detail

      • RegExpMatch

        public RegExpMatch​(java.util.regex.Matcher matcher)
    • Method Detail

      • get

        public java.lang.String get​(int index)
        Specified by:
        get in interface java.util.List<java.lang.String>
        Specified by:
        get in class java.util.AbstractList<java.lang.String>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<java.lang.String>
        Specified by:
        size in interface java.util.List<java.lang.String>
        Specified by:
        size in class java.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:
        toString in class java.util.AbstractCollection<java.lang.String>