: Index

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

A C E G H I M N O R S T U V

## A

action(Event, Object) - Method in class gnu.regexp.util.REApplet
  Handles events in the applet.

## C

charAt(int) - Method in interface gnu.regexp.CharIndexed
  Returns the character at the given offset past the current cursor position in the input.
CharIndexed - interface gnu.regexp.CharIndexed.
  Defines the interface used internally so that different types of source text can be accessed in the same way.
clear(int) - Method in class gnu.regexp.RESyntax
  Clear a given bit in this syntax.
clone() - Method in class gnu.regexp.REMatch

## E

Egrep - class gnu.regexp.util.Egrep.
  This is a front end to the gnu.regexp.util.Grep class which sets the syntax used to RE_SYNTAX_EGREP, which aims to emulate the standard UNIX egrep command.

## G

get(int) - Method in class gnu.regexp.RESyntax
  Check if a given bit is set in this syntax.
getAllMatches(Object) - Method in class gnu.regexp.RE
  Returns an array of all matches found in the input.
getAllMatches(Object, int) - Method in class gnu.regexp.RE
  Returns an array of all matches found in the input, beginning at the specified index position.
getAllMatches(Object, int, int) - Method in class gnu.regexp.RE
  Returns an array of all matches found in the input string, beginning at the specified index position and using the specified execution flags.
getEndIndex() - Method in class gnu.regexp.REMatch
  Returns the index within the input string where the match in its entirety ends.
getEndIndex(int) - Method in class gnu.regexp.REMatch
  Returns the index within the input string used to generate this match where subexpression number sub ends, or `-1` if the subexpression does not exist.
getLineSeparator() - Method in class gnu.regexp.RESyntax
  Returns the currently active line separator string.
getMatch(Object) - Method in class gnu.regexp.RE
  Returns the first match found in the input.
getMatch(Object, int) - Method in class gnu.regexp.RE
  Returns the first match found in the input, beginning the search at the specified index.
getMatch(Object, int, int) - Method in class gnu.regexp.RE
  Returns the first match found in the input, beginning the search at the specified index, and using the specified execution flags.
getMatch(Object, int, int, StringBuffer) - Method in class gnu.regexp.RE
  Returns the first match found in the input, beginning the search at the specified index, and using the specified execution flags.
getMatchEnumeration(Object) - Method in class gnu.regexp.RE
  Returns an REMatchEnumeration that can be used to iterate over the matches found in the input text.
getMatchEnumeration(Object, int) - Method in class gnu.regexp.RE
  Returns an REMatchEnumeration that can be used to iterate over the matches found in the input text.
getMatchEnumeration(Object, int, int) - Method in class gnu.regexp.RE
  Returns an REMatchEnumeration that can be used to iterate over the matches found in the input text.
getMessage() - Method in class gnu.regexp.REException
  Reports the descriptive message associated with this exception as well as its index position in the string or character array being compiled.
getMinimumLength() - Method in class gnu.regexp.RE
  Returns the minimum number of characters that could possibly constitute a match of this regular expression.
getNumSubs() - Method in class gnu.regexp.RE
  Returns the maximum number of subexpressions in this regular expression.
getPosition() - Method in class gnu.regexp.REException
  Returns the position, relative to the string or character array being compiled, where the error occurred.
getStartIndex() - Method in class gnu.regexp.REMatch
  Returns the index within the input text where the match in its entirety began.
getStartIndex(int) - Method in class gnu.regexp.REMatch
  Returns the index within the input string used to generate this match where subexpression number sub begins, or `-1` if the subexpression does not exist.
getSubEndIndex(int) - Method in class gnu.regexp.REMatch
  Deprecated. Use getEndIndex(int) instead
getSubStartIndex(int) - Method in class gnu.regexp.REMatch
  Deprecated. Use getStartIndex(int) instead.
getType() - Method in class gnu.regexp.REException
  Returns the type of the exception, one of the constants listed above.
gnu.regexp - package gnu.regexp
gnu.regexp.util - package gnu.regexp.util
Grep - class gnu.regexp.util.Grep.
  Grep is a pure-Java clone of the GNU grep utility.
grep(String[], RESyntax, PrintStream) - Static method in class gnu.regexp.util.Grep
  Runs Grep with the specified arguments.

## H

hasMoreElements() - Method in class gnu.regexp.REMatchEnumeration
  Returns true if there are more matches in the input text.
hasMoreMatches() - Method in class gnu.regexp.REMatchEnumeration
  Returns true if there are more matches in the input text.
hasMoreMatches(StringBuffer) - Method in class gnu.regexp.REMatchEnumeration
  Returns true if there are more matches in the input text.

## I

init() - Method in class gnu.regexp.util.REApplet
  Initializes the applet and constructs GUI elements.
isMatch(Object) - Method in class gnu.regexp.RE
  Checks if the regular expression matches the input in its entirety.
isMatch(Object, int) - Method in class gnu.regexp.RE
  Checks if the input string, starting from index, is an exact match of this regular expression.
isMatch(Object, int, int) - Method in class gnu.regexp.RE
  Checks if the input, starting from index and using the specified execution flags, is an exact match of this regular expression.
