public class Group extends MetaPattern
AMPERSAND, ANYTHING, ANYTHING_NON_EMPTY, AT_SIGN, BACKSLASH, COLON, COMMA, DASH, DIGIT, DIGITS, DOLLAR_SIGN, DOT, DOUBLE_QUOTED_STRING, EQUALS, EXCLAMATION_POINT, FLOATING_POINT_NUMBER, HEXADECIMAL_DIGIT, HEXADECIMAL_DIGITS, INTEGER, LEFT_CURLY, LEFT_PAREN, LEFT_SQUARE, MINUS, NON_WORD, OPTIONAL_STRING, OPTIONAL_WHITESPACE, OPTIONAL_WORD, PERCENT, PERL_INTERPOLATION, PIPE, PLUS, POSITIVE_INTEGER, POUND_SIGN, RIGHT_CURLY, RIGHT_PAREN, RIGHT_SQUARE, SEMICOLON, SLASH, STAR, STRING, TILDE, UNDERSCORE, VARIABLE_NAME, WHITESPACE, WORD, XML_ATTRIBUTE_NAME, XML_ELEMENT_NAME
Constructor and Description |
---|
Group(MetaPattern pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
get(Matcher matcher)
Threadsafe method to retrieve contents of this captured group.
|
String |
toString()
Converts this MetaPattern to a String.
|
matcher, matcher, pattern, pattern
public Group(MetaPattern pattern)
pattern
- MetaPattern to capturepublic final String get(Matcher matcher)
matcher
- The matcher from which to retrieve this Group's grouppublic String toString()
MetaPattern
toString
in class MetaPattern
Object.toString()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.