Index

A B C D E F G H L M N O P Q R S T V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

appendReplacement(SliceOutput, Slice) - Method in class com.google.re2j.Matcher
Appends to so two slices: the text from the append position up to the beginning of the most recent match, and then the replacement with submatch groups substituted for references of the form $n, where n is the group number in decimal.
appendTail(SliceOutput) - Method in class com.google.re2j.Matcher
Appends to so the subslice of the input from the append position to the end of the input.

B

build() - Method in class com.google.re2j.Options.OptionsBuilder
 
builder() - Static method in class com.google.re2j.Options
 

C

CASE_INSENSITIVE - Static variable in class com.google.re2j.Pattern
Flag: case insensitive matching.
com.google.re2j - package com.google.re2j
This package provides an implementation of regular expression matching based on Russ Cox's linear-time RE2 algorithm.
compile(String) - Static method in class com.google.re2j.Pattern
Creates and returns a new Pattern corresponding to compiling regex with the default flags (0).
compile(String, int) - Static method in class com.google.re2j.Pattern
Creates and returns a new Pattern corresponding to compiling regex with the default flags (0).
compile(String, int, Options) - Static method in class com.google.re2j.Pattern
 
compile(String, Options) - Static method in class com.google.re2j.Pattern
 

D

DEFAULT_OPTIONS - Static variable in class com.google.re2j.Options
 
DFA - Enum constant in enum class com.google.re2j.Options.Algorithm
 
DFA_FALLBACK_TO_NFA - Enum constant in enum class com.google.re2j.Options.Algorithm
 
DISABLE_UNICODE_GROUPS - Static variable in class com.google.re2j.Pattern
Flag: Unicode groups (e.g.
DOTALL - Static variable in class com.google.re2j.Pattern
Flag: dot (.) matches all characters, including newline.

E

end() - Method in class com.google.re2j.Matcher
Returns the end position of the most recent match.
end(int) - Method in class com.google.re2j.Matcher
Returns the end position of a subgroup of the most recent match.
equals(Object) - Method in class com.google.re2j.Options
 

F

fallbackToNFA() - Method in interface com.google.re2j.Options.EventsListener
Called when NFA is being used instead of DFA because too many DFAStates has been created.
find() - Method in class com.google.re2j.Matcher
Matches the input against the pattern (unanchored).
find(int) - Method in class com.google.re2j.Matcher
Matches the input against the pattern (unanchored), starting at a specified position.
find(Slice) - Method in class com.google.re2j.Pattern
 
find(String, Slice) - Static method in class com.google.re2j.Pattern
Matches a Slice against a regular expression (unanchored).
find(String, Slice, Options) - Static method in class com.google.re2j.Pattern
 
flags() - Method in class com.google.re2j.Pattern
Returns the flags used in the constructor.

G

getAlgorithm() - Method in class com.google.re2j.Options
 
getDescription() - Method in exception com.google.re2j.PatternSyntaxException
Retrieves the description of the error.
getEventsListener() - Method in class com.google.re2j.Options
 
getIndex() - Method in exception com.google.re2j.PatternSyntaxException
Retrieves the error index.
getMaximumNumberOfDFAStates() - Method in class com.google.re2j.Options
 
getNumberOfDFARetries() - Method in class com.google.re2j.Options
 
getPattern() - Method in exception com.google.re2j.PatternSyntaxException
Retrieves the erroneous regular-expression pattern.
group() - Method in class com.google.re2j.Matcher
Returns the most recent match.
group(int) - Method in class com.google.re2j.Matcher
Returns the subgroup of the most recent match.
groupCount() - Method in class com.google.re2j.Matcher
Returns the number of subgroups in this pattern.
groupCount() - Method in class com.google.re2j.Pattern
Returns the number of capturing groups in this matcher's pattern.

H

hashCode() - Method in class com.google.re2j.Options
 

L

lookingAt() - Method in class com.google.re2j.Matcher
Matches the beginning of input against the pattern (anchored start).

M

matcher(Slice) - Method in class com.google.re2j.Pattern
Creates a new Matcher matching the pattern against the input.
Matcher - Class in com.google.re2j
A stateful iterator that interprets a regex Pattern on a specific input.
matches() - Method in class com.google.re2j.Matcher
Matches the entire input against the pattern (anchored start and end).
matches(Slice) - Method in class com.google.re2j.Pattern
 
matches(String, Slice) - Static method in class com.google.re2j.Pattern
Matches a Slice against a regular expression.
matches(String, Slice, Options) - Static method in class com.google.re2j.Pattern
 
MULTILINE - Static variable in class com.google.re2j.Pattern
Flag: multiline matching: ^ and $ match at beginning and end of line, not just beginning and end of input.

N

NFA - Enum constant in enum class com.google.re2j.Options.Algorithm
 

O

options() - Method in class com.google.re2j.Pattern
Returns the options used in the constructor.
Options - Class in com.google.re2j
 
Options() - Constructor for class com.google.re2j.Options
 
Options.Algorithm - Enum Class in com.google.re2j
 
Options.EventsListener - Interface in com.google.re2j
Interface for RE2J events listening.
Options.OptionsBuilder - Class in com.google.re2j
 
OptionsBuilder() - Constructor for class com.google.re2j.Options.OptionsBuilder
 

P

pattern() - Method in class com.google.re2j.Matcher
Returns the Pattern associated with this Matcher.
pattern() - Method in class com.google.re2j.Pattern
Returns the pattern used in the constructor.
Pattern - Class in com.google.re2j
A compiled representation of an RE2 regular expression, mimicking the java.util.regex.Pattern API.
PatternSyntaxException - Exception in com.google.re2j
An exception thrown by the parser if the pattern was invalid.
PatternSyntaxException(String) - Constructor for exception com.google.re2j.PatternSyntaxException
 
PatternSyntaxException(String, String) - Constructor for exception com.google.re2j.PatternSyntaxException
 

Q

quote(String) - Static method in class com.google.re2j.Pattern
Returns a literal pattern string for the specified string.

R

replaceAll(Slice) - Method in class com.google.re2j.Matcher
Returns the input with all matches replaced by replacement, interpreted as for appendReplacement.
replaceFirst(Slice) - Method in class com.google.re2j.Matcher
Returns the input with the first match replaced by replacement, interpreted as for appendReplacement.
reset() - Method in class com.google.re2j.Matcher
Resets the Matcher, rewinding input and discarding any match information.
reset(Slice) - Method in class com.google.re2j.Matcher
Resets the Matcher and changes the input.

S

setAlgorithm(Options.Algorithm) - Method in class com.google.re2j.Options.OptionsBuilder
 
setEventsListener(Options.EventsListener) - Method in class com.google.re2j.Options.OptionsBuilder
 
setMaximumNumberOfDFAStates(int) - Method in class com.google.re2j.Options.OptionsBuilder
 
setNumberOfDFARetries(int) - Method in class com.google.re2j.Options.OptionsBuilder
 
split(Slice) - Method in class com.google.re2j.Pattern
Splits input around instances of the regular expression.
split(Slice, int) - Method in class com.google.re2j.Pattern
Splits input around instances of the regular expression.
start() - Method in class com.google.re2j.Matcher
Returns the start position of the most recent match.
start(int) - Method in class com.google.re2j.Matcher
Returns the start position of a subgroup of the most recent match.

T

toString() - Method in class com.google.re2j.Options
 
toString() - Method in class com.google.re2j.Pattern
 

V

valueOf(String) - Static method in enum class com.google.re2j.Options.Algorithm
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.google.re2j.Options.Algorithm
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H L M N O P Q R S T V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form