isValid() - Method in interface gnu.regexp.CharIndexed
  Returns true if the most recent move() operation placed the cursor position at a valid position in the input.

## M

main(String[]) - Static method in class gnu.regexp.util.RETest
  Invokes the test function with the command line arguments specified.
main(String[]) - Static method in class gnu.regexp.util.Tests
  Runs the testsuite.
main(String[]) - Static method in class gnu.regexp.util.Grep
  Invokes the grep() function below with the command line arguments and using the RESyntax.RE_SYNTAX_GREP syntax, which attempts to emulate the traditional UNIX grep syntax.
main(String[]) - Static method in class gnu.regexp.util.Egrep
  Invokes Grep.grep() using the RE_SYNTAX_EGREP syntax and the command line arguments specified.
makeFinal() - Method in class gnu.regexp.RESyntax
  Called internally when constructing predefined syntaxes so their interpretation cannot vary.
markSupported() - Method in class gnu.regexp.REFilterInputStream
  Deprecated. Returns false.
markSupported() - Method in class gnu.regexp.REFilterReader
  Returns false.
move(int) - Method in interface gnu.regexp.CharIndexed
  Shifts the input buffer by a given number of positions.

## N

nextElement() - Method in class gnu.regexp.REMatchEnumeration
  Returns the next match in the input text.
nextMatch() - Method in class gnu.regexp.REMatchEnumeration
  Returns the next match in the input text.

## O

OUT_OF_BOUNDS - Static variable in interface gnu.regexp.CharIndexed
  Defines a constant (0xFFFF was somewhat arbitrarily chosen) that can be returned by the charAt() function indicating that the specified index is out of range.

## R

RE - class gnu.regexp.RE.
  RE provides the user interface for compiling and matching regular expressions.
RE_BACKSLASH_ESCAPE_IN_LISTS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_BK_PLUS_QM - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CHAR_CLASS_ESC_IN_LISTS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CHAR_CLASS_ESCAPES - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CHAR_CLASSES - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_COMMENTS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CONTEXT_INDEP_ANCHORS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CONTEXT_INDEP_OPS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_CONTEXT_INVALID_OPS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_DOT_NEWLINE - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_DOT_NOT_NULL - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_HAT_LISTS_NOT_NEWLINE - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_INTERVALS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_LIMITED_OPS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_LOOKAHEAD - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NEWLINE_ALT - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NO_BK_BRACES - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NO_BK_PARENS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NO_BK_REFS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NO_BK_VBAR - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_NO_EMPTY_RANGES - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_PURE_GROUPING - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_STINGY_OPS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_STRING_ANCHORS - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE_SYNTAX_AWK - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_ED - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_EGREP - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_EMACS - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_GREP - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_PERL4 - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_PERL4_S - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_PERL5 - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_PERL5_S - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_AWK - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_BASIC - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_EGREP - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_EXTENDED - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_MINIMAL_BASIC - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_POSIX_MINIMAL_EXTENDED - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_SYNTAX_SED - Static variable in class gnu.regexp.RESyntax
  Predefined syntax.
RE_UNMATCHED_RIGHT_PAREN_ORD - Static variable in class gnu.regexp.RESyntax
  Syntax bit.
RE(Object) - Constructor for class gnu.regexp.RE
  Constructs a regular expression pattern buffer without any compilation flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
RE(Object, int) - Constructor for class gnu.regexp.RE
  Constructs a regular expression pattern buffer using the specified compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
RE(Object, int, RESyntax) - Constructor for class gnu.regexp.RE
  Constructs a regular expression pattern buffer using the specified compilation flags and regular expression syntax.
read() - Method in class gnu.regexp.REFilterInputStream
  Deprecated. Reads the next byte from the stream per the general contract of InputStream.read().
read() - Method in class gnu.regexp.REFilterReader
  Reads the next character from the stream per the general contract of Reader.read().
read(byte[]) - Method in class gnu.regexp.REFilterInputStream
  Deprecated. Reads from the stream into the provided array.
read(byte[], int, int) - Method in class gnu.regexp.REFilterInputStream
  Deprecated. Reads from the stream into the provided array.
read(char[]) - Method in class gnu.regexp.REFilterReader
  Reads from the stream into the provided array.
read(char[], int, int) - Method in class gnu.regexp.REFilterReader
  Reads from the stream into the provided array.
REApplet - class gnu.regexp.util.REApplet.
  This is a simple applet to demonstrate the capabilities of gnu.regexp.
REApplet() - Constructor for class gnu.regexp.util.REApplet
  Creates an REApplet.
REException - exception gnu.regexp.REException.
  This is the regular expression exception class.
REFilterInputStream - class gnu.regexp.REFilterInputStream.
  Deprecated. This class cannot properly handle all character encodings. For proper handling, use the REFilterReader class instead.
REFilterInputStream(InputStream, RE, String) - Constructor for class gnu.regexp.REFilterInputStream
  Deprecated. Creates an REFilterInputStream.
REFilterReader - class gnu.regexp.REFilterReader.
  Replaces instances of a given RE with replacement text.
