java.lang.Object
org.apache.wicket.util.parse.metapattern.MetaPattern
org.apache.wicket.util.parse.metapattern.Group
All Implemented Interfaces:
Serializable, IClusterable
Direct Known Subclasses:
BooleanGroup, FloatingPointGroup, IntegerGroup

public class Group extends MetaPattern
A Group is a piece of a regular expression (referenced by some Java field or local variable) that forms a "capturing group" within the larger regular expression. A Group is bound to a regular expression MetaPattern when a matcher is retrieved for the pattern by calling one of the matcher() methods. Once bound, a Group cannot be rebound.
Author:
Jonathan Locke
See Also:
  • Constructor Details

    • Group

      public Group(MetaPattern pattern)
      Constructor.
      Parameters:
      pattern - MetaPattern to capture
  • Method Details

    • get

      public final String get(Matcher matcher)
      Threadsafe method to retrieve contents of this captured group.
      Parameters:
      matcher - The matcher from which to retrieve this Group's group
      Returns:
      The captured characters
    • toString

      public String toString()
      Description copied from class: MetaPattern
      Converts this MetaPattern to a String.
      Overrides:
      toString in class MetaPattern
      Returns:
      A String representing this MetaPattern
      See Also: