Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- appendReplacement(StringBuffer, String) - Method in class com.google.code.regexp.Matcher
-
Implements a non-terminal append-and-replace step.
- appendTail(StringBuffer) - Method in class com.google.code.regexp.Matcher
-
Implements a terminal append-and-replace step.
C
- CANON_EQ - Static variable in class com.google.code.regexp.Pattern
- CASE_INSENSITIVE - Static variable in class com.google.code.regexp.Pattern
- com.google.code.regexp - package com.google.code.regexp
- COMMENTS - Static variable in class com.google.code.regexp.Pattern
- compile(String) - Static method in class com.google.code.regexp.Pattern
-
Compiles the given regular expression into a pattern
- compile(String, int) - Static method in class com.google.code.regexp.Pattern
-
Compiles the given regular expression into a pattern with the given flags
D
E
- end() - Method in class com.google.code.regexp.Matcher
-
Returns the offset after the last character matched.
- end(int) - Method in class com.google.code.regexp.Matcher
-
Returns the offset after the last character of the subsequence captured by the given group during the previous match operation.
- end(String) - Method in class com.google.code.regexp.Matcher
-
Returns the offset after the last character of the subsequence captured by the given named group during the previous match operation.
- end(String) - Method in interface com.google.code.regexp.MatchResult
-
Returns the offset after the last character of the subsequence captured by the given group during this match.
- equals(Object) - Method in class com.google.code.regexp.GroupInfo
- equals(Object) - Method in class com.google.code.regexp.Matcher
- equals(Object) - Method in class com.google.code.regexp.Pattern
- extractGroupInfo(String) - Static method in class com.google.code.regexp.Pattern
-
Parses info on named capture groups from a pattern
F
- find() - Method in class com.google.code.regexp.Matcher
-
Attempts to find the next subsequence of the input sequence that matches the pattern.
- find(int) - Method in class com.google.code.regexp.Matcher
-
Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index.
- flags() - Method in class com.google.code.regexp.Pattern
-
Returns this pattern's match flags
G
- group() - Method in class com.google.code.regexp.Matcher
-
Returns the input subsequence matched by the previous match.
- group(int) - Method in class com.google.code.regexp.Matcher
-
Returns the input subsequence captured by the given group during the previous match operation.
- group(String) - Method in class com.google.code.regexp.Matcher
-
Returns the input subsequence captured by the named group during the previous match operation.
- group(String) - Method in interface com.google.code.regexp.MatchResult
-
Returns the input subsequence captured by the given group during the previous match operation.
- groupCount() - Method in class com.google.code.regexp.Matcher
-
Returns the number of capturing groups in this matcher's pattern.
- groupIndex() - Method in class com.google.code.regexp.GroupInfo
-
Gets the group index of the named capture group
- groupInfo() - Method in class com.google.code.regexp.Pattern
-
Gets the names and group info (group index and string position within the named pattern) of all named capture groups
- GroupInfo - Class in com.google.code.regexp
-
Contains the position and group index of capture groups from a named pattern
- GroupInfo(int, int) - Constructor for class com.google.code.regexp.GroupInfo
-
Constructs a
GroupInfo
with a group index and string position - groupNames() - Method in class com.google.code.regexp.Pattern
-
Gets the names of all capture groups
H
- hasAnchoringBounds() - Method in class com.google.code.regexp.Matcher
-
Queries the anchoring of region bounds for this matcher.
- hashCode() - Method in class com.google.code.regexp.GroupInfo
- hashCode() - Method in class com.google.code.regexp.Matcher
- hashCode() - Method in class com.google.code.regexp.Pattern
- hasTransparentBounds() - Method in class com.google.code.regexp.Matcher
-
Queries the transparency of region bounds for this matcher.
- hitEnd() - Method in class com.google.code.regexp.Matcher
-
Returns true if the end of input was hit by the search engine in the last match operation performed by this matcher.
I
- indexOf(String) - Method in class com.google.code.regexp.Pattern
-
Gets the group index of a named capture group
- indexOf(String, int) - Method in class com.google.code.regexp.Pattern
-
Gets the group index of a named capture group at the specified index.
L
- LITERAL - Static variable in class com.google.code.regexp.Pattern
- lookingAt() - Method in class com.google.code.regexp.Matcher
-
Attempts to match the input sequence, starting at the beginning of the region, against the pattern.
M
- matcher(CharSequence) - Method in class com.google.code.regexp.Pattern
-
Creates a matcher that will match the given input against this pattern.
- Matcher - Class in com.google.code.regexp
-
An engine that performs match operations on a character sequence by interpreting a
Pattern
. - matches() - Method in class com.google.code.regexp.Matcher
-
Attempts to match the entire region against the pattern.
- MatchResult - Interface in com.google.code.regexp
-
The result of a match operation.
- MULTILINE - Static variable in class com.google.code.regexp.Pattern
N
- namedGroups() - Method in class com.google.code.regexp.Matcher
-
Returns a map of the pattern's named groups and indexes within the pattern.
- namedGroups() - Method in interface com.google.code.regexp.MatchResult
-
Returns a map of the pattern's named groups and indexes within the pattern.
- namedGroupsList() - Method in class com.google.code.regexp.Matcher
-
Finds all named groups that exist in the input string.
- namedGroupsList() - Method in interface com.google.code.regexp.MatchResult
-
Finds all named groups that exist in the input string
- namedPattern() - Method in class com.google.code.regexp.Matcher
-
Returns the named pattern that is interpreted by this matcher.
- namedPattern() - Method in class com.google.code.regexp.Pattern
-
Returns the original regular expression (including named groups)
O
- orderedGroups() - Method in class com.google.code.regexp.Matcher
-
Gets a list of the matches in the order in which they occur in a matching input string
- orderedGroups() - Method in interface com.google.code.regexp.MatchResult
-
Returns the named capture groups in order
P
- pattern() - Method in class com.google.code.regexp.Pattern
-
Returns the wrapped
Pattern
- Pattern - Class in com.google.code.regexp
-
A compiled representation of a regular expression.
- Pattern(String, int) - Constructor for class com.google.code.regexp.Pattern
-
Constructs a named pattern with the given regular expression and flags
- pos() - Method in class com.google.code.regexp.GroupInfo
-
Gets the string position of the group within a named pattern
Q
- quoteReplacement(String) - Static method in class com.google.code.regexp.Matcher
-
Returns a literal replacement
String
for the specifiedString
.
R
- region(int, int) - Method in class com.google.code.regexp.Matcher
-
Sets the limits of this matcher's region.
- regionEnd() - Method in class com.google.code.regexp.Matcher
-
Reports the end index (exclusive) of this matcher's region.
- regionStart() - Method in class com.google.code.regexp.Matcher
-
Reports the start index of this matcher's region.
- replaceAll(String) - Method in class com.google.code.regexp.Matcher
-
Replaces every subsequence of the input sequence that matches the pattern with the given replacement string.
- replaceFirst(String) - Method in class com.google.code.regexp.Matcher
-
Replaces the first subsequence of the input sequence that matches the pattern with the given replacement string.
- replaceProperties(String) - Method in class com.google.code.regexp.Pattern
-
Replaces group-name properties (e.g.,
${named}
) in a replacement pattern with the equivalent reference that uses the corresponding group index (e.g.,$2
). - requireEnd() - Method in class com.google.code.regexp.Matcher
-
Returns true if more input could change a positive match into a negative one.
- reset() - Method in class com.google.code.regexp.Matcher
-
Resets this matcher
- reset(CharSequence) - Method in class com.google.code.regexp.Matcher
-
Resets this matcher with a new input sequence
S
- split(CharSequence) - Method in class com.google.code.regexp.Pattern
-
Splits the given input sequence around matches of this pattern.
- split(CharSequence, int) - Method in class com.google.code.regexp.Pattern
-
Splits the given input sequence around matches of this pattern.
- standardPattern() - Method in class com.google.code.regexp.Matcher
-
Returns the pattern that is interpreted by this matcher.
- standardPattern() - Method in class com.google.code.regexp.Pattern
-
Returns the regular expression from which this pattern was compiled.
- start() - Method in class com.google.code.regexp.Matcher
-
Returns the start index of the previous match.
- start(int) - Method in class com.google.code.regexp.Matcher
-
Returns the start index of the subsequence captured by the given group during the previous match operation.
- start(String) - Method in class com.google.code.regexp.Matcher
-
Returns the start index of the subsequence captured by the given named group during the previous match operation.
- start(String) - Method in interface com.google.code.regexp.MatchResult
-
Returns the start index of the subsequence captured by the given group during this match.
T
- toMatchResult() - Method in class com.google.code.regexp.Matcher
-
Returns the match state of this matcher as a MatchResult.
- toString() - Method in class com.google.code.regexp.Matcher
- toString() - Method in class com.google.code.regexp.Pattern
-
Returns a string representation of this pattern
U
- UNICODE_CASE - Static variable in class com.google.code.regexp.Pattern
- UNIX_LINES - Static variable in class com.google.code.regexp.Pattern
- useAnchoringBounds(boolean) - Method in class com.google.code.regexp.Matcher
-
Sets the anchoring of region bounds for this matcher.
- usePattern(Pattern) - Method in class com.google.code.regexp.Matcher
-
Changes the Pattern that this Matcher uses to find matches with
- useTransparentBounds(boolean) - Method in class com.google.code.regexp.Matcher
-
Sets the transparency of region bounds for this matcher.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form