REFilterReader(Reader, RE, String) - Constructor for class gnu.regexp.REFilterReader
  Creates an REFilterReader.
REG_ANCHORINDEX - Static variable in class gnu.regexp.RE
  Execution flag.
REG_BADBR - Static variable in class gnu.regexp.REException
  Error flag.
REG_BADPAT - Static variable in class gnu.regexp.REException
  Error flag.
REG_BADRPT - Static variable in class gnu.regexp.REException
  Error flag.
REG_DOT_NEWLINE - Static variable in class gnu.regexp.RE
  Compilation flag.
REG_EBRACE - Static variable in class gnu.regexp.REException
  Error flag.
REG_EBRACK - Static variable in class gnu.regexp.REException
  Error flag.
REG_ECTYPE - Static variable in class gnu.regexp.REException
  Error flag.
REG_EEND - Static variable in class gnu.regexp.REException
  Error flag.
REG_EPAREN - Static variable in class gnu.regexp.REException
  Error flag.
REG_ERANGE - Static variable in class gnu.regexp.REException
  Error flag.
REG_ESCAPE - Static variable in class gnu.regexp.REException
  Error flag.
REG_ESIZE - Static variable in class gnu.regexp.REException
  Error flag.
REG_ESPACE - Static variable in class gnu.regexp.REException
  Error flag.
REG_ESUBREG - Static variable in class gnu.regexp.REException
  Error flag.
REG_ICASE - Static variable in class gnu.regexp.RE
  Compilation flag.
REG_MULTILINE - Static variable in class gnu.regexp.RE
  Compilation flag.
REG_NO_INTERPOLATE - Static variable in class gnu.regexp.RE
  Execution flag.
REG_NOTBOL - Static variable in class gnu.regexp.RE
  Execution flag.
REG_NOTEOL - Static variable in class gnu.regexp.RE
  Execution flag.
REMatch - class gnu.regexp.REMatch.
  An instance of this class represents a match completed by a gnu.regexp matching function.
REMatchEnumeration - class gnu.regexp.REMatchEnumeration.
  An REMatchEnumeration enumerates regular expression matches over a given input text.
RESyntax - class gnu.regexp.RESyntax.
  An RESyntax specifies the way a regular expression will be compiled.
RESyntax() - Constructor for class gnu.regexp.RESyntax
  Construct a new syntax object with all bits turned off.
RESyntax(RESyntax) - Constructor for class gnu.regexp.RESyntax
  Construct a new syntax object with all bits set the same as the other syntax.
RETest - class gnu.regexp.util.RETest.
  RETest provides a simple way to test regular expressions.

## S

set(int) - Method in class gnu.regexp.RESyntax
  Set a given bit in this syntax.
setLineSeparator(String) - Method in class gnu.regexp.RESyntax
  Changes the line separator string for regular expressions created using this RESyntax.
substitute(Object, String) - Method in class gnu.regexp.RE
  Substitutes the replacement text for the first match found in the input.
substitute(Object, String, int) - Method in class gnu.regexp.RE
  Substitutes the replacement text for the first match found in the input beginning at the specified index position.
substitute(Object, String, int, int) - Method in class gnu.regexp.RE
  Substitutes the replacement text for the first match found in the input string, beginning at the specified index position and using the specified execution flags.
substituteAll(Object, String) - Method in class gnu.regexp.RE
  Substitutes the replacement text for each non-overlapping match found in the input text.
substituteAll(Object, String, int) - Method in class gnu.regexp.RE
  Substitutes the replacement text for each non-overlapping match found in the input text, starting at the specified index.
substituteAll(Object, String, int, int) - Method in class gnu.regexp.RE
  Substitutes the replacement text for each non-overlapping match found in the input text, starting at the specified index and using the specified execution flags.
substituteInto(String) - Method in class gnu.regexp.REMatch
  Substitute the results of this match to create a new string.

## T

Tests - class gnu.regexp.util.Tests.
  This is a very basic testsuite application for gnu.regexp.
toString() - Method in class gnu.regexp.REMatch
  Returns the string matching the pattern.
toString() - Method in class gnu.regexp.RE
  Return a human readable form of the compiled regular expression, useful for debugging.
toString(int) - Method in class gnu.regexp.REMatch
  Returns the string matching the given subexpression.

## U

UncheckedRE - class gnu.regexp.UncheckedRE.
  UncheckedRE is a subclass of RE that allows programmers an easier means of programmatically precompiling regular expressions.
UncheckedRE(Object) - Constructor for class gnu.regexp.UncheckedRE
  Constructs a regular expression pattern buffer without any compilation flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
UncheckedRE(Object, int) - Constructor for class gnu.regexp.UncheckedRE
  Constructs a regular expression pattern buffer using the specified compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
UncheckedRE(Object, int, RESyntax) - Constructor for class gnu.regexp.UncheckedRE
  Constructs a regular expression pattern buffer using the specified compilation flags and regular expression syntax.

## V

version() - Static method in class gnu.regexp.RE
  Returns a string representing the version of the gnu.regexp package.

A C E G H I M N O R S T U V

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES